• Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    16 hours 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
      ·
      4 hours ago

      Praise the log and observability lords!

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