Sunday, July 29, 2007

Lines Of Code

A line of code is every line but comment lines or blank lines. As you can see, this metric is not very representative. You may break down a single line as two lines. However, LOC is very popular.

LOC=1
for (i=1; 10; 2) { a = a + i ; }

or

LOC=4
for (i=1; 10; 2)
{
a = a + i ;
}

Reference
(1) Software metrics: good, bad and missing

1 comment:

Roy said...

nice notes...for all notes of computer science engineering notes
visit..engineering notes