[LRUG] Dependency Injection and DHH

Nick Griffiths nicobrevin at gmail.com
Sat Apr 26 22:53:42 PDT 2014


I found the monkey patching approach I think he suggests is quite brittle,
especially if you've got a large code base.  Also it can be unclear what's
coming from where.

DI doesn't have to be done in some crazy Java way, it can be done
succinctly in ruby and end up with nice readable code without a
dependencyfactoryspiproviderimpl.
On 26 Apr 2014 01:25, "Sleepyfox" <sleepyfox at gmail.com> wrote:

> I'm wondering what those who were at RailsConf and listened to DHH's
> keynote - or have watched the video:
> http://www.justin.tv/confreaks/b/522089408 - thought about his
> description of dependency injection making code worse?
>
> Fox
> --
> "What does the @sleepyfox say?"
>
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20140427/f7b48f37/attachment-0003.html>


More information about the Chat mailing list