I stumbled across this gem called “Negative 2000 Lines of Code” on folklore (no, not forklore.in hehe :p) – a storytelling archive with anecdotes about and from the OG Mac team; felt it was worth a share here.
The story is from Feb 1982. Management had this brilliant idea of measuring engineer productivity by counting lines of code written each week (something Elon considered as well, eurgh). Each engineer had to submit a form every Friday with their LoC count.
Bill Atkinson, yes, the same Bill who wrote QuickDraw and was the primary UI designer for the Lisa, thought this was the silliest metric imaginable. His whole philosophy was to write code that was small and fast, and he figured LOC metrics would just encourage bloated, broken code.
Around that time, he had been optimizing QuickDraw’s region calculation machinery. He completely rewrote the region engine with a simpler, more general algorithm that made region operations nearly six times faster. And as a side effect, the rewrite eliminated about ~2,000 lines of code.
So when he sat down to fill out that management form, he paused for a moment, then wrote in: -2000.
The article doesn’t say how management reacted, but a couple weeks later they stopped asking Bill to fill out the form, and he was more than happy to oblige!
If you want to read the original story, here it is: Folklore.org: -2000 Lines Of Code