Skip to main content
loc

loc

1 8.2
A count of the lines of code in a program to show how big it is
  • noun
  • Jargon
translation icon : loc
  • The project manager estimated that the new software would require approximately 10,000 LoC to complete.

Examples

  • Suppose you structured your code in such a way that you only had to look at under 1,000 LoC at a time in order to do useful work.

    Blog text (30)
  • Along the way, this has resulted in spin-offs like the GUI interface, OO programming, and, if his latest effort pays off, an entire computing system in 20,000 LOC.

    Blog text (28)
  • Sometimes the LoC is not the problem, but the functional complexity of the system.

    Blog text (30)
  • What I'm not buying is your focus on the "LoC" metric.

    Blog text (30)
  • 500,000 LOC = 65 years for coding for one person!

    Blog text (30)
  • I found that, even with reasonable test coverage, changing up code bases of 10K LoC became challenging.

    Blog text (30)
  • Keep your program around 10k LoCs.

    Blog text (30)
  • Recently, Flicker claims to have the TCB down to around a few hundred LOC on an untrusted system.

    Blog text (29)
  • However, I would posit that the size of the problem is more a function of the structure/design of the code than just the number of LoC.

    Blog text (30)
  • In programming, LOC metrics is a good example of a metric based on a faulty premise.

    Blog text (14)

Synonyms

locs
vsloc
  • Jargon
9.7

Lines of computer code used to measure program size

is the singular informal abbreviation referring to that measurement
program line
vsloc
  • Specialized
4.1

A single line of code in a computer program

measures whole program size rather than one code line

How Many

loc
  • Jargon
1 8.2
program line
  • Specialized
4.1
one-liner
  • Specialized
1 4.2

Surface Forms

loc singular
locs plural

Etymology

Loc is a short form of lines of code, meaning the number of text lines in a computer program. So, when people talk about loc, they are using a simple way to say how big or how much work a program is.