4 ms·
Single point of return from a function? No more than X lines of code in a function? Object oriented programming?
by mcguire 8y ago
Single point of return from a function? No more than X lines of code in a function? Object oriented programming?
- deleted 8y ago[deleted]
- Klathmon 8y agoI'd say all the rules about code complexity are like this. Recommended function/class/file size, when to abstract vs when to copy, even size/names of function arguments. There are "rules" about all of these, but the best codebases have tons and tons of violations. Not because they are bad, but because the devs working on it know when to break those rules, and know that they are mostly guidelines.