![]() It is much easier to create tools that measure physical SLOC, and physical SLOC definitions are easier to explain. Logical SLOC attempts to measure the number of executable "statements", but their specific definitions are tied to specific computer languages (one simple logical SLOC measure for C-like programming languages is the number of statement-terminating semicolons). In this case blank lines in excess of 25% are not counted toward lines of code. Blank lines are also included unless the lines of code in a section consists of more than 25% blank lines. Specific definitions of these two measures vary, but the most common definition of physical SLOC is a count of lines in the text of the program's source code including comment lines. There are two major types of SLOC measures: physical SLOC (LOC) and logical SLOC (LLOC). While it is debatable exactly how to measure lines of code, discrepancies of an order of magnitude can be clear indicators of software complexity or man hours. ![]() Using lines of code to compare a 10,000 line project to a 100,000 line project is far more useful than when comparing a 20,000 line project with a 21,000 line project. Software projects can vary between 1 to 100,000,000 or more lines of code. Many useful comparisons involve only the order of magnitude of lines of code in a project.
0 Comments
Leave a Reply. |