-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
metrics-for-programmers.scroll
38 lines (27 loc) · 1.35 KB
/
metrics-for-programmers.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
date 2010-03-16
tags All Programming HasDataset
title Metrics for Programmers
header.scroll
printTitle
mediumColumns 1
I wrote a simple php program called phpcodestat that computes some simple statistics for any given directory.
dateline
http://github.com/breck7/phpcodestat phpcodestat
endSnippet
I think brevity in source code is almost always a good thing. I think as a rule your code base should grow logarithmically with your user base. It should not grow linearly and certainly not exponentially.
If your code base is growing faster than your user base, you're in trouble. You might be attacking the wrong problem. You might be letting feature creep get the past of you.
I thought it would be neat to compute some stats for popular open source PHP applications.
My results are below. I don't have any particular profound insights at the moment, but I thought I'd share my work as I'm doing it in the hopes that maybe someone else would find it useful.
table
printTable
delimiter |
data
Name|Directories|Files|PHPFiles|PHPLOC|PHPClasses|PHPFunctions
../cake-1.2.6|296|677|428|165183|746|3675
../wordpress-2.9.2|82|753|279|143907|149|3827
../phpMyAdmin-3.3.1-english|63|810|398|175867|44|3635
../CodeIgniter_1.7.2|44|321|136|43157|74|1211
../Zend-1.10|360|2145|1692|336419|42|11123
../symfony-1.4.3|770|2905|2091|298700|362|12198
****
footer.scroll