Dependency Injection ala Ruby

April 3, 2007

Back in the days when I was a Java developer, there was a really hot meme called “dependency injection” (also known in some circles as “inversion of control”). The hype was oriented around the Spring framework, which promised to be the next hotness for developing web apps (amongst other things). It’s still around, and doing quite well, but I was seduced by Ruby on Rails before I could really sink my teeth into Spring.

Why am I rambling about this now? Last night when I was trying to fall asleep, Spring floated through my head and I wondered if there was a similar framework for Ruby. Lo and behold, it turns out Jamis Buck constructed a container back in the days before Rails became the web’s darling framework.

It’s called Copland, and this one example is enough to make me keep thinking about it …

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: