• Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 month ago

    I also like to use log statements or error messages as a way to describe what’s happening.

    Comments are only visible in the exact spot where they’re written, whereas decent names or log statements become visible in a second place, which makes them more valuable, but also increases the chance of them being kept up-to-date.

    • Bogasse@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      Praise the log and observability lords!

      People really underestimate how useful logs are in almost every context.

      • logging_strict
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 month ago

        until it isn’t

        multiprocessing humbles the plans of mortal men

        (Initially thought you were being sarcastic.)