Re:Size is the best predictor of code quality
by berntb on Monday September 26, 2011 @08:06AM
(#3038479)
If I wrote 2-20 line functions, then I wouldn't document/test every one, either.
[ Parent
| on HN ]
Re:Size is the best predictor of code quality
by ZeroGravitas on Monday September 26, 2011 @08:53AM
(#3038607)
I think the idea is that the short functions call other (short) functions at a lower conceptual level to create a large amount of functionality. By testing that function, you're testing how they work together.
This is different from short functions being short because they don't do much.