The Artima Developer Community
Sponsored Link

Java Buzz Forum
Dependency Injection: Vitally Important or Totally Irrelevant?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Dependency Injection: Vitally Important or Totally Irrelevant? Posted: Aug 9, 2005 9:47 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Dependency Injection: Vitally Important or Totally Irrelevant?
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

Jim Weirich talked about the experiences that various people have had in the Ruby world, at migrating the popular IoC craze that started in Java-land via Spring/Pico/HiveMind.

It has been interesting to see Ruby frameworks such as Needle and co. jump into Ruby, to have a lot of people ponder if it REALLY makes sense.

I think the heart of it comes from his comparison:

Java Classes are "Hard"

  • Not Objects
  • (mostly) Source Code Constructs
  • Unchangable at Runtime
  • Class name directly identifies the class.

Ruby Classes are "Soft"

  • Just Objects
  • Runtime live
  • Changable at Runtime
  • Class name is just a label pasted on an object

... and that in general factories aren't a pain in Ruby, and classes are open so you can sneak in and add mock behaviour whenever you want... ON that class/object.

Read: Dependency Injection: Vitally Important or Totally Irrelevant?

Topic: On the board-walk in Long Beach, WA [Flickr] Previous Topic   Next Topic Topic: Pool at Nick's in Long Beach, WA [Flickr]

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use