SLOC in Squeak History

Trygve Reenskaug trygver at
Tue May 11 07:21:37 UTC 2004

For what it may be worth: Some years ago, we tried finding metrics for 
volume and complexity of ST code. We tried many exotic measures, but ended 
up with counting number of code lines, ignoring pure comment lines. This 
worked when we assumed that a programmer will break complex code into 
several lines, and compress simple code into a single line. It would 
certainly not work if the programmers were in any way rewarded or punished 
for lines of code, and it does not measure productivity. (On my most 
productive days, the number of lines of code goes down).

LOC can be useful as a rough measure of code "volume", but it immediately 
breaks down if you try to define its meaning more carefully.


At 10.05.2004 18:29, you wrote:
>Hi all,
>I have been looking at software evolution and the diffusion of Squeak
>into the world. Like other large free and open source software projects,
>Squeak appears to violate the 'laws' of software evolution re: growth in
>code. I'd like to compare apples to apples, however, and the traditional
>apple variety is SLOC (software lines of code).
>So, I want to write a method that will count the SLOC in each version of
>squeak. My question is what object am I seeking to enumerate? It doesn't
>seem to be Message.
>Michael Cole


Trygve Reenskaug      mailto: trygver at
Morgedalsvn. 5A
N-0378 Oslo           Tel: (+47) 22 49 57 27

More information about the Squeak-dev mailing list