Lines of Code Lines of code (LOC, KLOC = 10K LOC, MLOC = 1M LOC etc., also SLOC = source LOC) are a metric of software [1]complexity that simply counts the number of lines of program's [2]source code. It is not a perfect measure but despite some [3]soyboys shitting on it it's actually pretty good, espcially when using only one language ([4]C) with consistent [5]formatting style. Of course the metric becomes shitty when you have a project in 20 programming languages written by 100 pajeets out of which every one formats code differently. Also when you use it as a [6]productivity measure at [7]work then you're guaranteed your devs are gonna just shit our as much meaningless code as possible in which case the measure fails again. Fortunately, at [8]LRS we don't have such problems :) When counting lines, we need to define what kind of lines we count. We can either count: * raw (physical) lines: every single one * lines that actually "matter" (logical lines), e.g. excluding comments, blank lines etc. A comfy tool for counting lines is [9]cloc, but you can also just use wc -l to count raw lines. Links: 1. complexity.md 2. source_code.md 3. soydev.md 4. c.md 5. code_formatting.md 6. productivity_cult.md 7. work.md 8. lrs.md 9. cloc.md