Follow

Lines of Code

Avatar

First off, let me state for the record, "We understand fully that lines of code is not a great metric."  Sometimes more lines of code makes for clearer code; sometimes it's just inefficient.  Sometimes fewer lines of code are clearer; sometimes they're completely unreadable.  We get that.

On occasion, though, our clients and prospective clients ask us how many lines of code there are in the SCORM Engine.  And, I'm going to share with you a report for both the .NET and Java versions of the Engine.  We've spent years building the two source code versions to be tightly tied.  The source code that is shared between them is substantial, and the majority that isn't shared is automatically translated by a project we created called cs2j.  

So, for a representative count for a single source language, look at the .NET counts.  (If taken independently, the Java count is within 5% of the .NET count.)  (To be clear, the javascript from the .net source is delivered with the Java source version, as is the SQL, and the XML, etc.)

 (To be clear, this was calculated using the open source project found here: http://sourceforge.net/projects/cloc/

Report for the .NET engine:

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Javascript                     225          15272           6749          91109
XML                             42            311             56          83659
C#                             401          13555          24052          66085
SQL                             86          11215           1804          45261
XSD                             89           1806           2342          10849
HTML                             3             19            104           6930
ASP.Net                         47            464             72           4254
MSBuild scripts                  9              3             42           1744
CSS                              8            174            158           1193
XSLT                             2            111             44           1098
DTD                              4            136            300            774
NAnt scripts                     2             18            143            422
DOS Batch                        2              4              1             14
ASP                              1              2              0              3
-------------------------------------------------------------------------------
SUM:                           921          43090          35867         313395
-------------------------------------------------------------------------------
and Java:
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Java                           484          10807          10995          72251
Javascript                       9            372            734           6374
JSP                             72            591            998           4990
XML                             22            259            471           1825
CSS                              4            116             38            703
XSLT                             1             37            133            326
Bourne Shell                     4             19             57            284
HTML                             6             12             37            111
-------------------------------------------------------------------------------
SUM:                           602          12213          13463          86864
-------------------------------------------------------------------------------
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk