Showing posts with label DZone. Show all posts
Showing posts with label DZone. Show all posts

Wednesday, June 25, 2014

FYI - a new beginning?

Posting after a very long interval. A lot has happened in my personal life since my last activity - I have to shoulder new responsibilities and of course, I am not getting any younger (by age and body, if not by mind). I am attempting to break away from corporate life and become a freelancer, possibly a software architecture consultant, in due course of time. I have my hands full as of now.

Meanwhile, I have dabbled in Javascript, hybrid Mobile frameworks like Phonegap and Titanium and gained insight on the sundry mushrooming JS frameworks. The rise of Node.js, I feel, is a sort of vindication of my 2010 July article series - Do we really need Servlet Containers always?. I have also gained a whole new perspective and respect for user experience and GUIs, thanks to my recent-most employer - SapientNitro.

Looking at my earlier blogs, I found that the link of an earlier article of mine - The Dilemma of The Framework Creator had broken and the article was languishing in the internal site of my erst-while employer. As it had nothing to extoll or revile any particular product of any particular company and rings as true today as when I had written it, I thought it was a waste of a fine article and got it published in DZone's Architect Zone.

Thursday, June 21, 2012

An Inversion of Control Container in Dojo Javascript Framework



A year since my last article was published! I just opened my account for this year's articles yesterday. My article An Inversion of Control Container in Dojo Javascript framework got published in DZone.

Inversion of Control (IoC) / Dependency Injection (DI) has become a very popular design and architectural standard in enterprise programming. Conceptually it enables a container to manage the lifecycle and dependencies between objects - something which need not be purely exclusive to server-side enterprise development. In fact, loosely typed languages like JavaScript could be far more amenable to this concept as they obviate the need for reflection mechanisms for injecting and resolving dependencies. This article demonstrates how a simple Inversion of Control (IoC)/ Dependency Injection container can be easily prepared with JavaScript. Owing to the author's experience, the article uses Dojo framework, but it should be possible to do so using other object-oriented JavaScript frameworks or plain Javascript. The existence of open source JavaScript DI frameworks like Wire.js and Squirrel IOC are testimonial to the fact that IoC / DI is being seriously considered in the JavaScript community. This article seeks to demonstrate the design under the hood to make IoC or DI possible, the benefits of wiring using dependency injection and encourage its adoption with JavaScript application developers. It does so by walking through a code sample.

Read the full post at any of these DZone links - 

http://java.dzone.com/articles/inversion-control-container
http://architects.dzone.com/articles/inversion-control-container
http://css.dzone.com/articles/inversion-control-container