Flex coders, does Dependency Injection pay off?
ActionScript, Flex, Inversion of Control, Prana 5 Comments »Niclas Nilsson, recently wrote a post on InfoQ about the benefits or the lack of benefits of using Dependency Injection (DI). In the post he summarizes a discussion that spanned multiple blogs, all with their own pros or cons of using DI. It is an interesting read to say the least. If you’re new to DI or even if you’re familiar with it and are pro or con, you will certainly pick up new motivations and ideas.
Bringing this into a Flex context, I was wondering how many Flex developers are actually using DI. Since I’m developing Prana, an Inversion of Control (IoC) container for ActionScript 3.0, and have talked about it with several people (mostly Flex developers), I know that DI and IoC are concepts that are still pretty unknown to many of them. There are also lots of misconceptions like: DI is only good for mocking while Unit Testing, it costs more time/money, DI is all about XML, it’s too complicated, it stimulates bad application design, …
So I’d like to hear from you. Are you as a (Flex) developer using any form of DI or IoC? Is it DI-by-hand or are you using any container (which one)? If you’re not using it, is that because you haven’t figured out what it is or are you convinced that it does not serve your needs? Feel free to share your thoughts, opinions and experience.
Add to Bloglines - Digg This! - del.icio.us - Stumble It! - Twit This! - Technorati links - Share on Facebook - Feedburner
Christophe Herreman is a software developer living in Belgium. He's working on high-end Flex and AIR solutions at
Recent Comments