4 ms·
How can code be both "clean" and "twice as long"? That makes no sense to me. If one can make a program half as long (I mean logically, not lexically, such as by
by gruseom 16y ago
How can code be both "clean" and "twice as long"? That makes no sense to me. If one can make a program half as long (I mean logically, not lexically, such as by shortening names) then it obviously has problems. Since bugs grow approximately linearly to code size, this is a big deal.
As for "many little functions", although this style is favored by the OO elite, the research literature is actually against it. Moderately sized functions (IIRC, up to 100 lines - but the studies were in old languages) have been found to be less error-prone. Steve McConnell and Robert Glass have both written about this. I've posted citations here before but don't want to right now.