|
|
|
|
|
by Lyren
2835 days ago
|
|
I can vouch for Clean Coder. We watched them in our company.
It's a small dev team so we took the time together.
Afterwards we implemented a 4-line rule amongst other things. We don't always hold ourselves to it, sometimes 5-6 line functions make sense, but we strive toward 4. Sometimes it's as easy as breaking code out into a new function, but sometimes you just simply have to create a class for it. That way a lot of complicated code suddenly becomes very easy without much effort. |
|
Limiting function length to < 10 lines is like limiting your walking stride to 30cm. You'll spend most of your time chasing useless functions when trying to understand the system.