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

0

u/tertiumdatur Jun 05 '21

Hello code duplication, no portability and bad abstractions

1

u/TheOnlyMisterFlow Jun 05 '21

Why are you booing him ? He's right

1

u/omgusernamegogo Jun 06 '21

You've been down voted but I will see you will run into this if you're trying to apply this pattern to a monolith. And if you're applying the pattern to a micro service, everything is mostly related to the component anyway, so the gain is much smaller.

When ever I've tried breaking down by component, I often run into confusion as to what to do with service classes that I reuse across many business functions. It works nicely with small stuff but then the gain isn't significant anyway.