Re:Add detailed message to NullPointerException describing w...
by wtetzner on Tuesday March 26, 2019 @04:38PM
(#19495803)
It's only awful for debugging because the tools are awful.
[ Parent
| on HN ]
Re:Add detailed message to NullPointerException describing w...
by laythea on Wednesday March 27, 2019 @02:23PM
(#19504216)
The tools for Java are greate (try C++ if you disagree).
It's the code that is the problem here.
Re:Add detailed message to NullPointerException describing w...
by wtetzner on Wednesday March 27, 2019 @03:24PM
(#19504934)
The tools for Java are much better than those for C++. However, claiming the code is the problem is silly. I'm not going to introduce a bunch of local variables just to appease a debugger.
If splitting on separate lines makes code more readable, then sure, do that. But often it just makes the code longer and harder to follow.