LOC - LeFreq/Singularity GitHub Wiki

Lines Of Code

A measure of your code base by number of lines. This project doesn't count comments or docstrings. But these can be grouped in a different metric. Probably they should be close to 1:1.

A line of code would count every line with a semicolon in C. However, for calculating your theoretically-ideal, code size, you must use raw, bare-naked assembly code (no macros, just the op codes, no magic symbols -- from your CPU) as the base measure (call it MLOC--machine lines of code). See SoftwareArchitecture. Allowing function calls, gets you perhaps 10-fold reduction in code size, but with the metric given in the architecture page, you can reduce your code another 10x and more. The metric forces you into creating software architecture, because it knows there's a way to do it and everyone benefits. The Singularity project came about from this understanding.

BTW, you should pay your programmers ~50-100% more if you require them to document code to this standard. You're asking them to give you their mind.

⚠️ **GitHub.com Fallback** ⚠️