News for hackers. Stuff that matters.
Re:The Five Levels of Logging by exabrial on Saturday September 15, 2018 @09:08AM (#17994156)
Talking about logging got me a rejection at Google. The very kind 22 year old interviewing me asked what my thoughts on commenting code was and I said most every time it's used as an excuse to show off a piece of overly clever code, so normally I discourage it in favor of logging, as they are code comments you can use in production. I realize now that was my first graybeard moment.
Re:The Five Levels of Logging by paulddraper on Sunday September 16, 2018 @02:50PM (#18000399)
Without diving too far down the comment rabbit hole (complex but efficient algorithms, external references, legal retirements, backwards compatibilty), that's not true though.

A comment is attached to code. A log is attached to an event.

Conflating those will either give you very bad logs or very bad comments.