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

prinny_4 replies#
The one in my previous job, which was an admin board for a market intelligence application. Ultimately, the reason it was good was because the engineers had zero ego on top of having excellent skills. The team that set the codebase were basically 4 seniors and 3 principals (the client actually did pay for top talent in this case) so not only everything was based on industry standards, written elegantly and organized perfectly, but every time some new requirement came up, these senior / principal engineers would discuss it in the most civilized matter I have ever seen.

E.g, "we need to come up with a way to implement X". Person A gives their idea, person B gives another idea and so on until everybody shared their thoughts. Then someone would say "I think what person C said makes the most sense" and everybody would agree and that was it. 30 minutes to hear everybody out, 3 minutes to discuss who will do it and when and the meeting was over.
I think the biggest testament to this code base was that when junior members joined the team, they were able to follow the existing code for adding new features. It was that easy to navigate and understand the big picture of.

brailsafe1 reply#
This is the approach I tried to take as an IC frontend on a building management system dashboard about a year ago. It was basically me and one other frontend, one full-stack, and a QA or 2, plus a manager. My manager I guess had written a lot of the code we'd be interacting with, and I guess was somewhat protective and reluctant to delegate authority over decisions around it. It was a big refactoring project, and I just encouraged my colleagues to take the things they wanted, like rebuilding the state management system. We'd discuss the requirements and why it was necessary, and I'd look for reasons to agree rather than disagree, then we'd be off. Something burnout has taught me is that the marginal differences between one implementation detail or another are not worth getting hung up on unless they pose a real problem, especially when someone else gets to decide that doing it fast is priority (sprints).
robertlagrant1 reply#
> Something burnout has taught me is that the marginal differences between one implementation detail or another are not worth getting hung up on unless they pose a real problem, especially when someone else gets to decide that doing it fast is priority (sprints).

I think this is true. And a self-imposed problem (should a problem arise) is much less frustrating to fix than one that came from a decision imposed by someone else, even if the latter avoided loads of other problems. Sometimes it's better to let people make mistakes (as you believe them to be) and correct them later.

konschubert1 reply#
And often, the cost of indecision is much bigger than the margin in utility between the optimal and the second-to-optimal solution.

Continue this thread — 1 reply

psychoslave#
Great example as it shows that code base really is a side consideration and a proxy to team quality.
cainxinth1 reply#
Another reminder that soft skills multiply the effectiveness of hard skills.
alickz#
Exactly.

What is development if not communication? Between the clients, the coworkers, the users, and the computer
I'd take a mediocre dev with no ego and ok social skills on my project any day over an egotistical genius who can't work with other people or effectively communicate their ideas

zamalek#
Otherwise known as "you are not your code" and "you are not your ideas." Essentially, criticism against your code is not a personal attack (and other corollaries). Its definitely something I aspire to, but its surprisingly hard to get right.
lanstin4 replies#
AOL's server code was excellent. It was written by some people that had done similar things for BITNET and had a deep understanding of Unix programming and how to use event loops for scalability.

It was in C, but the process was expected to run for months without crashing or running out of memory; if it had an abnormal exit, you'd (the owner as set in some code thing) get an email with the core backtrace. If it had a memory leak, ops would be on you quickly. Ops was considered a primary driver of requirements to dev, and absolutely everything could be reloaded into a running server without restarting it. There was a TCP control port where a TCL interpreter inside the service was exposed and generally you wrote the (very simple, CS 101 style) TCL commands to manage the server. It was a "No Threads Kernel", scaled to the dozens or hundreds of physical machines communicating over a very well managed network, and most 1 process per core, and 1 core for the OS. The 200 or so unix developers (as we were called) had a common understanding of how the framework worked and if you were just writing app code it was basically impossible to write slow services. We had technical writers that would interview the developers and write books that could be handed to outside developers and lead to a successful integration with no developer time spent.
The NTK was primarily for sending msgs over the network - we had a principle to never write to disk (which were pretty slow in the 1990s), so everything was just a server to get network messages and then send out other messages in reponse and then assemble the replies/timeouts and send back a msg to the caller. All done over persistent connections established by the infrastructure, the applications just registered callbacks for msg type 'X' which would present one with the caller information, the msg as a buffer, and potentially a "user word" which would be a way to keep server state around between calls.
The layering, from the main select loop thru different layers of TCP connection, SSL handling (if used, not 100% was SSL in the 90s), thru persistent link handling, application msg handling, timers, memory allocation, etc. was done with such art that I felt it to be a thing of beauty.

mrpippy1 reply#
Fascinating, what kind of hardware/OS was used in production?
lanstin1 reply#
Started with Tandem and Stratus pre Unix then migrated to HPUX then Solaris then Linux on stock hardware. Also Digital for big machines and early usage of 64 bit. I ported to Mac OSX but only for local dev.

Funny thing about HPUX to Solaris migration is we found a ton of null pointer dereferences which didn't cause SEGV on HPUX but did on Solaris. And Linux migration was to a different endianness so had to fix any copying to/from ints to a buffer.

