View Complete Post
In this article we explain just how simple it can be to build a WPF application the right way using the MVVM Pattern.
MSDN Magazine February 2009
Service-oriented architecture is a great framework when you need to perform distributed computing tasks over the Internet. But when you want to perform processing inside your local network, a different solution may provide a better fit. That solution, based on the Command pattern, uses Windows services and Microsoft Message Queuing to implement a queued system that meets your needs better than a service-oriented solution. This article explains how to build it.
MSDN Magazine September 2004
MSDN Magazine December 2003
I am working on an application which contains code in lot of places where certain objects are created based on certain condition. The code is something like the following:
if(affectedObject == "Customer")
Customer c = new Customer();
else if(affectedObject == "Salesman")
SalesMan s = new SalesMan();
// Do some processing.
// Do another processing.
I have gone through design patterns once but I am not able to figure out how I can use a pattern to replace my code.
Can any one please help me with this? Any practical code sample would be of great help (code without refactoring and refactored code) so that I can understand it better.
Thanks in advance.
I am creating an authentication service. This service has one of the methods to validate username and password and return a status based on it.
The validation method has bunch of things to check before it can say user is valid. This method has a pseudo code similar to this:
If UserName and Password is correct
If User Account is Locked (due to invalid attempts)
If User Account Lockout Period has expired
Log user login status to history table
return User Logged In
return User Account Locked
Insert invalid attempt to login history table
if user has exceeded maximum invalid attemtpts
Lock the user account
return invalid user
How to tell which Design Pattern used in an application by looking at the code?
Which Design Pattern is best suited for Web applications or MVC?
Requirement : My development is brokene down into Component 1, Component 2 and so on... the output of component 1 goes as input to component 2 and so on...
Questions: Whats the design pattern that might suit my requirement.