does the same assub road{ return "Right." : return "" if (shift eq "On which side of t +he road should people drive?" ) }
Counting the Lines it is 1 vs 10, counting the semi-colons would even be 0 vs 4. Yet the second line is much more readable. Are there any suggestion what to actually count, and how to value it. I would use this to try and get a better method to estimate my own time required for extended jobs. It becomes difficult for me to estimate a project that would take a months, but If I could analyze better how much code for example reading a specific xml file requires, or a complex sorting algorithm, I could look back at my "lines" required for it and estimate the required time.sub road { my $question = 5; my $answer = ""; if ( $question eq "n which side of the road should people drive?" ) { $answer = "right"; } retrun $answer; }
In reply to Re^2: Code Statements/Lines per Function Point
by PerlingTheUK
in thread Code Statements/Lines per Function Point
by PerlingTheUK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |