Showing posts with label madeinflex. Show all posts
Showing posts with label madeinflex. Show all posts

Thursday, October 23, 2008

Flex performance tips

One of the most interesting sessions I assisted in MIF Onsite III was "Flex optimization" by Alberto Alacaraz. He talked about optimizing Flex applications, performance and memory usage, and some tips to achieve it by using the Flex Profiler.

Performance/memory usage are both equally important issues while developing successful applications, but focusing in performance, it's a key aspect when talking about user experience. When working with interactive aplications, the user expects an inmediate response to a button click, or a key press, a drag & drop... and if these events fire any inefficient processes, the overall user impression about the application can be damaged.

Alberto pointed some simple tips to have in mind when coding Flex applications. Very simple things in fact, but I often forget those when coding...

  • Remembering ActionScript statements such as "break" or "continue" when iterating in loops can save some precious time. Come on, review ActionScript3.0 statements!
  • Bindings in Flex are very powerful, but involve some overhead we must be aware of. They are very useful to ensure we're displaying the latest data in our views, but do we want to notify the view of every change we make over this data? Perhaps notifying sets of changes, between consistent states could be enough...
  • The object pool pattern, that a very elegant way to improve object instantiation times.

Here, I try reproduce some of the examples Alberto showed (here the source code):





Sunday, October 19, 2008

MadeInFlex OnSite III


Last friday (October 17th 2008) I had the chance to attend to MIF OnSite III, a Flex event that MadeInFlex (the most active Spanish community in Flex) organized in Madrid. It was a single day event.

The scheduling:

It was the 3rd edition of this event, having attended the previous ones in Barcelona. There's no possible comparison with events like 360Flex or MAX, neither for its size, nor for big announcements. Adobe speakers leave some comments on how great new things will be announced... in future events, like Max.

Anyway, it's a great way to see what's going on close to you, what Flex recipe is cooking the neighbour next door.

For work reasons I missed the "Wedtool" conference, so, a part from that, I really enjoyed Flex Optimization by Alberto Alcaraz , and the one about the close future, with CS4, Gumbo and AIR 1.5. I'll try to reproduce some of the situations Alberto talked about in an upcoming post.

The Papervision for dummies, was really "entry level". I'm not complaining about it, for some reason Joan Garnet had few time to prepare it and did a good job. The Domestika one was perhaps a little out of place, but loved the work they've done in the site redisign.

My overall impression after this 3 events is that the spanish Flex community is not very communicative. I was checking my RSS subscriptions about Flex... and there is just 2 over 40 sites I follow. Man, do we only know how to communicate while in the bar holding a "caña" in our hand??? (I guess is difficult to type in this situation :-P)

I forgot to mention the event was 100% free, so I'd like to thank the organization for its effort and encourage them to keep on working in building community.

thanks MadeInFlex.

MAXwidget