3 ms·
> 1000 line function (sheesh), this is a failure of the IDE, not of the practice This can be argued the other way too. Decent IDEs have code folding and other
by rendaw 4y ago
> 1000 line function (sheesh), this is a failure of the IDE, not of the practice
This can be argued the other way too. Decent IDEs have code folding and other features so you can look at a long function at a higher level without needing to abuse language features for subjective purposes.
- Supermancho 4y ago> Decent IDEs have code folding Function inlining is folded, moreso... foo() { return bar(); // <-- bar can be clicked on and expanded in place } becomes: foo() { return {return "boo";} } ------ bar() {return "boo";}