The number of lines of code is irrelevant as an absolute number, just like "hits" on a web page. Say your project is 50,000 lines instead of 60,000. What's the difference? What will be done once magic number $nlines is found?

Where the measurements are important is when comparing two (or twenty) different numbers. Say you've got these measurements on your projects:
DateLines w/commentsLines w/o comments
4/1 (Start)00
5/15,0004,000
6/110,0007,500
7/112,00010,000

You can see that you've been going along at a nice clip for the first two months, and then in June everything slowed down.

The relationship between lines w/comments and lines w/o doesn't exactly match, but it's close enough for you to say "Hey, look, we're slowing down."

What's important is that you track it consistently, so that the comparisons are meaningful. In the example above, if you switch measurement from with to without comments, it looks like you've made zero increase in a month, which isn't the case.

xoxo,
Andy
--
I was dreaming when I wrote this, so sue me if I go too fast.


In reply to Re: counting total lines of code by petdance
in thread counting total lines of code by d_i_r_t_y

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.