Hi,

I am currently converting my app away from using objects which call each 
other's methods to for some behaviour to objects which communicate which 
each other through global events  
(window.application.createDispatchEvent("foo"),  
window.application.createDispatchDataEvent("foo", {blub:true}, 
window.application.addEventListener("foo", function(e){....}), and am 
very much intrigued by the idea. Advantages include that I do not have 
to give objects names in the global namespace or in an object registry. 
All objects just exist independently and listen for each others events 
to react to them (or not). All the behaviour code is located at the 
object level - it is also easier to keep the application stable because 
missing or broken functions cannot break it. I am thinking of extending 
the system to include client-server communication.

Since the idea seems so nice to me, I wonder what the drawbacks might 
be. Do you expect a major performance loss?

Thanks for any input,

Christian

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to