The first is 2 lines. The 2nd is 5 lines.

This is purely in the "wc -l" sense. If someone chooses to make any futher assumptions on what a certain number of lines of code actually *means*, well, there be dragons.

But, as with many things, not being able to precisely define an exact 100% accurate all the time valid reason for something doesn't meant that it can't be useful.

I like to measure the number of lines of code in our system over time. I don't really make any important decisions based solely on that number, but it's still useful to watch. Yes, changes in coding style can have an impact on that, but I can bear things like that in mind.

It's like benchmarking. Knowing the raw speed of something tells you very little most of the time, just as knowing how many lines of code you have in a system tells you little. But telling how things move over time, or compare to other things, starts making it more useful.

Tony


In reply to Re: Re: Code counter by salvadors
in thread Code counter by Falkkin

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.