ZOMG! Signals strike again!!!!1
Checked out TurboSignals by Jackson Dunstan today. Please stop sending me this link over and over again.
I see a lot of people don’t understand the point. “ZOMG IT’S ZILLION TIMES FASTER I MUST USE IT EVERYWHERE!!!!1″. No you don’t. Everything should be used where it fits. I saw a lot of people started using architectural frameworks like PureMVC or Swiz without understanding the theory behind them. Thus inventing hacks to overcome framework “constraints” while what they see as “constraints” come from their lack of knowledge.
A lot of people think that if something is advertised as being good and fast they must use it in their projects. STOP NOW! Think first if you really need all this stuff.
Same here. I am absolutely happy with Events and I love all sort of bubbling. Events are good for UIs and tree-like structures. I don’t have to reinvent the wheel. I just work with events everywhere in the same manner.
BUT! If I need greater performance somewhere in critical code chunks I’m using simple function calls. I know that I create obvious dependencies but I do it where it makes sense. You should not rush to change Events to Signals or whatever everywhere. Inventing hacks and making your app impossible to maintain.
Check out TurboSignals sources, there are like 20 lines of code which do stuff. You could implement such interface-based notifying yourself.
What you really should do is to read the whole Jackson’s blog. You’ll find a lot of information about AS3 optimization and stuff. Good job, man!
Tags: Events, Signals, TurboSignals
-
http://www.jacksondunstan.com Jackson Dunstan
-
http://vimeo.com/user3516401 Kent Waffenschmidt
