Statistics

When Mood Music
2012-04-16 14:25:00 ground state, i.e. prevaricating Robber Rock – Yabby U

My lecturer tells me ‘All debugging code should be removed. The only exception is when a program can be run in debug mode as per SD1 coursework.’

I’ve saved a copy with the extra methods and commented-out pieces to track events elsewhere, then looked at what’s left after removing these undesirables.

 

Version lines ‘words’ characters characters that are spaces
complete code
340
1834
15,021
2654
comment lines removed,
i.e. just code lines
217
986
8345
1260
%
64
54
55
47
Hence comment lines
123
848
6676
1394
%
36
46
45
43
inline comments (e.g. //end method) removed,
i.e. pure code
217
873
7517
1148
%
64
45
50
43

So I’ve written 217 lines of code for this class of which around 50% is substantive – the rest is spaces and comments to allow humans to read it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.