26 points · by afco · 9y ago · 19 comments
And though I appreciated it, I'm left wondering whether they really needed to invest all that money and effort? Or were their engineers unconsciously padding their resumes on someone else's dime? After all its difficult to gain such experience or knowledge otherwise.
Maybe in Twitter's case it made sense to exert that much control over their service. Especially at the time they were founded.
But in today's "cloud first" world, it doesn't seem to make sense for any company to roll their own infrastructure [1]. To me it feels like they may have over-engineered their solution. It would be good to know the business motives behind the decision and for the continued use.
I'm afraid as engineers we're biased to "roll our own" solutions, if not for the experience then out of a hubristic thought that what we make will be better than whats existing.
Do you find engineers and tech companies in general (especially in the Bay Area) tend toward this?
Should we stop it? and if so, how?
[1] I don't mean to focus exclusively on infrastructure or Twitter. I see the same with Uber or any number of tech companies who feel they need to roll their own services like the Big Four.
Then there are the developers that see the code and job more as a tool to build something and enjoy the process of completing a project more then the technologies used to do it. They tend to build video games or fun apps.
Both obviously like technology, and have to dabble in both sides of this simplified equation, but they favor one over the other.
I find that the engineers that like the science, engineering, and tech side of programming are the people predisposed to over engineering. On the other hand I find the people who enjoy finishing projects predisposed to not making something extensible enough.
I really think there is a good mix of both of these types of programmers in every dev environment of any size.
This can depend highly on the problem space; as a game developer, I can consider "number of seconds in a day" to be a fixed value that will never change never. In other fields, that assumption could get your fired.
That's where you're wrong, kiddo.
I'm firmly in the second camp. I'm intellectually interested in the things listed for the former, but for thought process only and not cranking out code for it.
For me, the nuts and bolts is work, while brainstorming and refining the product is the fun stuff.
I don't work as a software engineer, but I worry if I did it would mean more of the former and less of the latter.
If you have tighter timelines and a more well defined technical problem say a new social media app then I would always pick the latter.
However, if you can hire two developers, and they both are equally intelligent I would pick one of each to build a team to complete the examples above. When you have two people that respect each other and fall on each side of this scale they can be an incredibly effective team. For instance the former will push the latter to be better at writing code. I see this play out a lot in code reviews. The latter generally will finish more tickets or features than the former, and it will help the former not get caught up in technical details because they don't want to put an unfair burden on their counterpart. This makes the former better at efficiently building programs.
They can really balance each other out well and what you can get out of it is a project that finishes on time with a solid foundation.
That said I have seen this backfire too, but this is mostly when they don't like or respect each other. What can happen here is the former will say the latter is a terrible programmer, because their code is garbage and is not extensible or naive. Then the latter comes in and says the former doesn't finish anything they get caught up in the details and their production is horrible.... so hiring open minded intelligent human beings is important.
Personally I favor finishing projects because I like building things, and I have built a career for myself that I am happy with. My previous comments are once again over simplified, and they were really just a break down of engineers that are predisposed to over engineering. Employers actually don't force you to favor one side or the other in my experience. They want to play to your strengths and what you want out of your career. So if you are a person who likes finishing projects and you are good at it then they will quickly put you in a role where you lead business projects from the engineering perspective. If you favor the science, tech, and engineering side they will put you in a architect or platform role that pushes the underlying technology choices for the business moving forward.
Find a good company and go for it if you like programming and building things. I did it and I really enjoy what I do.
Says someone who hasn't paid AWS a million a month before.
You roll your own infrastructure not to pad your resume, but because the capex spend provides you with a lower opex, and presumably you have capital to spend.
Cloud charges a premium for elasticity. Not everyone needs elasticity. Capacity planning is a skill, you can get better at it over time, and other technologies (VMs, containers, whatever) can help bin pack for better operating cost than you'll ever see in the cloud.
"Important" problems being the ones with the most impact on the users and the highest ROI for developer time.
Often a kludge (that may stand for years) is better that finding the "real" and/or "best" solution to a problem. In short - real artists ship.
What's not clear is how much of it is pure RDD out of selfishness vs how much is BDD (Blog Driven Development) where a new technique or technology is adopted because someone influential wrote a blog post about it vs how much is simply the someone else with talent has tastes different than my own and while I've have built it in technology X, they chose to build it in hot new technology Y, but all I can be sure of is that I could have made it work in X not that Y is a poor choice necessarily.
As I've gotten more experienced, I'm much more tolerant of differences, provided that the company mechanisms are robust enough to keep everyone aligned with the customer outcome. Undirected wandering is bad; meaningless differences in tech choices are null.
Simple choice of languages. Really solid core libraries. Emphasis on speed and simplicity for the most part.
The simplicity of their search page is a prime example of the development model they respect.
Really what you need are a few talented analysts, and tools like R and Shiny to quickly whip up analysis and dashboards.
I'd like to say more about how we can recognize and manage this bias, but first I want to finish my general purpose AI-driven comment reply engine. I just need to finish migrating the front-end from Angular 2 to React and the backend from Ruby to Go, and then it should be pretty streamlined.
It's possible you're just incorrect. Hard to tell from the outside.
And it can very much make sense to roll your own services, for a variety of reasons from service guarantees to cost.
I also recognize that the Big Four have scale problems that are larger than the ones my teams have faced and tackled and so Google may very well need BigTable, Facebook may need HipHop, etc.
On the other side, sometimes people spend too much time trying to integrate certain frameworks into a codebase when a much simpler design will do. That, or they will embrace a lot of one-off technologies, and wind up with potentially more environment diversity than is probably reasonable. Oh, that process runs in AWS, this other one is internal, and this one over here is on Azure... since we have azure credits to burn. Not that any given cloud is bad, but trying to be too diverse in a smaller team environment will lead to fragmentation and a lot of split knowledge that doesn't replicate easily.
It's worth noting that I've been guilty of a lot of the things I mention. It comes from experience. Sometimes much simpler is so much better.
Personally I want to have a backend and then a SPA for each app. On one hand that sounds like overengineering, you could just serve everything from the backend. On the other hand, separation of the API from the services could actually be a simplification.
1. An individual software developer might bias towards feature delivery, performance optimizations, extension hooks, tests and static analysis, or some mix of those. A more experienced developer, all things equal, is more likely to strike an appropriate balance for the problem they're working on. A wrong balance might be overengineered because it took too long for the results. A wrong balance that is underengineered, on the other hand, might fail to deliver altogether by making critical-failure assumptions that go untested until it's too late.
2. A team of developers holds all the same biases as the individuals, only now they have to collaborate. This produces a team-internal political structure that enacts some compromise depending on management's goals. The compromise may not be good engineering, and it is likely to overdo things in at least some aspect. Managers often seek solutions that tame development and allow it to proceed at some predictable rate of change, or to report a metric of progress with person-hour linear scaling properties.
3. Multiple teams of developers across a larger organization also have to engage in political compromise, and at this scale, they are beholden to build and share substantial infrastructure, because management tends to act competitively, and infrastructure projects are politically useful.
4. Across different organizations, shared formats and common data interchange is desirable, and the chiefs of each organization have to satisfy their internal political structure while simultaneously coming to an agreement with the relevant standards groups. This causes the standards to bias towards a kitchen-sink featureset.
These various factors all contribute to the "enterprise" mindset, and unless you have a visionary of the Steve Jobs type at the helm, who will happily come down from the heavens to throw lightning bolts at hapless managers and force them into compromise for the good of the company, it's more likely to appear as your org gets bigger: In the default case, nobody is incentivized to take a risk on simplification or bold, radical changes. Incremental accretion of code looks good for everyone, and allows sub-par developers to blend into the background. The middle management fights localized battles over headcount and budget, and flashy projects that covertly create large engineering dependencies give them political leverage. When a new standards proposal comes up, everyone rushes to get their fingers in it. So the systems that get built, in the end, tend to express everything while doing almost nothing. Every one of these companies has layers of crushed dreams sitting in their repository.
Because Twitter is funded at the assumed ambition level of "become Google" or "become Facebook" their organization was staffed up in anticipation of achieving that scale. That inherently creates the kind of conflicts resulting in enterprisey code. The code reflects the organization, and the organization is big, so the code is big.
At the other end of the scale, where individual developers do whatever they want as they think of it, without business interest, none of these scale concerns arise. The code can be direct and to the point. Where it has to solve larger problems, it necessarily leverages the open-source ecosystem, creating a "bottom-up" pull where the developer is more likely to submit to the restrictions of the ecosystem and in turn extend that ecosystem outwards, than to attempt a bold infrastructure project; as such, off-the-shelf options, including cloud deployments, become more and more attractive as your organization gets smaller, and for solo developers, they approach "no-brainer". But, being based on self-absorbed whims, the code is much less likely to be of value to anyone else - it doesn't answer to clients, or future maintainers, or possibly even the original developer. It's less likely to have coherent design or documentation, even if the developer aims for their best try at quality, because there isn't any real conversation around it, any probing of biases or testing against the real world. A solo coder is most likely to be guilty of coding up a fantasy, which can be good if they happen to be making a game, but is less viable for a lot of other lines of software.
So the best results tend to have a pattern of: Small, experienced teams - more eyes on the design, appropriate challenge and dialogue about process and features, but nobody getting lost in the crowd or submerged in political maneuvers. Projects with some business interest, but relatively lower pressure from the top, so that feature accretion and testing is guided by well-defined business needs, not deadline pressure, bells-and-whistles, or whimsy. Management that can define a healthy lifecycle for the software and allow it some time to mature, but also be deprecated and incrementally replaced as the surrounding software ecosystem changes.
When projects fall outside of those boundaries, bad software - of the over or under-engineered sort, or the non-valuable sort, or the under-maintained sort - tends to get made.