Re:Hard-won lessons: Five years with Node.js
by mattmanser on Thursday April 20, 2017 @08:55PM
(#14162225)
I disagree. He simply had to inspect the live DB and see what the state was when someone said the order was wrong.
Even though node has a debugger with breakpoints, etc., an effective programmer will still use logging in situations like the ones in the article. Taking the first example, before he knew that NaNs were causing the problem, setting a breakpoint would have taken forever to reveal anything. You can't set a conditional breakpoint until you know what the condition is. Logging was the fastest way to get useful clues.