• thevoidzero@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    15 hours ago

    How would a programming book have that kind of mistakes? Do they manually type the code, and output separately?

    Any semi-competent programmer will copy paste the code to the terminal and copy the output.

    And any competent programmer will make sure the output is auto generated from the code so there’s no mistakes.

    • some_guy@lemmy.sdf.org
      link
      fedilink
      arrow-up
      2
      ·
      13 hours ago

      People write books. People are imperfect. People write imperfect books. It’s not hard to copy / pasta the wrong notes when assembling the bones of a book.