16
Avoid over-commenting in Python
(www.pythonmorsels.com)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
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.
until it isn't
multiprocessing humbles the plans of mortal men
(Initially thought you were being sarcastic.)