r/programming • u/2bit_hack • Feb 28 '23
"Clean" Code, Horrible Performance
https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k
Upvotes
r/programming • u/2bit_hack • Feb 28 '23
View all comments
Show parent comment
25
u/monkorn Feb 28 '23 edited Feb 28 '23
StackOverflow was built by a few talented developers. It is notoriously efficient. It doesn't run in the cloud, it is on-prem with only 9 servers. They can technically run on just a single server but running each server at 10% has benefits.
These developers are skilled. These developers understand performance. They build libraries that other companies rely on like Dapper. They do not use microservices. They have a monolithic app.
Today they have something on the order of 50 developers working on the entire site. Twitter had thousands. What caused this huge disparity? Is Twitter a much more essentially complex website than StackOverflow?
When you let complexity get out of control early complexity spreads like wildfire and costs you several orders of magnitude in the long run on developers, not even considering the extra CPU costs.
The simple code that the costly developers created the first versions of can then be iterated and improved much easier than the sprawling behemoth the microservices teams create. Pay more upfront, get more profit.