|
From: | Ken Anderson |
Subject: | Re: Lines-of-Code counting for Scheme |
Date: | Fri, 19 Apr 2002 14:29:06 -0400 |
What i do in Java is count "}" and ";".To get a reasonable physical line count in Scheme, you could read each expression from the orignal scheme file and then pretty print it and then count those lines.
Ward Cunningham has an interesting way summarizing a java class by squeezing out all the characters that aren't "{", "}", or ";":
http://c2.com/doc/SignatureSurvey/It gives you a quick summary where each Java file is one line, and you can see some interesting patterns.
k At 01:53 PM 4/19/2002, Greg Troxel wrote:
I've recently been keeping metrics on programming tasks in C, and want to do that on code in Scheme as well. For C, I'm using the usual "Physical SLOC" definition, which removes all comments and then all blank lines (yes, this means that coding style makes a difference). There are a number of definitions of Logical SLOC, but they do not agree. So, I took a stab at Logical SLOC for Scheme (taking advantage of the clean syntax) and declared each '(' to be a single LSLOC. (-LSLOC seems about 50% higher than PSLOC, at least for the SLOC-counting program.
[Prev in Thread] | Current Thread | [Next in Thread] |