Game Development Community

Code Metrics of HEAD as of 2003-12-12

by Jarrod Roberson · in Torque Game Engine · 12/11/2003 (10:27 pm) · 7 replies

Project Metrics

Classes:               2546
Files:                 1579
Functions:            22540
Lines:               668406
Lines Blank:         100133
Lines Code:          347767
Lines Comment:       120499
Lines Inactive:       76407
Ratio Comment/Code:    0.35

I just got the latest HEAD to start merging my changes into the new structure and the layout of the code is much cleaner and things are much easier to find :)

#1
12/11/2003 (11:32 pm)
Everytime I see metrics for Torque, it reminds my why I don't know the whole thing inside and out like I do with most projects :-)
#2
12/12/2003 (10:25 am)
1 comment for every three lines? That's pretty good...
#3
12/12/2003 (11:34 am)
I think you are reading that backwards Ben, more like 1 line of comment for every 350 lines of code and you have to count all the CODE that might be commented out ;-)
#4
12/12/2003 (11:44 am)
Who needs comments anyhow?
I hate comments..
grr
they just get in the way of good code reading.

if you cant read it.. you think a comment will help?

:)
#5
12/12/2003 (1:53 pm)
Ratio comment/code = .35

So for each line of code there's .35 lines of comments... so for every three lines of code there's one whole line of comments?
#6
12/14/2003 (3:28 pm)
Lines Code:          347767
Lines Comment:       120499

See above - they have the same number of digits. If it were per 350 lines of code, the lines of comments would have 2 less digits.

Whew! Glad that's settled :)
#7
12/14/2003 (5:01 pm)
Yeah, the thing is the tool I am using does not differentiate between commented out code and information comments or the license headers that are in comments. So thoses numbers are not anywhere close to reflecting how much informational comments there are in the code.

1.2 has increased that number from the last time I ran this metric suite.