<p dir="ltr">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.</p>
<p dir="ltr">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.</p>
<div class="gmail_quote">On 26 Apr 2014 01:25, "Sleepyfox" <<a href="mailto:sleepyfox@gmail.com">sleepyfox@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_default" style="font-size:small">I'm wondering what those who were at RailsConf and listened to DHH's keynote - or have watched the video: <a href="http://www.justin.tv/confreaks/b/522089408" target="_blank">http://www.justin.tv/confreaks/b/522089408</a> - thought about his description of dependency injection making code worse?</div>

<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Fox</div><div class="gmail_default" style="font-size:small">--</div><div class="gmail_default" style="font-size:small">

"What does the @sleepyfox say?"</div><div class="gmail_default" style="font-size:small"><br></div></div>
<br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div>