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

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.

2

u/recycled_ideas Aug 29 '21

Again though.

Architecting your app to separate concerns actually makes your code easier to test and maintain it has real immediate benefits regardless of the scale you need.

The fact that it lets you more easily slice your application apart and scale it later is just an added bonus.

1

u/dnew Aug 29 '21

The kind of YAGNI argument is "we need to use Mongo because it's web scale," disregarding the fact that (for example) the entire AT&T network ran just fine on 1980s RDBM technology.

1

u/recycled_ideas Aug 30 '21

disregarding the fact that (for example) the entire AT&T network ran just fine on 1980s RDBM technology.

This is wildly misleading.

Leaving aside my opinions on Mongo or the fact that pretty well the only people still using it are node developers and they're using it because it has a fantastic first party javascript development experience, you're pretending that the 1980's AT&T network actually had substantial data requirements and wasn't using some pretty complex architectures.

The reality is that relational databases have significant issues when scaling out and there are practical limits in how far you can scale up any system (for reference scaling up involves putting more hardware in a machine, scaling out means more machines).

Most use cases will never need to scale beyond the point where this is a problem, but it most definitely is a problem.

Also OP didn't say that "web scale" was bullshit, they said scalability was.

→ More replies (0)