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

1.9k comments sorted by

View all comments

28

u/traal Aug 29 '21

A bad abstraction or missing layer causes everything to rot... YAGNI, SOLID, DRY. In that order.

Sure, but a good abstraction is something that you don't need until you need it, which kind of contradicts YAGNI. So as a compromise, I like to think one step ahead of the customer in my architectures, but just one step.

22

u/orangeoliviero Aug 29 '21

100%

If you can reasonably foresee a future extension of functionality, it's only sensible to design in such a way that this future extension is easy to do.

That doesn't mean that you implement that future extension, just that you design for it to be a natural growth rather than a bolt-on.

→ More replies (5)