tibbydudeza#
I worked at a bank where we used Tandem NonStop on Guardian OS - loved the programming environment using TAL language and the built-in SQL database.
patrick4517 replies#
Sadly, it seems like the moral of this account is that engineering quality is orthogonal to business success.
winrid1 reply#
I wouldn't say it was a failure. They had a good run in a very quickly evolving time. That they got a slice of business for years during that period isn't bad!
CPLX#
When did they fail? They acquired Time Warner, creating a company that after continued consolidation is now ranked #13 on the Fortune 500 list.
foooorsyth1 reply#
AOL was an incredibly successful business. Nothing lasts forever.
__loam#
The creative destruction of the business cycle grinds ever onward.
huhtenberg1 reply#
Orthogonal implies independence, not inverse correlation (which is what I'm guessing you meant).
justin66#
I bet they meant what they wrote, since it makes more sense than what you're suggesting they meant.
dmd#
Er, what? AOL was one of the most successful companies… ever. Things moved on, but this is like saying the roman empire was never successful.
deanishe#
AOL was extremely successful in its day.

They had 40 million customers paying $20/month 30 years ago.

mtoddsmith#
AOL's primary business was dialup modems. Those died off after internet became ubiquitous.

They pre-dated Yahoo and Google as an index of the internet.

bakuninsbart#
Good engineering quality can't save a business, but the reverse isn't true, we just usually don't attribute the failure directly to the software. Instead we would say things like "the company ran out of money" - even if the underlying reason is that engineering was expensive with low velocity. Or that a disruptive competitor brought the company down, even if this could have been prevented if the architecture had permitted eg. relatively easily updating to a more modern UI.
edgyquant1 reply#
Can’t be the same thing GP is talking about as the repo says it’s multithreaded and the poster said what they worked on wasn’t
mtoddsmith#
Might have been updated later on.
lanstin#
No that is a webserver that AOL bought. It used TCL but also threads.
YZF#
BITNET the IBM academic network? I thought that was mostly IBM mainframes (Not a lot of Unix). A lot of US universities had a mix so I guess people would have exposure to C/Unix.
pavlov2 replies#
For me, the most eye-opening codebase of my career was Cocotron, around 2007:

https://github.com/cjwl/cocotron
I was looking for a way to port my native Mac Cocoa apps to Windows. I had been already disappointed by the aimless sprawl of GNUstep.
This one-person project implemented all the essential APIs for both Foundation and AppKit. Reading the code was a revelation: can it really be this simple and at the same time this effortlessly modular for cross-platform support?
I contributed a few missing classes, and successfully used Cocotron for some complex custom GUI apps that needed the dual-platform support.
Cocotron showed me that one person with a vision can build something that will rival or even outgun large teams at the big tech companies. But focus is essential. Architecture astronauts usually never get down from their high orbits to ship something.

hannofcart1 reply#
+1 to this.

I remember my boss asking me to build a MacOS UI we had on Windows with this. I was very sceptical that it would go anywhere.
But no, it worked. I was just open mouth shocked to see the GUI worked pretty flawlessly in Windows.

cjwlloyd#
:)
cjwlloyd#
Thank you!
mrazomor2 replies#
In my case, it was the integration testing framework built for a large Python service.

This was ~10y ago, so my memory might not serve me well. A bit of context:
- proprietary service, written in Python, maaany KLOC,
- hundreds of engineers worked on it,
- before this framework, writing the integration tests was difficult -- you had a base framework, but the tests had no structure, everyone rolled out their own complicated way of wiring things -- very convoluted and flaky.
The new integration tests framework was build by a recently joined senior engineer. TBF, it's wrong to say that it's was a framework, if you think in the xUnit sense. This guy built a set of business components that you could connect & combine in a sound way to build your integration test. Doesn't sound like much, but it significantly simplified writing integration tests (it still had rough edges, but it was 10x improvement). It's rare to see the chaos being tamed in such elegant way.
What this guy did:
- built on top of the existing integration tests framework (didn't rollout something from zero),
- defined a clear semantic for the test components,
- built the initial set of the test components,
- held a strong ownership over the code -- through the code review he ensured that the new components follow semantics, and that each test component is covered by its own test (yep, tests for the test doubles, you don't see that very often).
Did it work well longterm? Unfortunately, no. He stayed relatively short (<2y). His framework deteriorated under the new ownership.
Travis, if you are reading this and you recognized yourself, thank you for your work!

MathMonkeyMan2 replies#
I wonder if this is a tragedy of "the org wasn't ready for his solution" or more of a "if I were to go back now, I'd notice it wasn't so good."
bornfreddy1 reply#
Why only those two options? It could be just "the company had other priorities and developers, while they appreciated Travis's work, didn't find it worthwhile to carry the torch themselves". Having a great testing framework is just one of the things that need devs' attention.
MathMonkeyMan#
Fair point, it's a false dichotomy; though your example is close to "the org wasn't ready for it," which is itself vague.

Maybe the issue is that it easily comes apart without a dedicated censor, so to speak, and nobody wanted to have that role.

f1shy2 replies#
Without knowing anything, and before reading this comment, I had the feeling of nr. 2. Strong feeling. I think the reason is „many klocs of Python“. I have developed alergy to big Python programs. I like python for small things, probably wrapping some C code.
bboygravity4 replies#
Why would KLOC in Python be worse than in any other language?

Continue this thread — 4 replies

__rito__#
What languages do you personally prefer for many KLOCs of code?

Continue this thread — 1 more reply

Load more comments