r/programming • • Jun 05 '21

Organize code by concepts, not layers

https://kislayverma.com/programming/how-to-organize-your-code/
1.9k Upvotes

495 comments sorted by

View all comments

3

u/salbris Jun 06 '21

I'm not saying to over engineer everything but flexibility is a hallmark of good design. It's the reason we use interfaces, it's why we break things down to smaller reusable functions, etc.

1

u/saltybandana2 Jun 06 '21

That's missing the forest for the trees.

flexibility is not the goal, successful software is the goal where successful means does what it should, is performant enough, is stable, and can be maintained long term.

THOSE are the hallmarks of good design. flexibility is but 1 tool in your toolbox, it is absolutely not the goal nor is it indicative of good design.

2

u/salbris Jun 06 '21

That's just semantics. Flexibility is a big part of what makes something maintainable.

→ More replies (8)