Design patterns. What are? Where we use? Why is good to use?

Design patterns

Design patterns gained popularity in computer science after release of the book Design Patterns: Elements of Reusable Object-Oriented Software was published in 1994 by the so-called "Gang of Four", which is frequently abbreviated as "GOF".

The book still can be found for sale in nowadays and in that book was presented first collection of 23 design patterns.


What are?

So In software engineering, a design pattern is a general reusable solution to a common problem that occur in developing process within a given context in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description, a guideline or template for how to solve a problem that can be used in many different situations.


Where we use?

Answer is simple, We should use everywhere where in our application exist a common problem, that can be solved by applying a design pattern. Basicly design pattern prevent reinventing the wheel.


Why is good to use?

First of all design patterns in most cases are speed up the development process by providing tested and proven development paradigms. Also are improving code readability for coders and architects who are familiar with the patterns. With some design patterns we achive more flexibility, by introducing additional levels of indirection and much more. But on the other side design, patterns can reduce performance and application lightweight.

Add comment