Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-02-01 Thread Keith Salisbury
Funny enough, they are also less widely known as the "Four Gangsters" after a someone with limited English skills referred to them this way at a conference. Perhaps it was actually "English skillz" ;-) ___ Flashcoders@chattyfig.figleaf.com To change

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-31 Thread JOR
Holth, Daniel C. wrote: I have another book on my desk, Design Patterns by Gamma, Helm, Johnson and Vissides, that reads very much like a college text book - it has built in book marking ribbons, which is nice. Is this the one by the GoF? Yep, GoF stands for "Gang of Four", namely Gamma, Hel

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-31 Thread T. Michael Keesey
In addition the the books already mentioned, I highly recommend Refactoring by Martin Fowler and Refactoring to Patterns by Kerievsky (in that order). Together they show you how to adapt code you've already created to design patterns without breaking it in the process. The examples are in Java, wh

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-31 Thread Holth, Daniel C.
ng ribbons, which is nice. Is this the one by the GoF? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Wednesday, January 31, 2007 12:57 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) My 0.02:

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-31 Thread Keith Salisbury
If you feel like this: GoF makes me very sleepy - I find it very dry and the chapters very long winded. (Sorry GoF'rs) then: I would be interested to know if Head First Design Patterns follows the same process as Moock - "learn by doing". I can handle that, although I will keep delving in

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-31 Thread Steven Sacks | BLITZ
Yeah, the GoF book is definitely like reading a calculus textbook. It's dry and to the point and the examples are in Smalltalk and some C++, which means a lot of cross-referencing with google. The concepts they discuss and the examples they give are helpful to a point but code examples you can't

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-31 Thread Keith Salisbury
ey are both > structural patterns and define an interface for communicating between parent > and "child" components / classes. > > Best, > > -erik > > > > > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PR

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-31 Thread Glen Pike
ROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Tuesday, January 30, 2007 7:02 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) Been a while since I've posted here, a few years I think. I miss the geek tangents / debates

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
2007 7:02 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) > Been a while since I've posted here, a few years I think. I miss > the geek > tangents / debates. =) Good man! Seriously, the world affords precious few opportunities to truly geek ou

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread JOR
The Head First Design Patterns book rocks and I definitely recommend it to anyone wanting to learn about design patterns. I actually got a kick out of the clip art and humor but I'm kind of quirky that way I guess. The Java examples were trivial to port to ActionScript and a good exercise. Th

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread David Ham
Been a while since I've posted here, a few years I think. I miss the geek tangents / debates. =) Good man! Seriously, the world affords precious few opportunities to truly geek out on design patterns and such. Internet mailing lists excepted of course. I have the Head First Design Patter

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread JOR
s the geek tangents / debates. =) -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JOR Sent: Tuesday, January 30, 2007 3:55 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) A decorator object composites the obje

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
TECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JOR Sent: Tuesday, January 30, 2007 3:55 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) A decorator object composites the object it wishes to decorate and is used in it's place. Since the decorator i

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread JOR
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Bianchi Sent: Tuesday, January 30, 2007 1:49 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Flair Pattern bad mixins good (?) A decorator is meant to be dynamic. It adds responsibilities

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
2007 1:49 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Flair Pattern bad mixins good (?) A decorator is meant to be dynamic. It adds responsibilities to an object at run time. You take ComponentA and add methods to it on mouseclick, that's a decorator. ComponentB

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael Keesey Sent: Tuesday, January 30, 2007 9:00 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) How is this any different from a Decorator/Wrapper? Looks like a dou

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread T. Michael Keesey
uesday, January 30, 2007 12:09 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) On 1/29/07, David Ham <[EMAIL PROTECTED]> wrote: > > startObjectDrag triggered by obj_mc.onPress > checkForSnaptriggered bysetInterval or onEnterFram

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
classCMethod():Number{...}; } -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael Keesey Sent: Tuesday, January 30, 2007 12:09 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) On 1/29/07, David

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) OK, this is helping a lot. And Steven I see what you mean, poor Flair is starting to look a little meager now. In my app, I have several different states. Each state sets itself up by initializing variables

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Hans Wichman
Hi, maybe a dumm question but would it be off limits to express this changing-behaviour in the interface? For example in such an object as you are describing, you could add a method setResizeBehaviour(r:ResizeBehaviorImpl) (in pseudo then). Then you can change a certain type of behavior at runtime

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread T. Michael Keesey
On 1/29/07, David Ham <[EMAIL PROTECTED]> wrote: startObjectDrag triggered by obj_mc.onPress checkForSnaptriggered bysetInterval or onEnterFrame type of event, in this case onObjectDrag stopObjectDrag triggered byobj_mc.onRelease This looks more like the Broadcaster pattern or

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-29 Thread David Ham
lashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) 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). Ah, thank you, now we are getting somewhere! Tel

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-29 Thread JOR
Erik Bianchi wrote: The theory of mixins originated from multiple inheritance programming languages such as C++. So for example: Say you wanted to make an object dragable, clickable and resizable. You would then create separate classes called: Dragable, Clickable and Resizable (common naming con

RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-29 Thread Erik Bianchi
iler so maybe some typos. =) -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, January 29, 2007 7:12 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) > Anyhow I tend not to use de

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-29 Thread David Ham
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). Ah, thank you, now we are getting somewhere! Tell me about mixins. I have used EventDispatcher before, but I am unfamiliar wi

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
Is adding and removing identical decorators on multiple objects a commonly occuring problem in software development? ;) I avoid Decorators, as well, for the same reasons you stated and the same solutions you offered, as well. :) ___ Flashcoders@chattyf

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Erik Bianchi
-- 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

Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread T. Michael Keesey
On 1/29/07, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: If you want to discuss best practice for what you're doing, I'd be happy to offer ideas later today when I have more time. I'm a little confused as to why the original poster would want to dynamically add or remove functionality to/fro

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
> Whether something is a "true" design pattern or not is kind > of beside the point, for me; what I want to know is if a > particular approach is good for what I am trying to > accomplish: in this case, adding and removing functionality > to an object at runtime. If it works and you meet the d

Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread David Ham
For my part, I have the Head First book, and the Decorator section did not answer the particular questions I had. Nor did the other sources I read. Whether something is a "true" design pattern or not is kind of beside the point, for me; what I want to know is if a particular approach is g

Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread eric dolecki
i can only recall from the early days that posts be about coding, and some posts(threads) would get bounced (I think) if they didn't. Which was understandable imho. Beyond that, I'm not sure what the comment about Branden running the list means either... -ericd. On 1/29/07, Steven Sacks | BLITZ

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
> Can you elaborate? While a trip down memory lane replete with posts from the archives sounds like a wonderful time (not), I have work to do and it would take this thread extremely OT. ___ Flashcoders@chattyfig.figleaf.com To change your subscription op

Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread Claus Wahlers
the way he ran Flashcoders in the early days Can you elaborate? Cheers, Claus. -- claus wahlers cĂ´deazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ -- READ CAREFULLY. By reading this email you agree, on behalf of your employer, to release me from all obligations and w

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
I felt that I did qualify my statement, I'll try again with clearly language. My statement: There is no such thing as a Flair design pattern. My qualification: Brendan Hall's book and deep in the archives of Flashcoders back when Brendan operated this list are the only places you will find refere

Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread slangeberg
Yeah, hear-hear (here-here?). I would wager that we could find one ore more non-PhD's who've produced some major, seminal works. I'm sure this even applies in the CS field, no? OTP: Flex 2 rocks. Get it now. -Scott "Yeah, well the God I believe in isn't short of cash, mister." On 1/29/07, Mar

Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread Martin Wood-Mitrovski
Im not normally one to comment on personal behaviour but that post really does leave a bitter taste, which is sad as you are sometimes helpful. If you are going to pass judgements on other peoples work which may prove helpful in the situation facing the OP then at least qualify them or you also

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
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

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Benny
>The pattern is similar to Decorator (as they acknowledge in the book) >but different in that it allows you to add and remove functionality >at runtime. ... Hmmm ...sounds interesting. Besides the book (which I don't have access to unfortunately) are there any online resources where I can find

Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread David Ham
I've never heard of an OOP design pattern called Flair. From the class you've pasted, it looks like a novice attempt at implementating (sic) a design pattern known as Decorator. Perhaps they were trying to be funny with a reference to the movie Office Space where buttons decorating a TGIFrid

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Dave Watts
> I've never heard of an OOP design pattern called Flair. From > the class you've pasted, it looks like a novice attempt at > implementating a design pattern known as Decorator. http://chattyfig.figleaf.com/pipermail/flashcoders/2003-January/060703.html My understanding of the point of this pa

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
I've never heard of an OOP design pattern called Flair. From the class you've pasted, it looks like a novice attempt at implementating a design pattern known as Decorator. Perhaps they were trying to be funny with a reference to the movie Office Space where buttons decorating a TGIFriday's unifor

[Flashcoders] Flair Pattern?

2007-01-29 Thread David Ham
Hey FlashCoders: In the app I am building, I have a need to add and remove functionality to an object at runtime--specifically, functionality that will snap the object to a border. I have puzzled on this for awhile, and the method that seems most applicable to me is the Flair pattern desc