Tagged Questions
2
votes
2answers
129 views
Should I split out synchronization from my class and what's it called?
When thinking about testability and modular code, I recently thought about whether I should split out the synchronization part of a class from the actual behavior part.
By example:
The app "needs" ...
18
votes
5answers
1k views
LSP vs OCP / Liskov Substitution VS Open Close
I am trying to understand the SOLID principles of OOP and I've come to the conclusion that LSP and OCP have some similarities (if not to say more).
the open/closed principle states "software ...
2
votes
1answer
193 views
Microkernel architectural pattern and applicability for business applications
We are in the business of building customizable web applications. We have the core team that provides what we call as the core platform (provides services like security, billing etc.) on top of which ...
2
votes
1answer
87 views
Separating validation from persistence in models?
Models in an MVC application gets kind of hard to test when validation of data and persistence of data is baked together in the model. I would like to test those separately to prevent doing ...
10
votes
2answers
3k views
Relationship between Repository and Unit of Work
I am going to implement a repository, and I would like to use the UOW pattern since the consumer of the repository could do several operations, and I want to commit them at once.
After read several ...
3
votes
6answers
431 views
What do you call this pattern/technique?
Lately I've used this technique a few times, and I'm trying to figure out if it has a name, if it's one of the patterns, etc.
In complicated situations where I might normally have a number of giant ...
18
votes
12answers
2k views
What design patterns are the worst or most narrowly defined?
For every programming project, Managers with past programming experience try to shine when they recommend some design patterns for your project. I like design patterns when they make sense or if you ...