this post was submitted on 15 Jul 2026
141 points (98.0% liked)
Programming
27704 readers
460 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
How much is one million lines of code?
If a senior engineer works in a well-defined, well-architected greenfield project, and does extensive tests, 10,000 lines of code written in one year are very productive. The amount of new code per person-year will be much less in larger projects - a good indicator is the line count and the estimated value of the Linux kernel (40 million lines in 2025, redeveloping it in 2011 would have already cost 2200 million Euros, which would pay e.g. 36000 person-years for mid-level German software developers, that would mean 1111 lines per person-year{actually about half of that because of the interim growth of line count in the meantime }- and most software projects can only dream about so much actual value.)
So, you can say 1,000,000 lines of code generated in 11 days are probably 100 person-years of technical debt.
One caveat: It is relatively simple to auto-translate code in restricted languages like Java, Python, or Rust to unrestricted languages like C or C++. In that case, enforced invariants (like "no use of freed memory" or "sharing data across threads xor mutation") become implicit, but verbatim translation is often possible.
The other direction will require a re-design..
you can't compare the tech debt because it's essentially a line by line translation from an existing codebase, not 1M brand new lines of code
not sure if I understand correctly, but this sounds off
You can do the math yourself:
how many lines of code does the linux kernel have?
what is the estimated value of the kernel, which is the hypothetical cost to re-create it?
what do you think the seniority of a linux kernel developer is?
what annual salary do they make in the country which uses Linux most - the US?
now divide kernel value by annual salary to get man-years, and lines of code by man-years to get average lines of code per year
Result: Typing in code that somehow compiles was never the bottleneck