- Thanks received
- 117
Sometimes, despite trying to push functionality into classes where that should belong in you just have to write a long winded method to do a process, maybe a 150 liner but I think that if you name the method correctly and comment it out correctly I'm good with that.
Yes, blindly applying rules is counterproductive, you need to understand what motivates them. Smaller methods increase readability as long as code is broken out for logical reasons (reuse, ease of unit testing) but just breaking it into 30 line blocks "because that's the rule" is numpty thinking.
A better rule might be "if you cant cope with more than a screenful of code at a time you shouldn't be a programmer"
Last edited:
10:27

- sometimes on the same project - and the hard part is remembering all the library calls and how the different IDEs behave.