Posts Tagged designpatterns
Posted by thinsoldier in Web Development on February 5, 2010
This is a comment I had about an article on the Decorator pattern
I think some people may overlook the importance/usefulness of the decorator pattern since all you’re doing in the examples could be accomplished by just concatenating P and /P around the getData() wherever it is you were going to display it.
I find the decorator pattern is best for when you have a lot of parts to the data that need a lot of manipulation of their values and a lot of html but not so much html that it warrants a full page/template/view.
For example Read the rest of this entry »