Line Of Code

The definition of a line of code, though basic to many Software Engineering metrics, is ambiguous. What a "line of code" means will certainly vary across languages, but it also varies for a given language. But when using a standard layout, much of this ambiguity goes away. It is common, though not universal, to ignore comment lines when counting code. In the C language, for example, a line of code might be (1) a statement terminated by a newline, (2) a statement terminated by a semicolon, or (3) any line in the program terminated by a newline (comments included). for (i=0; i<100; ++i) {printf("hello");} /* How many lines of code is this? */ Keeping these limitations in mind, the KLOC (thousand lines of code) is sometimes used as a unit for measuring a program's size or complexity. Defects per KLOC is sometimes used when measuring a program's quality.

See also

 

<< PreviousWord BrowserNext >>
nagashino castle
distinguished service order
nagato province
nagoya castle
nagoya, saga
betacam
nairan
miguel barbachano
nakae chomin
northern flying squirrel
santiago mndez
stanley g. weinbaum
jim anderton
order of the thistle
arthur porges
nakagawa hidemasa
the loved one
douglas rushkoff
ansei purge
prince narinaga
salafi
lester dent
charles heaphy
senior minister
integration testing
little people
david stockman
e. haldeman julius
johan van oldenbarnevelt
little languages
jeanne of flanders
kenneth robeson
international socialist organization
ruddy shelduck
education in scotland
education in wales
education in northern ireland
texas annexation
purundiro
little blue books
oktoberfest (hong kong)
photojournalism
list of photojournalists
masurian