Re:In the Defense of Spaghetti Code (2013)
by CuriouslyC on Monday July 22, 2019 @09:09AM
(#20497628)
There's no reason to write a 1500 line function in any language that supports functions as first class objects. Those lines could all be broken down and split into separate functions to give the parent function more semantic meaning.
[ Parent
| on HN ]
Re:In the Defense of Spaghetti Code (2013)
by lonelappde on Tuesday July 23, 2019 @08:42AM
(#20506237)
I'll take John Carmack's practical advice over yours, especially since you appear to misusing the term "first-class function" to just mean function.
You don't need to create function calls just to add comments.