{"id":11,"date":"2012-02-09T21:47:07","date_gmt":"2012-02-09T21:47:07","guid":{"rendered":"http:\/\/developerodyssey.com\/?p=11"},"modified":"2014-02-16T14:55:11","modified_gmt":"2014-02-16T14:55:11","slug":"dont-fight-the-tools","status":"publish","type":"post","link":"https:\/\/developerodyssey.com\/?p=11","title":{"rendered":"Don&#8217;t Fight The Tools"},"content":{"rendered":"<p>\nI&#8217;m a .Net developer by profession. So it&#8217;s only natural that I hate PHP.  OK, I don&#8217;t hate it, but I find it quite frustrating.  I think that the reason that this is, is because they are just so different. They take a completely different approach to accomplishing the same thing.  So when I go to program something in PHP, which I don&#8217;t do that often, I try to write .Net code in PHP.  This is very difficult.  In the latest project I did, namely, this blog, I tried to do the exact opposite. I decided to write my PHP to make it look like PHP. To me, it seems a little unnatural.  Mixing in logic and presentation.  Mixing in database access code with presentation.  Basically creating no layers between anything. Get some data from a database, output the data with HTML tags interspersed with the data.\n<\/p>\n<p>\nPHP has added a lot of stuff to try to get away from it&#8217;s humble beginnings.  They&#8217;ve added objects, namespaces, frameworks for doing MVC or other types of architectures.  But I find that all of it is kind of done poorly. Without getting into too much of a rant, it seems like PHP is just trying to add features, just to be like the big boys. But in the end, it makes everything look inconsistent, and gives people a bad impression. Nobody complains that C doesn&#8217;t have classes, interfaces, and namespaces. If you want that, go find another language. PHP could have taken a lesson from that, but alas it&#8217;s too far gone.\n<\/p>\n<p>\nIt&#8217;s really similar to this <a href=\"http:\/\/ask.slashdot.org\/story\/12\/02\/07\/2332218\/\">Ask Slashdot<\/a> article.  The first post sums it up. Don&#8217;t try to write C++ or Java in Javascript. Similarly here. Don&#8217;t try to write .Net in PHP.  And I wish PHP would just be happy being PHP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a .Net developer by profession. So it&#8217;s only natural that I hate PHP. OK, I don&#8217;t hate it, but I find it quite frustrating. I think that the reason that this is, is because they are just so different. They take a completely different approach to accomplishing the same thing. So when I go &hellip; <a href=\"https:\/\/developerodyssey.com\/?p=11\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Don&#8217;t Fight The Tools<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11"}],"version-history":[{"count":1,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":12,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions\/12"}],"wp:attachment":[{"href":"https:\/\/developerodyssey.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}