<div dir="ltr"><div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif">Some fantastic replies, really proud to be part of such a well-rounded and experienced Ruby group.</div>
<div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif">Unlike other times, DHH did a really good job explaining his controversial viewpoint this time around. Most of his keynote is about why he is the way he is, and if you pay close attention to the first part of his Keynote, it all makes sense. The truth is that he is right, and even though "his right" is at opposite ends to "our right", look at where his "<a href="http://programming-motherfucker.com/" target="_blank">programming motherfucker</a>" approach got him (ie Rails, 37signals etc).</div>
<div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif">The more experience I gain, the more I realise that there is no one true way. I was on teams that didn't even know about TDD, others that were truly infatuated with it and were living proof that too much of a good thing is counter-productive, and others that did TDD just to tick a box but never really cared. DI is even more varied as it doesn't benefit from the same prime spot as TDD. Both concepts attract and gravitate around one another, it's difficult to do either on their own and gain significant benefits.</div>
<div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif">Ultimately, knowing when **not** to use TDD or DI is just as valuable as knowing when to use them. All projects are unique, as are all situations, and with no rules, just guidelines, it takes experience (ie many mistakes) before the decisions that one starts making are more right than wrong. Listen to your common sense, read and explore all the great books, screencasts and blog posts that many bright minds have put together and make your own choices, don't do something because DHH or Avdi Grimm said so. Ultimately, enjoy what you're doing, otherwise you might as well be a typewriter.</div>
<div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif">I have written logical, easily comprehensible PHP, awk and bash code with absolutely no TDD. A lot of it is still ticking in production, going on 8 years, still making money for its owners, getting the job done. If code could laugh and tell stories, those would be happy codebases. I have also written Ruby with all the TDD, DI and BDD that any one of you would be happy to take over and continue adding new features with little friction or drag. Unfortunately, most of that code will never see real users and will never make any money for its owners. That's what I call a "sad codebase", and it's a real shame.</div>
<div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif">Here's to more happy codebases, happy users & happy devs, DI/TDD or not.</div>
<div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif">Gerhard</div>
<div class="gmail_default" style="font-size:small;font-family:arial,helvetica,sans-serif"><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><br><hr style="font-family:arial,helvetica,sans-serif">
<font color="#3333ff"><font face="arial, helvetica, sans-serif"><a href="http://twitter.com/#!/gerhardlazu" target="_blank">Twitter</a> <a href="https://github.com/gerhard" target="_blank">Github</a> </font><a href="http://gerhard.lazu.co.uk/" style="font-family:arial,helvetica,sans-serif" target="_blank">Blog</a></font></div>
</div>
<br><br><div class="gmail_quote">On Fri, Apr 25, 2014 at 2:25 PM, Sleepyfox <span dir="ltr"><<a href="mailto:sleepyfox@gmail.com" target="_blank">sleepyfox@gmail.com</a>></span> wrote:<br><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><br></div>