News for hackers. Stuff that matters.
Re:Developers spend most of their time figuring the system out by bckr on Wednesday March 30, 2022 @05:44PM (#30861194)
> Add logging to code you are trying to debug

This is a great idea and should absolutely be a standard. There's a whole logging level ("DEBUG") devoted to this that I think goes way underused.

Another, related idea is to use a debugger. Using PDB for Python codebases has sped me up A LOT.

Re:Developers spend most of their time figuring the system out by nine_k on Wednesday March 30, 2022 @09:02PM (#30862694)
I worked with software where you could change logging level dynamically, per subsystem.

The ability to switch to DEBUG level, get a wall of text from a problematic spot, and switch it back to WARN was very, very helpful for troubleshooting prod.