← Back to context

Comment by getsat

14 years ago

For the record, this was sarcasm. It's 2012. I really hope you guys aren't debugging using printf still.

You'd think someone into esoteric languages would've heard of a debugger.

Print/Trace statements are invaluable in several situations.

I don't trust debuggers for multi-threaded applications or applications with open, time-sensitive resources (open sockets etc..)

Installing and firing up a debugger is not an option in a customer's system.

> It's 2012

I expect to be using Printf's in 2022 and beyond.

I'm pretty good at Haskell and prefer print to debuggers in pretty much every language. I'd rather have the computer produce output for me to read than to have to hand-hold the computer through evaluating my program. It's easier.

The one doesn't replace the other. I wrote a JS debugger for Emacs so as to have a debugger when I wanted one. I still use print statements more.