What a tricky metric.<p>Here's a hypothetical example of what often happens to me:<p>1. Have a problem, need a module, copy a template: 100 LOC.<p>2. Add meat to the bones: 500 LOC.<p>3. Start testing & find gaps: 700 LOC.<p>4. Keep testing until it works (almost) perfectly: 1000 LOC.<p>5. Refactor, rename variables, tighten comments, pull common objects, strip out what was never really needed: 300 LOC.<p>A lot of work to get to 300 LOC, but I couldn't have done it without writing 1000 LOC in the first place. How do I measure that?