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.
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.
Praise the log and observability lords!
People really underestimate how useful logs are in almost every context.