Tuesday, January 10th, 2012
application/logs/*
!*.htaccess
That is all.
Tuesday, January 10th, 2012
That is all.
Thursday, July 9th, 2009
I recently wrote a post about speeding up development with PureMVC’s mediator. Now I’ve created a super mediator class that will defiantly help you speed up your code.
I mentioned before that I really didn’t like the idea of having to use “listNotificationInterests()” and then “handleNotification()” as these functions lead to unnecessary duplication of code and, if you’re like me, most of the time you use the “switch()” within “handleNotification()” to execute functions rather than writing a load code.
So what have I come up with you ask? Well, here’s my new mediator class (which you will extend instead of extending PureMVC’s regular mediator):
The idea behind it is that you would now use “declareNotificationInterest()” where you would pass in the notification name and then the function to execute, like so:
It’s a bit of a shame that I have to place the functions within the constructor but it’s just how PureMVC works. I may try to suggest to the guys are PureMVC to see if there’s a possibility to delay the binding of notifications to the mediator within the “onRegister()” function.
However, this still works a charm and means that I don’t have to write half was much code!
If you want the source code, you can get out my repo from git: http://github.com/ahmednuaman/AS3/tree/master
Monday, July 6th, 2009
Update: after a disastrous morning, I’m going to try and upload everything tomorrow!
When I first started this blog, I had every intention of releasing my code as open source for everyone to take and use. I’m still going to do this, in fact I’m just getting my repositories ready for uploading.
I’ve decided to use Github rather than SVN’ing to Google Code. I do prefer git a lot more over svn, but if you really want me to use Google Code, I’m sure I can upload to there too, only by popular demand though!
The Repositories
So here’s the juicy info on the location of the repos on Github:
I’d like to stress that the code will be released under the licensed under a Creative Commons Attribution-Share Alike 2.0 UK: England & Wales License.
Good question my old fruity. I'm now sticking any post discussions on Google+. Why? Well simply it's better. WordPress's comment system isn't very elegant and nor are ones like Disqus or Livefyre, so to save hassle I've just shipped them off to a social network, like a real boss.