Clarification on the Strategy Pattern
I’ve just been reading through some basic design patterns,
would a composite design pattern be useful for group membership?
I’m trying to think about the best way to handle group memberships on a website. People sign up and select checkboxes in a list of interests. Every week we send out interest-themed emails to those members that indicated that interest.
Software patterns for frameworks [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago. I am currently doing some research about software […]
What is a useful pattern to maintaining an object state in a one to many relationship?
I am looking for a design for my application, here are the players(classes) involved.
What are the caveats of the event system built on Messenger rather than on classic .NET events?
MVVM Light and PRISM offer messenger to implement event system.
Is there an antipattern to describe this method of coding? [closed]
Closed 10 years ago.
Central Exception Handler
Recently I’ve been thinking about a general ExceptionHandler, that I could initialize once in my app context and inject it everywhere. The idea that it will have quite simple interface with just public void handle(Exception ex)
, and then according to exception type it should decide what to do, maybe just log it, or show an alert message to the user, or maybe kill the whole app.
In MVC , DAO should be called from Controller or Model
I have seen various arguments against the DAO being called from the Controller class directly and also the DAO from the Model class.Infact I personally feel that if we are following the MVC pattern , the controller should not coupled with the DAO , but the Model class should invoke the DAO from within and controller should invoke the model class.Why because , we can decouple the model class apart from a webapplication and expose the functionalities for various ways like for a REST service to use our model class.
Question on refactoring and code design
Suppose, I have a class with a constant static final field. Then I want in certain situations that field to be different. It still can be final, because it should be initialized in constructor. My question is, what strategy I should use:
.NET – refactoring code
I have inherited and now further develop a large application consisting of an ASP.NET application, VB6 and VB.NET application.