{"id":1453,"date":"2008-02-28T15:13:38","date_gmt":"2008-02-28T15:13:38","guid":{"rendered":"http:\/\/www.redmonk.com\/jgovernor\/2008\/02\/28\/on-douchebags-db2-and-rails-dhh-not-pragmatic-enough\/"},"modified":"2008-02-28T15:13:38","modified_gmt":"2008-02-28T15:13:38","slug":"on-douchebags-db2-and-rails-dhh-not-pragmatic-enough","status":"publish","type":"post","link":"https:\/\/redmonk.com\/jgovernor\/on-douchebags-db2-and-rails-dhh-not-pragmatic-enough\/","title":{"rendered":"On douchebags, DB2 and Rails: DHH not pragmatic enough?"},"content":{"rendered":"<p>I was reading <a href=\"http:\/\/www.codinghorror.com\/blog\/archives\/001065.html\">this post<\/a> from Jeff Atwood when something started bothering me. Jeff talks to <a href=\"http:\/\/www.loudthinking.com\/\">David Heinemeier Hansson<\/a>&#8216;s claim that real programmers (that is, ones he would hire) don&#8217;t use Windows. Frankly its not just coders that are all now running Macs &#8211; I looked around the press room at VMWorld yesterday and Macs outnumbered Winders laptops by 5:2.<\/p>\n<p>I like Hansson and I like his clarity. He is an opinionated guy that writes opinionated software. He was certainly extremely helpful when I asked him a question about maintaining Rails code, and he <a href=\"http:\/\/redmonk.com\/jgovernor\/2006\/04\/13\/37signals-david-heinemeier-hansson-responds-on-lessconfig-the-advantages-of-convention\/\">answered in depth<\/a>. The whole point about Ruby on Rails, as far as I understand it, is that it favours convention over configuration. I once explained it like so: <\/p>\n<blockquote><p>\nRails is about freedom in the Kantian sense-development has a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Categorical_imperative\">categorical imperative<\/a> &#8211; what you do should be morally applicable to anyone else in the same circumstance. Its about responsibilities rather than rights. The responsibility to ease of use.<\/p>\n<p>Abstractions are aspects or constraints of the framework itself, rather than veneers to hide code behind and allow ever more configurations to be applied. Freedom comes from accepting and working within constraints. Beautiful code comes from limitations, not being able to configure everything in sight.<\/p><\/blockquote>\n<p>Of course Hansson favours the Mac. Its an opinionated system, which fosters user experience best practice. On the Mac choices are limited, and so freedom grows. Every time on a Windows machine you do the same thing differently than you have before you are being less productive, less in flow, less constrained, less creative because you&#8217;re not focusing on the job in hand. Oh yeah- and the Mac UI is pretty&#8230; which matters. Successful pretty is not an afterthought, its from the root. <\/p>\n<p>Hansson&#8217;s view of freedom is seemingly based on a somewhat European, Design-led, view of the world. [on reflection that may just be my philosophical roots showing &#8211; Asian thinking also tends to be fairly comfortable with constraints.] Markets, for example, are not absences of rules. On the contrary a market is impossible without clear rules of engagement. A market is a set of constraints. Constraints are thus not a bad thing- they foster creativity. Even the hideousness that is digital rights management can foster <a href=\"http:\/\/www.doubletwist.com\/dt\/Home\/Index.dt\">creativity<\/a>&#8230; <\/p>\n<p>Which finally brings me to the title of this post. Atwood, with a rhetorical, almost Hanssonian, flourish argues: <\/p>\n<blockquote><p>&#8220;when you&#8217;re using Rails and OS X, you&#8217;re using the platform of choice for douchebags.&#8221;<\/p><\/blockquote>\n<p>Hansson created Rails but that doesn&#8217;t mean everyone that programs in it thinks the same way. Its true the Rails community is a fairly macho culture. Its true some Rails programmers are overly opinionated, but that&#8217;s true of any community.<\/p>\n<p>What&#8217;s bothering me though is that perhaps Hansson <em>isn&#8217;t opinionated enough<\/em>. You see Rails targets MySQL. MySQL is the Rails database. Forget all the configuration crap and just use MySQL. There is no need to consider other database platforms. LAMP may or <a href=\"http:\/\/www.linux-foundation.org\/weblogs\/amanda\/2008\/02\/17\/hey-jonathan-the-l-in-lamp-is-literal\/\">may not<\/a> be a literal but MySQL is utterly embedded in the Rails way. In Rails database is not a design decision, its a given.<\/p>\n<p>So what about the little voice, hectoring me? You see, <a href=\"http:\/\/www.hackdiary.com\/\">Matt Biddulph<\/a>, <a href=\"http:\/\/www.dopplr.com\/\">Dopplr<\/a>&#8216;s CTO, recommended I read <a href=\"http:\/\/www.amazon.com\/Agile-Web-Development-Rails-Programmers\/dp\/097669400X\">Agile Web Development With Rails: A Pragmatic Guide<\/a> by Hansson and Dave Thomas. So I did. I am not a developer, but I hope I at least gained a feel for how the Rails framework holds things together. Certainly I gained a better understanding of opinionated software which makes key design, class and documentation decisions for you.<\/p>\n<p>Its worth considering some <a href=\"http:\/\/dictionary.reference.com\/browse\/pragmatic?r=75\">definitions of pragmatic<\/a> at this point. <\/p>\n<p>The American Heritage Dictionary: &#8220;Dogmatic; dictatorial.&#8221;<\/p>\n<p>Princeton University has a particularly interesting definition of pragmatic as a <em>noun<\/em>: <\/p>\n<blockquote><p>&#8220;an imperial decree that becomes part of the fundamental law of the land.&#8221;<\/p><\/blockquote>\n<p>So finally my question. Why in the Getting Started section of the book, do the authors even mention DB2 as a potential target database, even if its just an aside (Rails does allow exceptions it just doesn&#8217;t like them)? I mean if a DB2 bigot came to ask Hansson for a job at 37Signals he would be shit out luck wouldn&#8217;t he? You can imagine the laughs- &#8220;this guy wants to back end Rails apps with DB2 &#8211; what a ***tard.&#8221;<\/p>\n<p>I know Anthony <a href=\"http:\/\/db2onrails.com\/2007\/11\/01\/new-version-of-db2-express-c-is-out\/\">would disagree with me<\/a>, and <em>arguably<\/em> Rails abstracts the database decision, so Rails is not tightly coupled to MySQL. But that&#8217;s not the point &#8211;  we&#8217;re not talking about JDBC here. <\/p>\n<p>Or was the decision to include other databases in the intro a pragmatic decision in the other, more commonly used, sense of &#8220;reality-based&#8221;? It never hurts to have IBM on your side after all &#8211; Big Blue is now <a href=\"http:\/\/www.redmonk.com\/jgovernor\/2008\/02\/15\/ibm-doesnt-want-to-be-your-fathers-ibm-it-wants-to-be-your-sons-on-simplicity-sustainability-and-app-dev\/\">teaching Rails to college students<\/a> (and I am pretty sure not recommending DB2&#8230;) <\/p>\n<p>Anthony <a href=\"http:\/\/db2onrails.com\/2007\/06\/20\/rake-db-test-purge-and-rake-db-test-clone\/\">says<\/a> &#8220;an increasing number of Rails developers adopting DB2 as their database of choice&#8221;. <\/p>\n<p>I would like to know more about this &#8220;increasing number&#8221; from Anthony, and I also would like to know what David thinks about database choices and related hiring decisions. Why not just say &#8220;use MySQL or Get Lost&#8221;?<\/p>\n<p>disclosure: IBM is a client. Microsoft is a client. MySQL is a client. I use Windows. My wife has a Mac. RedMonk uses 37Signals <a href=\"http:\/\/www.highrisehq.com\/\">Highrise<\/a> application for  case management. I share an office with Dopplr. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was reading this post from Jeff Atwood when something started bothering me. Jeff talks to David Heinemeier Hansson&#8216;s claim that real programmers (that is, ones he would hire) don&#8217;t use Windows. Frankly its not just coders that are all now running Macs &#8211; I looked around the press room at VMWorld yesterday and Macs<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"class_list":["post-1453","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9wfjh-nr","_links":{"self":[{"href":"https:\/\/redmonk.com\/jgovernor\/wp-json\/wp\/v2\/posts\/1453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redmonk.com\/jgovernor\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redmonk.com\/jgovernor\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redmonk.com\/jgovernor\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/redmonk.com\/jgovernor\/wp-json\/wp\/v2\/comments?post=1453"}],"version-history":[{"count":0,"href":"https:\/\/redmonk.com\/jgovernor\/wp-json\/wp\/v2\/posts\/1453\/revisions"}],"wp:attachment":[{"href":"https:\/\/redmonk.com\/jgovernor\/wp-json\/wp\/v2\/media?parent=1453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redmonk.com\/jgovernor\/wp-json\/wp\/v2\/categories?post=1453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redmonk.com\/jgovernor\/wp-json\/wp\/v2\/tags?post=1453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}