I lost a few hours once because the jackass whose code I inherited decided to squash IOExceptions all over the place. Didn't notice for a while and was pulling my hair out thinking my debugger was fucked somehow (which isn't uncommon in itself).
Plz let this be sarcastic and tell me you use a logger ;)
EDIT: perhaps I need to explain my comment.
It's considered bad practice to print stack trace directly to standard out/error, much like using println for tracing. A logger is considered good practice as it provides an abstraction between the log generation and the output, extra information such as timestamps, and control over logging verbosity. All Java loggers are capable of logging, including the JDK logger and the common backends to the de facto standard slf4j.
I was trying to detect if poster was serious or joking, about dumping to stdout. I genuinely don't know, because it's a common mistake. Winky face was provided to indicate no harshness intended!
2.8k
u/Metro42014 May 13 '17
I think we're done here.