Re:Go 2 Draft Designs
by mike_hearn on Tuesday August 28, 2018 @02:57PM
(#17861779)
You don't need an IDE but it solves problems like "I don't want to chain my methods because my weak debugger can't handle it well".
[ Parent
| on HN ]
Chained method calls being difficult to debug does not necessarily mean using a debugger. It can mean difficult to insert clarifying code in the middle of the chain: print statements, or additional value checks, and so on.
Re:Go 2 Draft Designs
by bmurphy1976 on Tuesday August 28, 2018 @07:18PM
(#17863792)
Chained methods also don't diff as clearly (the one liners anyway).
They do on GUI diff tools by using different colors.
It's still not as clear as just splitting across lines, plus in most tools you need to explicitly indicate you want to highlight word diffs.
But more abstractly speaking: are chained calls, from the POV of a human that didn't write it, or wrote it two months ago, more readable than a number of statements on multiple lines?