A design pattern is a general reusable solution to a commonly occurring problem in software design.
3
votes
5answers
313 views
What can go wrong if Liskov substitution principle is not followed while coding?
I was following this highly voted question on possible violation of Liskov Substitution principle . I know what Liskov Substitution principle is but what is still not clear in my mind is what might ...
5
votes
2answers
131 views
How should I implement the repository pattern for complex object models?
Our data model has almost 200 classes that can be separated out into about a dozen functional areas. It would have been nice to use domains, but the separation isn't that clean and we can't change it. ...
-2
votes
1answer
209 views
Which pattern is best for large project [closed]
I have several years of software development experience, but I am not a keen and adroit programmer, to perform better I need helping hands. Recently I engaged in an ERP project. For this project ...
3
votes
0answers
106 views
Best Creational Pattern for loggers in a multi-threaded system?
This is a follow up question on my past questions :
Concurrency pattern of logger in multithreaded application
As suggested by others, I am putting this question separately.
As the learning from ...
11
votes
2answers
252 views
Looking for some OO design advice
I'm developing an app that will be used to open and close valves in an industrial environment, and was thinking of something simple like this:-
public static void ValveController
{
public static ...
1
vote
1answer
79 views
How can I bind an interface to a class decided by an xml or database configuration at the launch of the application?
I'm re-working on the design of an existing application which is build using WebForms. Currently the plan is to work it into a MVP pattern application while using Ninject as the IoC container.
The ...
6
votes
2answers
166 views
Help to understand the abstract factory pattern
I'm learning the 23 design patterns of the GoF.
I think I've found a way to understand and simplify how the Abstract Factory works but I would like to know if this is a correct assumption or if I am ...
2
votes
4answers
158 views
Would Using a PHP Framework Be Beneficial in My Context?
I've just started work at a small start-up company who mainly uses PHP to develop their front-end apps. I had no prior PHP experience before joining, and this has led to my apps becoming large pieces ...
4
votes
4answers
219 views
What is the correct pattern to use in this case?
I'm sure this scenario has arisen before, and I want to know what experience has taught to be the best solution.
I have a number of classes that are all of a kind. Say all the objects are "Content". ...
3
votes
1answer
115 views
How to manage long running background threads and report progress with DDD
Title says most of it. I have found surprising little information about this. I have a long running operation of which the user wants to see the progress (as in, item x of y processed). I also need to ...
4
votes
2answers
163 views
Concurrency pattern of logger in multithreaded application
The context:
We are working on a multi-threaded (Linux-C) application that follows a pipeline model.
Each module has a private thread and encapsulated objects which do processing of data; and each ...
-2
votes
0answers
46 views
What Technology Should I Choose, Coding Pattern and Approach [closed]
I've to write a small ftp manager software with some specific possibilities and functions. It'll have limited functionality of filezilla and cute ftp. Starting the work and developing will be ...
-1
votes
0answers
51 views
Guidelines or Design pattern to develop configurable software [closed]
I want to develop an application which would have it's own framework, using which developer can implement functionality very easily. Developer shouldn't have to code for each and every page or report. ...
2
votes
1answer
66 views
How can I design my classes to include calendar events stored in a database?
I'm developing a web calendar in php (using Symfony2) inspired by iCal for a project of mine.
At this moment, I have two classes: a class "Calendar" and a class "CalendarCell".
Here you are the two ...
2
votes
1answer
35 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 ...