DCSIMG

 Subscribe in a reader

Design Patterns - Guy kolbis

Browse by Tags

All Tags » Design Patterns (RSS)
Real World Example I had to create an object that represents a house. The house got windows, doors, kitchen and etc. Each house object can vary and use different type of interior. Beside that there are several house types; there is a Vila, Duplex and etc. My problem is how to create that object? Builder As mentioned before, I had to "create" a house, thus the Builder design pattern falls into the Creational design pattern category. Like the Factory design pattern, it abstracts the instantiation...
נשלח על ידי kolbis
Real World Example I will start with a real world example. Let's say that you are developing an application that consists of several roles, for example Administrator, Visitor and Power User. Each role has its own set of permissions that allows it to perform deferent operations in the application. For example the Administrator can navigate to the admin page while other roles cannot. You have to create each role with the specified set of operations that it allowed to perform. Template Method Here...
נשלח על ידי kolbis
This is the first post I intend on writing in regard to design patterns. In each post I will write about a specific pattern, I will give a sample real world code to follow it and the "Why - When" to use it. But first thing is first. Lets first understand what are those design patterns are. Here is a definition I got from the web: "Design patterns are recurring solutions to software design problems you find again and again in real-world application development" There is a saying...
נשלח על ידי kolbis