Ask HN: What is the best code base you ever worked on?
561 pointsAnd what made it so good?
Was there someone enforcing good practices top down? Just being in a group of great engineers? Or something else?
Was there someone enforcing good practices top down? Just being in a group of great engineers? Or something else?
Comments (454) 104 threads
Earlier commentsI've legitimately left jobs over bad code. We're talking about code that did nothing in reality. The best code bases have been ones where I've been able to lead the direction. I get to know exactly how things work. I'm privileged to have a job where I essentially created the initial framework right now .
Plus I'm fully remote, life is pretty good.
I felt this in my soul as soon as I read it. The number of people writing code who should not even be speaking to others because of how clearly they don't understand anything technical is unfathomably high.
Our industry hires seat fillers and tells them to write software. And then they do, and it's every bit as bad as it sounds.
Some genius hired a "software architect" who doesn't know how to write code. When I asked the genius why he would do that, he said it was because regular architects don't know how to build houses, so why would he know how to program?
That was some next-level shit. He showed us a diagram once where the database was calling github which was calling a microservice. These are the days before Github had a CI, so it was pretty funny.
A lot of effort goes into language design and tooling to enable continuous migration of code. Rather than re-writing entire repos, existing code is continuously upgraded through semi- & fully-automated code-mods. Every day thousands of patches are landed to upgrade APIs with new type safety, security restrictions, deprecations and other code maintenance.
Most other company repos I worked on had major re-writes outside of the mainline until one day there was a sudden and often troublesome switch-over to the new code.
Code is constantly changing, and unless you have a continuous process for landing and testing those changes, you are going to suffer when you try to apply the changes needed to address the accumulated tech-debt.
I work fairly heavily with Facebook's Graph API, and I think they may have employed too many Boeing engineers for the part swaps lately.
We had big multi-year bugs in “assigned” state before its closure, too.
Continue this thread — 1 reply
At ksplice we swapped the code out from under the kernel without rebooting, so I know what you mean.
I thought it was IBM but I was quite mistaken, so good thing I looked it up lol
It was the smallest, and most bizarre interleaved task-structure I'd seen fit into a $0.17 micro-controller. I kind of admired that the code itself formed the delays for other areas of the multiple tasks, and essentially achieved near perfect resource utilization for actual work.
Never saw anything that efficient again for several decades. =3
All comments shown.
Couldn't load more comments. Check your connection and try again.