The separation-of-concerns tag has no wiki summary.
1
vote
1answer
49 views
Extracting domain logic from the forms to which they are coupled?
Many applications do nothing to separate the interface from domain logic. I’ve been programming for a couple decades and have worked at more than a dozen shops and none of them have taken any measure ...
3
votes
3answers
310 views
Separation of concerns: Whose concern is this?
My senior reviewer colleague wants me to do the following.
We have (on iOS, iPhone) a hierarchy of views in one of our screens. There is a simple rectangle that represents a Business card of a person ...
6
votes
2answers
289 views
Why is using named routes for generating outbound URLs a violation of Separation of Concerns?
What is separation of concerns?
In computer science, separation of concerns (SoC) is the process of
breaking a computer program into distinct features that overlap in
functionality as little ...
3
votes
1answer
139 views
Better OOP in Javascript - multiple methods or methods with options?
Let's say I have an object like this:
function Foo() {
this.parser = new DataParser();
};
Within Foo I have a method that does something like this:
Foo.prototype.getResponse = function(message, ...
2
votes
4answers
308 views
Why Have People Started Deeming it Necessary to Separate JS hooks from CSS hooks in HTML?
Edit: Point of clarificatioon, IDs and classes as separate hooks is just one form of the applied idea in question which is to never use the same hooks for CSS as you do in JS. I've also seen people ...
12
votes
5answers
296 views
Storing in-text metadata in a discrete data structure
I am developing an application which will need to store inline, intext metadata. What I mean by that is the following: let's say we have a long text, and we want to store some metadata connected with ...
2
votes
1answer
227 views
What kind of abstraction/SoC should I use here?
I am starting a new project, and I want to follow the separation of concerns pattern, and I have been reading on the topic, and now I am in doubt of how I should go about this.
Here is how I ...
0
votes
1answer
91 views
How can I cleanly separate first open tutorial code from my regular display code under OOP?
I have a MVC architecture, and I have the basic views completed. I now need to add the first user tutorial mode into the project. I don't want to add checks for first user state in all the views that ...
0
votes
1answer
67 views
terminology for upward devolution from modules to framework
Is there a word for the problem of a framework becoming married to the software modules it supports, for example adding methods to a base class that may apply only to certain subclasses or use cases? ...
5
votes
1answer
191 views
Is the separation of program logic and presentation layer going too far?
In a Drupal programming guide, I noticed this sentence:
The theme hook receives the total number of votes and the number of votes for just that item, but the template wants to display a ...
4
votes
1answer
162 views
Why is CSS3 doing animations?
Like what the title says, why are there animations in CSS3?
With basis from the "rule" of separation of concerns, HTML is the content, CSS is the style, and JavaScript is the interactive component. ...
0
votes
2answers
291 views
Access functions from user control without events?
On some generic functions, it seems that accessing a function on mainform directly from the usercontrol is easier than raising an event. For example: A function on main form that displays one desired ...
17
votes
3answers
977 views
Do stored procedures violate three-tier separation?
Some colleagues have told me that having business logic in stored procedures in the database violates the three-tier separation, since the database belongs to the data layer whereas stored procedures ...
2
votes
1answer
84 views
Refactoring code to separate concerns [closed]
While programming an object that represent a GUI, the class is a mix of code of following sections:
Overrides of super GUI, for behavior customization
Implementations of interface contracts, to ...
34
votes
11answers
2k views
Is there ever a reason to do all an object's work in a constructor?
Let me preface this by saying this is not my code nor my coworkers' code. Years ago when our company was smaller, we had some projects we needed done that we did not have the capacity for, so they ...
1
vote
1answer
118 views
Add complex customization to form or create two forms?
I'm working in a WPF application that both imports and exports delimited text files. At both ends, there is a UserControl which encapsulates some logic about delimiter configuration. It has some ...
3
votes
2answers
121 views
Separation of concerns and security
The system I am developing is designed to have multiple organizations, with users and roles for each organization. Some organizations can interact, some can not, and generally organizations are not ...