Lurker News
And what made it so good?

Was there someone enforcing good practices top down? Just being in a group of great engineers? Or something else?

Comments (454) 104 threads

Earlier comments
JensRantil1 reply#
The first few years at a previous startup I worked on. Java. CI/CD in place when merging PRs. But mostly, the thing that made the code base great was the fact that the code wrapped external libraries in small interfaces that were _owned by the company_, and dependency was used to not depend on implementation interfaces. In short, adhering to the basics on the SOLID principles.
meowtimemania2 replies#
Kinda sounds like abstraction hell. What did you gain by wrapping all external libraries in interfaces?
oasisaimlessly#
In my experience, any third-party dependency will inevitably eventually be in-sourced. Third-party dependencies are technical debt - they let you make fast progress initially, but have recurring maintenance costs.

Wrapping the API lets you see, all in one place, the surface area of an external API that is in use, and minimizes the changes required here when reimplementing it.
---
Also, not that Clean Code is any great authority (but it is popular!):
> [Wrapping] third-party APIs is a best practice. When you wrap a third-party API, you minimize your dependencies upon it: You can choose to move to a different library in the future without much penalty. Wrapping also makes it easier to mock out third-party calls when you are testing your own code.
> One final advantage of wrapping is that you aren’t tied to a particular vendor’s API design choices. You can define an API that you feel comfortable with.

JensRantil#
oasisaimlessly's response says it all.
asdgharshabro#
Lean 4 is the best codebase I've worked on. It's a functional programming language and theorem prover that really stands out. What makes it great is how it combines programming with formal proofs. The code is super clear and well-organized. Even though it's complex, it's easy to read and understand. The documentation is top-notch, with machine-checked proofs for core libraries. It has this cool metaprogramming system that lets you generate code and automate proofs elegantly. Working on Lean 4 has been amazing - it's pushed my skills to new levels. It's rare to find a project where code, math, and logic come together so nicely. Every time I dive into the codebase, I learn something new.
cqqxo4zV46cp2 replies#
A blank slate, so I can make the first mistake :)
escapecharacter1 reply#
I agree, the best code base is always a zero-line code base.
alex_suzuki#
After that first line, it’s all downhill from there… :-)
azangru#
So true!

I spend so much time obsessing over how what I am about to write ties in with what has already been written; or fuming over the stupidity of earlier decisions (usually made by myself). A blank slate is incredibly refreshing.

Agingcoder1 reply#
I haven’t contributed code to it, but I’ve read lots of code in it ( for work reasons ) - I really like the golang compiler and library codebase.

About codebases I’ve written code for, the best one strived for simplicity, and was driven by very strong engineers who actively considered code hygiene ( in the broadest possible sense ) a first class citizen.

christophilus#
Go, SQLite, Redis are the three that came to mind for me. Simple, readable, fairly flat hierarchy.

Load more comments