April 21, 2010
"SQLite library consists of approximately 67.2 KSLOC of C code. (KSLOC means thousands of “Source Lines Of Code” or, in other words, lines of code excluding blank lines and comments.) By comparison, the project has 679 times as much test code and test scripts - 45678.3 KSLOC."

From How SQLite Is Tested, via Reddit.

Impressive. In comparison, Perl 5.12.0 has 29826 tests*.

* from running egrep -ri "tests ?=> ?" * | perl -e '$s = 0; while(<>) { m/.*tests ?=> ?([0-9]+)/; $s+=$1;} print "total: $s\n"' inside t/ directory. Remember Tumblr RSS is broken, you may not see the right code in your feed reader.

by jjm on 8:17am  |   URL: http://tmblr.co/ZPorZyW3Nm2
(View comments
Filed under: Tests Quality SQLite Perl KSLOC 
March 12, 2010
"I’m tired of Perl being seen as a second-class citizen in the dynamic languages world. I freely admit that there’s a lot of bad Perl code out there (I’ll even admit to writing some of it) but it’s not bad Perl code because it’s Perl, it’s bad Perl code because it’s bad code."

From Crufty Old Perl.

Yes, I agree (indeed I’m guilty myself of coding some bad Perl code). Seems that Perl it’s the only one language capable of having bad practices: unmaintainable code, unreadable code, etc; or what it’s even worse, the only one language not being able to avoid these bad and undesirable things.

by jjm on 3:31pm  |   URL: http://tmblr.co/ZPorZyQRgP-
(View comments
Filed under: Perl Bad Code quality