Respectfully, Isn't that like saying a singleton is just a class that
manages a factory? =)

A design pattern is a repeatable solution to a commonly occurring problem in
software development. So if all a Flair does is manage decorators and 2
people know that's what it does, then that sounds like a design pattern to
me (unless there's a ECMA committee for that now a days). =)

Anyhow I tend not to use decorators (matter of personal taste). I prefer to
not Frankenstein an object at runtime and rather use mixins (composition +
interfaces).


-erik

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
| BLITZ
Sent: Monday, January 29, 2007 11:35 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flair Pattern?

So I was dead on about the Office Space reference.  :)

The class manages assigning Decorators.  It isn't a design pattern.
It's a class that manages the Decorator design pattern on multiple
objects.

I'm not sure where the idea that the Decorator pattern must be used on
all or none of the objects in an application, or that Decorated objects
cannot be undecorated.

There are no references to the Flair design pattern anywhere else
because it doesn't exist anywhere except in the ego of Brendan Hall.
It's not a design pattern, it's a class that uses another design
pattern, and poorly, too, judging by the code example.

If you want to learn more about Design Patterns, there are quite a few
great books out there on the subject written by people more learned and
experienced than Brendan Hall.  Like people with PhD's in Computer
Science.  From the de facto bible Design Patterns by the Gang of Four to
many others.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to