Archive for 'flex'

Some thoughts on constructor and method parameters

I consider a best practice to keep to the minimum the number of arguments a method accepts. As uncle Bob explains in his “Clean code” book we should always favour niladic (no arguments), monadic (1 argument) or dyadic (2 argument) methods and avoid whenever possible methods with more than 3 arguments, if not possible we [...]

Using BlazeDS from a Flash or AS3-only project

Some weeks ago I had to develop a light version of an existing Flex application. The Flex application consumed lot of Java logic through services exposed by BlazeDS’s RemoteObjects.
The goal was to be able to consume, from the new application, the exact same Java Services that the Flex application was consuming through RemoteObjects without [...]

Logging and catching (async) exceptions during invalidation

Sometimes, due to many different reasons, there’re exceptions that happen during the invalidation/validation cycle of the flex SDK. Most times these exceptions end up being unveiled in the very core of the SDK, being not possible to catch them up because their async nature and the place where they happen.
The stacktrace of these exceptiosn, normally, [...]

Assert( Gumbo )

Here are the slides I used during my presentation around testing, FlexUnit4 and RIATest.
This movie requires Flash Player 9

swfobject.embedSWF(“https://share.acrobat.com/adc/flex/mpt.swf”, “swfd7d11″, “525″, “400″, “9.0.0″, “”, {ext: “pdf”, docId: “fefe9a1b-c7c1-4c62-9563-7fc215adefd3″, lang: “en_US”}, {wmode: “window”, menu: “false”, quality: “high”, bgcolor: “#FFFFFF”, allowFullScreen: “true”}, {});

Hello Gumbo presentation

Here are the slides and sample files I used for the Hello Gumbo presentation I did for the Spanish Flex User group in the context of the Global AUG tour.
This movie requires Flash Player 9

swfobject.embedSWF(“https://share.acrobat.com/adc/flex/mpt.swf”, “swfd7d12″, “525″, “400″, “9.0.0″, “”, {ext: “pdf”, docId: “f35f34dc-d6ff-4b4b-abf1-9caa95b25ab7″, lang: “en_US”}, {wmode: “window”, menu: “false”, quality: “high”, bgcolor: “#FFFFFF”, allowFullScreen: [...]