Shorter is always better how?
Less error prone? Five studies cited by McConnel found that routine size
was either inversely correlated with error frequency, or not correlated at
Easier to understood? A study of upper level comp. sci. students found
that comprehension of a super-modularized program into routines about
10 lines long was no better than their comprehension of a program with
no routines (but when moderate length routines were used, comprehension
scores rose 65%). 
Less changes required? Another study finds that code needs to be changed
least when routines average 100 - 150 lines. 
So, on the one hand we have several empirical studies which find that
shorter routines do not require less changes, are not easier to understand,
and are not less error prone. All of that relates to software cost in the
real world. On the other hand, we have your unsupported opinion.
 Basili & Perricone (1984) "Software Errors and Complexity: An Empi
Investigation." Communications of the ACM 27, no. 1 (Jan) 42-52.
 Shen et al (1985) "Identifying Error-Prone Software --- An Emprici
Study" IEEE Transactions on Software Engineering SE-11 (Apr) 317-
 Card, Church, & Agresti (1986) "An Empirical Study of Software Des
Practices" IEEE Transactions on Software Engineering SE-12 no 2 (
 Card & Glass (1990) "Measuring Software Design Quality". Englewood
CLiffs, N.J.: Prentice Hall
 Shelby & Basili (1991) "Analyzing Error-Prone System STructure" I
Transactions on Software Engineering SE-17 no 2 (Feb) 141-152
 Conte, Dunsmore, Shen (1986) "Software Engineering Metrics and Mod
Menlo Park, Calif: Benjamin/Cummings
 Lind & Vairavan (1989) "An Experimental Investigation of Software
Metrics and Their Relationship to Software Development Effort" IEE
Transactions on Software Engineering SE-15 no 5 (May) 649-653
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||