{"id":1078,"date":"2011-07-11T22:07:20","date_gmt":"2011-07-12T06:07:20","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=1078"},"modified":"2011-07-11T22:07:20","modified_gmt":"2011-07-12T06:07:20","slug":"django-follows-the-law-of-least-googling","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2011\/07\/11\/django-follows-the-law-of-least-googling\/","title":{"rendered":"Django Follows the Law of Least Googling"},"content":{"rendered":"<p>What web framework should someone new to web development learn?<\/p>\n<p>Any framework that follows what I call &#8220;The Law of Least Googling.&#8221; This law states that a tutorial will not let a learner have to Google anything for as long as possible and for as little as possible.<\/p>\n<p>I&#8217;ve followed the <a href=\"https:\/\/www.djangoproject.com\/\">Django<\/a> Tutorial all the way to the <a href=\"https:\/\/docs.djangoproject.com\/en\/dev\/intro\/tutorial04\/\">end<\/a>. I did not use Google once, which means Django follows The Law of Least Googling.<\/p>\n<p>Because of this, <strong>I am now recommending that any person new to web development use Django.<\/strong><\/p>\n<p>I used to think Rails was the way to go but because of the dependency mess with having to use Rake 0.8.7 to get RSpec working correctly, I am less inclined. Rails is a pain to install on Windows. You also have to google <a href=\"http:\/\/stackoverflow.com\/questions\/1366644\/gem-install-mysql-problem-in-rails\">how to get the MySQL gem installed<\/a>. This is not ideal when SQLite can&#8217;t get installed for some reason.<\/p>\n<p>But once you get Rails running it&#8217;s great, but as a newbie, I wouldn&#8217;t be surprised if lots of folks already gave up.<\/p>\n<p>Rails isn&#8217;t that bad. It hits these 3 snags:<\/p>\n<ul>\n<li>Issues with SQLite3 or MySQL gem install<\/li>\n<li>Creating sessions not working correctly with <a href=\"http:\/\/www.redmine.org\/issues\/8588\">Rake 0.9.2<\/a>. But There&#8217;s a patch.<\/li>\n<li>It&#8217;s a pain to install on Windows, but I&#8217;m not really a Win Fanboy.<\/li>\n<\/ul>\n<p>Now if we&#8217;re talking LAMP, then forget it. It&#8217;s easy to get going with something like <a href=\"http:\/\/www.mamp.info\/en\/index.html\">MAMP<\/a>, or WAMP, but the frameworks simply don&#8217;t have that install and learn to code feel that Rails or Django has. You really cannot use a PHP framework without having to resort to Google very early. For example with CodeIgniter I have to figure out how to point my doc root correctly via Googling.<\/p>\n<p>My main take away is that if you want to learn to code on the web do it on Django. Python is the language that powers Django. There&#8217;s also a great <a href=\"http:\/\/learnpythonthehardway.org\/\">Python<\/a> tutorial to get you started.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What web framework should someone new to web development learn? Any framework that follows what I call &#8220;The Law of Least Googling.&#8221; This law states that a tutorial will not let a learner have to Google anything for as long as possible and for as little as possible. I&#8217;ve followed the Django Tutorial all the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[342,357],"tags":[],"class_list":["post-1078","post","type-post","status-publish","format-standard","hentry","category-coding-2","category-django"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/1078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=1078"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/1078\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=1078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=1078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=1078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}