Posts
1150
Comments
891
Trackbacks
1
Newables and Injectables

As per usual, when you read a lot of blog posts and get a lot of other stuff in your RSS feeds, you end up hitting on some things that you didn’t expect.  Most of the time, it isn’t necessarily all that valuable, but sometimes it is.

From Misko Hevery and then expanded upon by Loose Couplings (couldn’t find an actual name) is a distinction between newables and injectables that can help you write better tests (the latter casts it in terms of TDD, which as you know I think sucks, but the distinction seems promising regardless of that) by giving you guidelines of how to create classes that make dependency injection more effective.

I’m sure that I could quibble with this or that, but it’s good stuff to read.

Check it out.

posted on Friday, February 04, 2011 9:16 PM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 1 and 7 and type the answer here: