From: Steve W. <sw...@wc...> - 2000-09-30 15:42:44
|
Wow. How did you do the breakdown? The numbers are interesting and useful. Also, I didn't think I needed to account for brackets when matching a line of code, reasoning that any line of code had to have at least one alphanumeric character. sw On Sat, 30 Sep 2000, Arno Hollosi wrote: > >Subtracting comments, comment blocks and blank lines, I count 2,426 lines > >of executable code (and a few html comments) in *php3 with this perl script: > > Actually, there's a slight flaw in the script: > [a-zA-Z0-9]/ && $count++; > should include brackets as well. > And "*/" lines don't count as comment lines in your script. > > correcting those two errors I get (without admin/): > > 4905 lines in total > 3108 lines code (63%) > 952 lines comment (19%) > 821 empty lines (17%) > 24 lines not accounted for (mostly closing php tags) > > There are a total of 170 functions (96 when counting db-interface functions > only once), 220 if-statements, 34 for-loops, and 31 while-loops. > > Finally, "wc *.php3" says: > lines words bytes > 4905 15526 142812 total > > /Arno > p.s. no, I was not bored ;o) > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > http://lists.sourceforge.net/mailman/listinfo/phpwiki-talk > ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |