Questions tagged [separation-of-concerns]
Separation of concerns is a design principle.
145 questions
10 votes
11 answers
4k views
Difficulty understanding benefit of Separation of Concerns
One of the motivations for separation of concerns is so a change in one place does not affect the other. I am going to make an argument with my limited understanding. Here is a scenario where I fail ...
4 votes
4 answers
1k views
How to do "Separation of concerns"
I understood(edit: I assume) the importance of seperation of concerns and benifits in an application, But struggling to identify what are considered to be a concern (developer, feature, consumer or ...
1 vote
4 answers
409 views
Is there any intent behind SRP other than SoC
Edit based on responses so far I am starting with an edit so as to save future contributors from going down the same path others have. I am only interested in contributions that stick to the exact ...
2 votes
3 answers
169 views
Where to specify UI views in a hierarchy of model objects?
In a Flutter app I'm developing, I have a class hierarchy of model objects of a certain base class. To take a typical example, the abstract base class could be Vehicle. Then I have a (pretty much) ...
0 votes
2 answers
1k views
How to separate UI and business logic when they are intertwined by design
I am refactoring a legacy codebase of an Angular SPA. The central entity of the app is the chat room, and there is a plethora of ways on how to enter a chat from different views all across the app. ...
2 votes
3 answers
332 views
how to leverage overloading while keeping business logic out of models
I am running into a conflict between two best practice principles- overloading should be used instead of long chained if/else statements models should not contain business logic I am working on a ...
0 votes
1 answer
538 views
Blazor Application separation of concerns
I am building a cross-platform application and have planned to use Blazor. I have made similar applications in the past but using ASP.Net Core for the back-end and Angular for the front-end. I always ...
2 votes
3 answers
1k views
How do you achieve encapsulation while "separating view and business logic"?
I've been trying to get a better understanding of OOP (I'm not the biggest fan of it, but I still want to understand it). One of the core principles of OOP is encapsulation - you're supposed to ...