Re:What I Wish I Knew When Starting Out as a Software Develo...
by Gurkenmaster on Monday January 26, 2015 @05:44PM
(#8950105)
That sounds more like a navigation problem than a problem with the code (unless the function names are misleading).
[ Parent
| on HN ]
Re:What I Wish I Knew When Starting Out as a Software Develo...
by jeffreyrogers on Monday January 26, 2015 @06:08PM
(#8950257)
I agree somewhat, but context switching has non-zero overhead since it requires that I keep in my short term memory what the previous code was doing as well.
Also, I probably should have been clearer above. Sometimes a short function is the right approach, particularly for something that is going to be done over and over again, but the overall goal is clarity, not short functions.
Anyways, it's not worth getting too hung up on I don't think, it seems my opinion is the minority one.
Re:What I Wish I Knew When Starting Out as a Software Develo...
by zo1 on Tuesday January 27, 2015 @11:43AM
(#8954055)
>"but the overall goal is clarity, not short functions."
I've never seen this discussion play out where the "short function" side is saying that the only goal of short functions is...short functions.
Obviously "clarity" vs "short-functions" is a no-brainer discussion. But fails to acknowledge the complexities and nuances being discussed.