News for hackers. Stuff that matters.
Re:Logging as a code smell by zepolen on Tuesday January 11, 2022 @01:14AM (#29888190)
You my friend need to experience a production heisenbug.
Re:Logging as a code smell by jpgvm on Tuesday January 11, 2022 @02:04AM (#29888469)
I think you are taking the comment rather out of context and just took the chance to be snarky. The gentleman I was replying to is clearly new to the gig and he should try out a debugger, it will change his workflow immensely and likely make him a much better developer.

Yes, you still want logs (or events or traces, etc) in production to identify when edge cases or heisenbugs have occurred. A debugger doesn't replace those but it does replace 'println` style debugging when developing new code.

Re:Logging as a code smell by zepolen on Tuesday January 11, 2022 @03:18AM (#29888930)
> it will change his workflow immensely and likely make him a much better developer

Frankly the best developers I have met did not rely on debuggers, or logs for that matter. Using neither forces them to keep the program flow in their head and completely understand the code and system before pressing run.

For debugging production systems of course logs are useful.