Share via


Random fun fact: Lines of code in our C# compiler test suite

For some reason, that I don't remember now actually, one of the guys on my team had to write a quick Perl script to get the number of lines of C# code in a set of source files. He ran it against our test suite and 2,225,546 came out the other end. Not sure how we'd use this data, but we still found it somewhat amusingly interesting.

Comments

  • Anonymous
    April 22, 2004
    Is the result include whitespace like newline, '{', '}', etc....?

  • Anonymous
    April 22, 2004
    I know he said it didn't include whitespace (blank lines), but it probably would include lines with a single brace on them, etc. I don't think he spent much time on the script.

  • Anonymous
    April 22, 2004
    Compare this count with the number of lines of code in System.Xml (and XSLT and Serialization) codebase in the ROTOR stack. System.Xml contains 100,000 LOC including whitespace and comments.

  • Anonymous
    April 22, 2004
    Compare this count with the number of lines of code in System.Xml (and XSLT and Serialization) codebase in the ROTOR stack. System.Xml contains 100,000 LOC including whitespace and comments.

  • Anonymous
    April 22, 2004
    Compare this count with the number of lines of code in System.Xml (and XSLT and Serialization) codebase in the ROTOR stack. System.Xml contains 100,000 LOC including whitespace and comments.

  • Anonymous
    April 22, 2004
    Did they get in trouble for hacking it up in Perl .... {snicker}

  • Anonymous
    April 22, 2004
    If Perl would get us in trouble, we would have been out of jobs long ago. We use it quite a bit, actually, most of our harness is in Perl.

  • Anonymous
    August 04, 2004
    Where can i find this code? Can I get a copy of this code. We have such a requirement in our project. We can have done it but we were searching for some inputs to start with. Any help would highly be appreciated. please send it to skverma_in@yahoo.com

  • Anonymous
    March 03, 2006
    The comment has been removed

  • Anonymous
    June 28, 2007
    PingBack from http://blog.tomtebo.org/2004/04/23/the_c__test_team_counts_loc___in_perl/

  • Anonymous
    June 18, 2009
    PingBack from http://thestoragebench.info/story.php?id=10019