by jimis · 5y ago · 0 comments
But what's wrong with Twitter?
I'M GLAD YOU ASKED. There are two aspects of Twitter that just bug me as an engineer:
Ruby on Rails - Using rails to prototype a system is fine — scaling up to a million hits a day with it is just a bad idea. As the service grew, I'm sure it cost them a lot more time than it saved.
140 characters is not enough - I routinely write sentences longer than 140 characters, so I can't even begin to imagine making a point in such a small space. This textual confinement has led to the rise of URL shorteners, which are breaking the internet.
Blërg solves these problems by applying absurd reactionary engineering. Blërg's database backend is a custom C program that handles requests over HTTP and stores data in a very small and efficient indexed log-structured database. The frontend is done entirely in client-side Javascript. A single post can be up to 65535 bytes in length.
Which is not to say that I believe writing your service in C is the solution to all your problems. Clearly, this approach has just as many hairy problems that will bite you in the ass sooner or later. The best way, as with most things, lies somewhere in the middle of high-level abstraction and ZOMGHARDCORE OPTIMIZATION.
Or more politely described in the documentation page: Blërg is a minimalistic tagged text document database engine that also pretends to be a microblogging system. It is designed to efficiently store small (< 64K) pieces of text in a way that they can be quickly retrieved by record number or by querying for tags embedded in the text. Its native interface is HTTP — Blërg comes as either a standalone HTTP server, or a CGI. Blërg is written in pure C.> Curious? Click this unbelievably obnoxious button!
> Blërg is a microblogging platform. Or maybe a miniblogging platform. Blërg is not sure.
> Blërg's author finds it entertaining to anthropomorphize Blërg in the third person.
This website, the documentation, the text from the comment you replied to, everything is just clearly humour.
My take on that is slightly different. Choosing a fairly esoteric language as a company reduces the amount of effort it takes to review applicants. Right now, if you post a job for python, you'll get thousands of applicants. You'll then need to filter them and a vast majority won't be able to code the most basic things.
Post a job advert for erlang, you'll get significantly less applicants because there are fewer erlang programmers. Also, no one learns erlang to “get a job in tech”, they learn erlang because they like it as language. In my experience, this means that on average erlang programmers will be better on average to python programmers.
I'm going to assume that if someone from Goldman Sachs leaves, they will try to find another erlang job, because that's what they enjoy programming in.
In general I would agree with you, but does that work everywhere? I could see how that works in some tech focused locations like Silicon Valley. But if I would try to hire Erlang developers around here I would not find a single one. Unless of course I would hire remotely and try to compete with SV company salaries.
I'm glad to see that Python is in that category. When I first abandoned Java in it's favor, I was given funny looks about why I'd stick with such an niche language..
Have you done this? I wish we received thousands of applications for each python role we post
The sad thing is that way too many developers never learn that programming language and framework is not the biggest bottleneck.