Tags » Design Pattern

Data Mapper Pattern

Prerequisites :  ORM’s , Active Record Pattern

This again is a kind of persistence pattern. But it differs from Active Record pattern. Generally when there is a very simple domain logic one tends to go with Active Record pattern. 413 more words

C#

Singleton - An Evil, Anti Pattern....

Singletons allow you to limit creation of your objects
This is true, but now you are mixing two different responsibilities into the same class, which is a violation of the Single Responsibility Principle. 317 more words

Anti Pattern

BoilerPlate code and Convention over configuration

Boiler Plate code:

A block of code that is used so many time with no change or little chance

Convention over configuration:

Design Pattern . Like follow configuration like convention. 14 more words

Design Pattern

Is MVC one of the GoF (Gang-of-Four) patterns?

MVC is not one of the GoF patterns. They are not at the same level. MVC is what is called an architectural pattern while GoF patterns are design patterns. 113 more words

Javatip

Proxy Design Pattern

Download the working example demo code in java from my GIT repository -https://github.com/premaseem/designPatterns/tree/4bb9beca7bab5b5e71d02b76e4f1ad48fce4aca6/ZipDownloadableProjects
Code example Description :
Doctors are busy and uses proxies / surrogates or say assistant doctors, unless they are not needed. 713 more words

Java

Template Method Design Pattern

Download the working example demo code in java from my GIT repository -https://github.com/premaseem/designPatterns/tree/4bb9beca7bab5b5e71d02b76e4f1ad48fce4aca6/ZipDownloadableProjects

Example Code Briefings : Template Method Fruit Juice extraction example defines a recipe (with exact steps and quantity) to prepare the drink which is kept in the extract class. 443 more words

Java

Composite Design Pattern

Download the working example demo code in java from my GIT repository -https://github.com/premaseem/designPatterns/tree/4bb9beca7bab5b5e71d02b76e4f1ad48fce4aca6/ZipDownloadableProjects

Intent:
Compose objects into tree structures to represent whole-part hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly. 461 more words

Java