counting source lines (was: Is Python a commercial proposition ?)

Discussion in 'Python' started by Stefan Behnel, Jul 29, 2012.

  1. lipska the kat, 29.07.2012 18:01:
    > My most recent experience is with Java. The last project I was involved
    > with included 6775 java source files containing 1,145,785 lines of code.
    > How do I know this? because I managed to cobble together a python script
    > that walks the source tree and counts the lines of code. It ignores block
    > and line comments and whitespace lines so I'm fairly confident it's an
    > accurate total. It doesn't include web interface files (mainly ..jsp and
    > HTML) or configuration files (XML, properties files and what have you). In
    > fact it was remarkably easy to do this in python


    Just a comment on this part. An even easier way to count source lines is by
    using the tool "SLOCCount". It also works with various languages.

    Stefan
     
    Stefan Behnel, Jul 29, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Hrivnak

    Re: Is Python a commercial proposition ?

    Michael Hrivnak, Jul 29, 2012, in forum: Python
    Replies:
    2
    Views:
    197
    Thomas 'PointedEars' Lahn
    Jul 29, 2012
  2. Mark Lawrence

    Re: Is Python a commercial proposition ?

    Mark Lawrence, Jul 29, 2012, in forum: Python
    Replies:
    0
    Views:
    147
    Mark Lawrence
    Jul 29, 2012
  3. Brandon Schaffer

    Re: Is Python a commercial proposition ?

    Brandon Schaffer, Jul 29, 2012, in forum: Python
    Replies:
    0
    Views:
    151
    Brandon Schaffer
    Jul 29, 2012
  4. Tim Chase
    Replies:
    0
    Views:
    170
    Tim Chase
    Jul 29, 2012
  5. Andrew Cooper

    Re: Is Python a commercial proposition ?

    Andrew Cooper, Jul 29, 2012, in forum: Python
    Replies:
    0
    Views:
    140
    Andrew Cooper
    Jul 29, 2012
Loading...

Share This Page