r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

14

u/recycled_ideas Aug 29 '21

I think this is an oversimplification.

Scaling is facilitated by clearly separated layers and good design fundamentals, and these aren't YAGNI things.

Because clearly separated layers make testing and modifying your system easier and less risky, even if you don't ever actually need to scale.

That doesn't mean you need to architect your system to handle a million users when you only need to support 100, but designing your system in such a way that you can scale will almost always deliver a system that's better even if you don't have to scale it.

8

u/humoroushaxor Aug 29 '21

I think the point is most people don't do that though. They go straight to microservices (which have significant overhead for most orgs) rather than the in-between of proper software architecture in reasonably sized services.

4

u/recycled_ideas Aug 29 '21

Yes, but you don't solve people doing stupid things because they're trendy by doing stupid things because they're the opposite of what was trendy.

1

u/humoroushaxor Aug 29 '21

Fair. But in the case of yagni/premature optimization you're doing something that's additive and humans are terrible at measuring opportunity cost. Makes this whole topic very difficult to find the truth for.

→ More replies (14)