SLOC in Squeak History
marcus at ira.uka.de
Tue May 11 07:58:05 UTC 2004
Am 11.05.2004 um 02:29 schrieb michael.cole at nimiq.net:
> 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
> Squeak appears to violate the 'laws' of software evolution re: growth
> code. I'd like to compare apples to apples, however, and the
> apple variety is SLOC (software lines of code).
> So, I want to write a method that will count the SLOC in each version
> squeak. My question is what object am I seeking to enumerate? It
> seem to be Message.
There is ClassDescription>>linesOfCode
The comment says:
"An approximate measure of lines of code.
Includes comments, but excludes blank lines."
In my latest 3.7a:
Smalltalk allClasses inject: 0 into: [:sum :each | sum + each
Of course, LOC makes not that much sense as a metric.
Marcus Denker denker at acm.org
More information about the Squeak-dev