Live data from Hacker News

Ask HN: Have you ever seen a perfect codebase?

news.ycombinator.com

1–10 of 15 posts

Ask HN: Have you ever seen a perfect codebase?

#1
In my experience even the best software projects have a few skeletons in their closet, blemishes on an otherwise well-built project.

At the end of the day, we all have to build things that simply work and provide business value. Striving for perfect code is not the goal. But it does make me wonder: does perfect software even exist? If not, what's the gold standard?

Re: Ask HN: Have you ever seen a perfect codebase?

#3
The gold standard for a codebase isn’t perfection - it’s impact. Financially, the closest analogy is ROI minus Operating Costs: as long as that number is positive, you’re technically in good shape. But the real goal is to maximize that difference. For internal systems, that means pairing high ROI with high Business Impact Value.

The hidden danger? ‘Skeletons in the closet’ - technical debt, brittle architecture, poor documentation - inflate Operating Costs over time. They erode ROI silently, turning what looked like a strong investment into a liability. A truly great codebase isn’t just functional; it’s engineered to minimize those skeletons.

Re: Ask HN: Have you ever seen a perfect codebase?

#10
Practically I haven't seen. Either they were sloppy or there was a lot of legacy stuff (especially in big projects). If by perfect you mean 100% bug free and perfectly readable/maintainable, I don't think they exist. Even NASA's code isn't 100% bug free (~0.04 defects per KLOC vs average 15–50 defects in the industry). Exceptions might be some very small codebases. But reasonably polished / tested / maintainable codebases exist.
Post reply on HN