Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

878935 Posts in 32945 Topics- by 24353 Members - Latest Member: kanki

May 23, 2013, 12:42:40 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)How many code lines in your last/current game?
Pages: 1 ... 4 5 [6]
Print
Author Topic: How many code lines in your last/current game?  (Read 3161 times)
ThemsAllTook
Moderator
Level 8
******


Alex Diener


View Profile WWW
« Reply #75 on: January 17, 2012, 07:57:37 AM »

After seeing all of the cloc posts in this thread, I felt like doing a closer analysis of some of my stuff with it.

Game dev framework (http://libstem.org/) implementation:
Code:
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C                               53           1791            862           8255
C/C++ Header                    64            832           1344           2006
Objective C                      9            285            157           1482
-------------------------------------------------------------------------------
SUM:                           126           2908           2363          11743
-------------------------------------------------------------------------------

Game dev framework test code:
Code:
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C                               53           1991             38          15773
C/C++ Header                     2             20              2            157
-------------------------------------------------------------------------------
SUM:                            55           2011             40          15930
-------------------------------------------------------------------------------

Most recent game using my framework:
Code:
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C                               74           2190           1307          11353
C/C++ Header                    78            964           1333           2359
-------------------------------------------------------------------------------
SUM:                           152           3154           2640          13712
-------------------------------------------------------------------------------

The entire framework was written with strict TDD, so it's not too surprising that test code is the largest. What does surprise me is that there are nearly as many comments per lines of code in the game as in the framework. I'm a very sparse commenter, preferring to write code that explains itself, but I do like to document my public APIs when they need it.
Logged
_Tommo_
Level 7
**


frn frn frn


View Profile WWW
« Reply #76 on: January 17, 2012, 07:25:50 PM »

Three days' worth of work on my latest project:
Code:
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C/C++ Header                    27            506            149           1395
C++                             14            272             49            720
-------------------------------------------------------------------------------
SUM:                            41            778            198           2115
-------------------------------------------------------------------------------

There's already a lot of stuff in it, I'm doing a good job at keeping the LOC count down Beer!
Still no GUI tough, the source of all the bloats.
Logged

Pages: 1 ... 4 5 [6]
Print
Jump to:  

Theme orange-lt created by panic