Design Pattern in action
since php5 started and all programmers put them eyes on OOP
Object Oriented programming started to show programmers the best ways to develop, Create and design their Software…
some programmers believe that no programming language without OOP so , they was put the php as scripting language tools
Since the introduction of php5 we see the one of the most famous programming language started
but What is the relation between this words and Design pattern …
if you were using php as scripting language and don’t have information about oop you need to search and learn what OOP is or you have another solution that you wait me to started my posts in php
now we need to know what about design pattern and what it is
Programmer in oop system find problems with Classes and objects such as
the one instance of a class is required or Controlled access to a single object is necessary
so you must have an way to do that
Design patter have a solutions:
Design pattern is the best way to solve OOP issue i think you must read about it in java or C++ to understanding it well so, early i read cheetcheet book which talking about Design pattern and i will get some quote form it and if we need to explaing i will
- Creational Patterns: Used to construct objects such that they can be decoupled from their implementing system
1- Abstract Factory 2- Builder 3-Factory Method 4- Prototype 5- Singleton - Structural Patterns: Used to form large object structures between many disparate objects
1- adapter 2- bridge 3- Composite 4- Decorator 5- Proxy 6- Flyweight - Behavioral Patterns: Used to manage algorithms, relationships, and responsibilities between objects
1- Chain of Responsibility 2-Command 3-Interpreter 4-Iterator 5-Mediator 6-Memento 7-Observer
8-State 9- strategy 10-Template Method 11-visitors
All this pattern you can use if you need the pattern which issue is related with it so you must know
In software engineering, a design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations. Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved. Algorithms are not thought of as design patterns, since they solve computational problems rather than design problems.
you can downloading This cheetcheet from
read more about this topic:
http://en.wikipedia.org/wiki/Design_pattern_(computer_science)
with my best wishes
Filed under: Abstract programming | 1 Comment
like programmers do
This is my first blog in the blogging world,
Filed under: Uncategorized | Leave a Comment