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
cwbriscoe#
One that I built and maintained 100% on my own. Nothing like doing things the way you like to without someone else messing everything up.
unkulunkulu1 reply#
The one I’m working at right now!

What made it great: the company is 7 years old, I work basically since inception, half year late.
The codebase had some serious problems due to migrating build systems, rapid team growth and lack of proper communication while developing important infrastructure tools, lack of foresight at the start of a crucial requirement for the whole system that became clear 3 years in.
Aaand… Due to unique sequence of events half a year ago we had to start everything from scratch! We could not use a line of code from the old repo !
This brought miracles out! We started designing the right things right. People started talking to each other on the global scale, without the code limiting them!
The old code not only had problems on the engineering level, but it held people and team responsibilities along suboptimal interface boundaries! This is the biggest magic! After the rewrite started, all the people in the team landed exactly where they wanted and their areas of responsibility became clear and highly efficient. Some people started shining like I could not imagine. Because their organizational and communication skills were limited by a huge suboptimal codebase.
Also, it is very empowering to design a system when your whole team has real experience 5 years into the future. Also, everyone turned out to be caring about code simplicity and quality, I finally feel at home.
I could not wish for a better developer experience. The sexiest C++ coding time in my life :)

pcatach1 reply#
Interesting! Seems like you were uniquely well-positioned to tackle the infamous system rewrite in a way that worked out great.

Fixing the interface boundaries is a strong case for it despite all of the downsides (mostly opportunity cost, I'm thinking).

unkulunkulu#
But opportunity cost might not really turn out to be a real factor. Code is a liability, we only would like to think that our code is worth keeping, but the reality is it drags us down by definition: more code requires more manpower to support, this is objective truth.

In the old system a lot of things were really slow. I know that now half year in we already have a couple of problems solved that required me and a small team’s half a year work to solve and right now Im working on a problem that almost was not solvable at all before, I’m planning it infractructurally solved by the end of the year.
Other teams say they threw away a lot of grabage that grew with the old implementation and kept only “the good parts”.
A lot of work done by the teams is now offloaded to the infrastrucutre.
We have remote IDE for everyone from day one instead of build-inside-docker-do-what -you-want because old build system could not be and never was thrown away overnight.
List goes on

ysris#
Considering the biases, the one I wrote for the company I created.

When we have the opportunity to be in this context, keeping in mind what bothered us in the codebases with which we were able to work in the past, we can force ourselves not to reproduce the same errors. Like the unmaintained unit and integration tests, the lack of refactoring, other developers that use fancy technologies instead of simpler concepts more for the opportunity to play with technologies than real need..
And also, I guess, because we are more aware that the code is a reflection of the company that we want to have, that the simpler the better is a key point when we need to debug.

Maledictus1 reply#
Ruby on Rails.

It is the only framework I have read top to bottom.
Also the FreeBSD kernel, if you want to see a C code base that's quite beautiful (for C).

sgt1 reply#
In this category I would nominate Django as well. It's very well designed (opinionated, but usually for good reasons).

In terms of large C code bases I enjoy reading the PostgreSQL source code.

rc_mob1 reply#
whenever I'm stuck on how to structure some code, I ask myself how would Laravel do it? and look up their code and structure mine similarly
chuckadams#
My story is similar, but using Laravel as the canonical example of how not to structure things. Even without Facades, the internals are an impenetrable maze of magic methods, with things like Macroable adding methods from dog-knows-where. Even adding phpdoc types doesn’t work when dealing with things like scopes.

Load more comments