Deco Pattern

Simple project that shows how deco design pattern works.



Design Pattern?

A design pattern is a general reusable solution to a commonly occurring problem within a given context in software design. A design pattern is not a finished design that can be transformed directly into source or machine code. It is a description or template for how to solve a problem that can be used in many different situations. Patterns are formalized best practices that the programmer can use to solve common problems when designing an application or system.Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved. Patterns that imply object-orientation or more generally mutable state, are not as applicable in functional programming languages.
~Wikipedia

Design patterns help us optimize our codes.
Software applications with good designs are:
  • easy to maintain
  • easy to debug
  • easy to test
  • etc,.


Deco Pattern o Decorator Pattern?

The decorator pattern (also known as Wrapper, an alternative naming shared with the Adapter pattern) is a design pattern that allows behavior to be added to an individual object, either statically or dynamically, without affecting the behavior of other objects from the same class.
~Wikipedia













PS: Sorry for the solution name, it should be decorDesignPattern.. ^^V

Last edited May 9, 2014 at 7:43 AM by crisma_victoria, version 6