The No.1 i-Technology Magazine in the World !
   
 

      ES no BS
       My son's animations and music            training         Twitter            No BS IT podcast

Archives

««Mar 2010»»
SMTWTFS
  123456
78
9
10
11
12
13
14
1516
17
181920
21222324252627
28293031

RSS Feed








Subscribe to these blogs

A Singleton that Flex Developers must know about

posted Wednesday, 5 August 2009

Don’t create new singletons – just use what you already have.

Each real-world software developer knows at least one design pattern – Singleton. Flex has some specifics in implementing Singletons due to lack of private constructors in ActionScript, but the goal of this little writeup is not to show you how to implement Singleton, but rather to discourage you from doing this because each Flex application already has a singleton – just use it.

I’ve recorded an eight-minute video that will shows how you can use the Application object as your one and only singleton when needed. See if you can answer the question that I asked at the end of the video.

This is one of many tricks and techniques that consultants from Farata Systems use while working on enterprise Flex projects, and we’ll continue to share them with you in the form of such mini demos as well as in one of our public seminars like the one on August 7 in New York City or on September 24-25 in London, UK.

tags:  

links: digg this    del.icio.us    technorati