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 commentsIt was by far the most impressive piece of software engineering I’ve ever had privilege of perusing.
NN (Net News) - it was a text based reader for USENET news, first released in 1984. It's been a minute since then, but I recall it to have been in C. This was before the Internet was highly monetized, and when most projects were open source, written by people who needed (or wanted) a tool, and had the combination of skills, experience, and time to make it happen.
The code was good because it was well designed, and well maintained. Routines were modular and reusable. If you needed to modify something, you could find the right place to make a change, add a feature, and submit it to the repository. Maintainers did not allow crap submissions back into the published code.
So yes to all prompts, with the bonus of having passionate engineers doing something they loved. I'm not sure my contributions ever made it through the "not crap" filter, but they did work beautifully for my employer.
Good code is functional, understandable, flexible, and can be modified without a complete overhaul.
My compliments to all who contributed to NN!
https://www.nndev.org/
Most of the engineers were above average.
Everything was planned carefully in advance and documented carefully, down to individual requirements. We even had some nice to have, optional requirements. After literally weeks of just documents and iterating on the architecture, the code for it was written easily in a week basically in auto mode - if we had AI agents back then we could have had the AI agents write the implementation.
During the implementation we realised there were some technical shortcomings (eg. number of lights supported by the engine) and clients wanted some changes, so we had to update our bible documentation and do a few changes. Some were small, some required to swap completely the rendering engine but we managed to keep everything to the same interfaces we planned at the beginning because the architecture was rock solid and we thought carefully about extensibility.
It may have costed more in engineering time than if we threw requirements on a kanban board and iterated on them - but then we would end up with arguably a worse architecture and no documentation.
All comments shown.
Couldn't load more comments. Check your connection and try again.