News for hackers. Stuff that matters.
Re:Functions Should Be Short And Sweet, But Why? by cheapsteak on Wednesday January 22, 2014 @03:37AM (#7101511)
I've thought about it as the programming equivalent of writing outlines before starting on an essay. It requires more forethought, but you can recognize early on if a line of thought / solution is a dead end, and also makes restructuring and fixing it much easier
Re:Functions Should Be Short And Sweet, But Why? by henrik_w on Wednesday January 22, 2014 @04:05AM (#7101601)
I often end up factoring out things into common methods in the end. That's when I see what parts are common, something I don't always recognize in the beginning (or even in the middle of it).