• Pyro@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    11 months ago

    While I agree with the premise of the article, the code is completely unreadable to me. I took a look at the first snippet and just thought “Nah.”

    • vzq@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      10 months ago

      That’s because it’s not the source. It’s not the preferred way of modifying the program. The state diagram is the preferred way of modifying the program.

    • NostraDavid@programming.dev
      link
      fedilink
      arrow-up
      3
      arrow-down
      7
      ·
      11 months ago

      You really need to know C to be able to read that code - If I only knew Python or Java I’d be hella lost too.

      • Pyro@lemmy.world
        link
        fedilink
        English
        arrow-up
        16
        ·
        11 months ago

        It’s not even that. I can generally read a C-like language, but when the first line I see is a long-ass array of bytes with zero documentation it just makes me not want to even try.