<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Perplexed Labs &#187; java</title>
	<atom:link href="http://blog.perplexedlabs.com/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.perplexedlabs.com</link>
	<description>web development war stories from the frontlines to the backend</description>
	<lastBuildDate>Sat, 24 Jul 2010 16:27:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP Drinks Java</title>
		<link>http://blog.perplexedlabs.com/2009/05/18/php-drinks-java/</link>
		<comments>http://blog.perplexedlabs.com/2009/05/18/php-drinks-java/#comments</comments>
		<pubDate>Mon, 18 May 2009 16:46:39 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.perplexedlabs.com/?p=267</guid>
		<description><![CDATA[This post got me thinking about exactly why it is that PHP developers dislike Java? While researching I stumbled upon this post which attempts to explain why you shouldn't treat PHP as if it were Java. The example singleton code looks nearly identical in both PHP and Java. The author suggests that an "experienced" PHP [...]


Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2008/02/01/get-it-done/' rel='bookmark' title='Permanent Link: Get It Done'>Get It Done</a></li>
<li><a href='http://blog.perplexedlabs.com/2009/06/30/php-5-3-0-released-and-firefox-3-5/' rel='bookmark' title='Permanent Link: PHP 5.3.0 Released and Firefox 3.5'>PHP 5.3.0 Released and Firefox 3.5</a></li>
<li><a href='http://blog.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/' rel='bookmark' title='Permanent Link: PHP jQuery AJAX Javascript Long Polling'>PHP jQuery AJAX Javascript Long Polling</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.travisswicegood.com/index.php/2009/05/13/magic-is-to-python-as-java-is-to-php">This</a></strong> post got me thinking about exactly why it is that PHP developers dislike Java?</p>
<p>While researching I stumbled upon <strong><a href="http://phpadvent.org/2008/php-is-not-java-by-luke-welling">this</a></strong> post which attempts to explain why you shouldn't treat PHP as if it were Java.  The example singleton code looks nearly identical in both PHP and Java.  The author suggests that an "experienced" PHP developer wouldn't attempt to think in terms of Java and would instead choose to implement this concept in PHP with the use of a global variable.  This is ridiculous.  It's crap like this that gives PHP a bad rap.</p>
<p>No, <strong>PHP isn't Java</strong> and shouldn't be treated as such.  Nor should you abandon all logic and reason and disregard features of the language that make it <em>appear</em> Java-like.</p>
<p>PHP's object model borrows heavily from Java.  This is fact.  Its property and method visibility, single inheritance, interfaces, final classes, and abstractions are all very Java-like.  Not to mention exceptions and garbage collection.  I'll be damned if that doesn't cover a large portion of the features that developers use to write software in both PHP and Java.  Are all of these concepts exclusive to Java?  No, they're not.  It just seems that the PHP team felt that Java made some good decisions and decided to emulate them.</p>
<p>I'll bet that lots of PHP code is unknowingly written Java-like.  Is this because a PHP developer is "thinking in Java"?  Perhaps it's because the foundational toolset which a PHP developer was given was designed with Java in mind.  I'm not sure it makes sense to decide to use PHP to solve a problem and then fight with/ignore/don't take advantage of the features of the language.  I think that would be a good reason to choose another language, no?</p>
<p>How could a language (obviously) borrow so heavily from another language and simultaneously shun the mention of that language?</p>


<p>Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2008/02/01/get-it-done/' rel='bookmark' title='Permanent Link: Get It Done'>Get It Done</a></li>
<li><a href='http://blog.perplexedlabs.com/2009/06/30/php-5-3-0-released-and-firefox-3-5/' rel='bookmark' title='Permanent Link: PHP 5.3.0 Released and Firefox 3.5'>PHP 5.3.0 Released and Firefox 3.5</a></li>
<li><a href='http://blog.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/' rel='bookmark' title='Permanent Link: PHP jQuery AJAX Javascript Long Polling'>PHP jQuery AJAX Javascript Long Polling</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.perplexedlabs.com/2009/05/18/php-drinks-java/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Get It Done</title>
		<link>http://blog.perplexedlabs.com/2008/02/01/get-it-done/</link>
		<comments>http://blog.perplexedlabs.com/2008/02/01/get-it-done/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 19:06:54 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://perplexedlabs.com/2008/02/01/get-it-done/</guid>
		<description><![CDATA[Today's comic at xkcd was entitled "Real Programmers", which was hysterical. It got me thinking about a lot of blogs where flame wars erupt because fanboys think their current way of doing things is best, and yours is crap. Everyone has an opinion about which language/framework/web server/OS is The Best. It's fine to have such [...]


Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2009/05/18/php-drinks-java/' rel='bookmark' title='Permanent Link: PHP Drinks Java'>PHP Drinks Java</a></li>
<li><a href='http://blog.perplexedlabs.com/2010/07/01/pythons-tornado-has-swept-me-off-my-feet/' rel='bookmark' title='Permanent Link: Python&#8217;s Tornado has swept me off my feet'>Python&#8217;s Tornado has swept me off my feet</a></li>
<li><a href='http://blog.perplexedlabs.com/2010/02/08/deployment-using-capistrano-and-webistrano-via-rails-and-phusion-passenger/' rel='bookmark' title='Permanent Link: Deployment Using Capistrano / Webistrano via Rails / Phusion Passenger'>Deployment Using Capistrano / Webistrano via Rails / Phusion Passenger</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Today's comic at <a href="http://xkcd.com/378/">xkcd</a> was entitled "Real Programmers", which was hysterical.  It got me thinking about a lot of blogs where flame wars erupt because fanboys think their current way of doing things is best, and yours is crap.  Everyone has an opinion about which language/framework/web server/OS is The Best.   It's fine to have such opinions, and to be able to explain and defend them.  But please don't tell me I am somehow less of a programmer because I use That Other [language/framework/web server/OS].  In a professional capacity I use Ruby on Rails everyday, and I love it.  But I have no problem writing applications in PHP, Java, C/C++...even VB.  Because at the end of the day, users, be they business or otherwise, only care about one thing: the end product.  As programmer, I use whatever tool is best to get the job done.  Of course I have my preferences but I will never try and force a solution to fit within those preferences.</p>
<h3></h3>


<p>Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2009/05/18/php-drinks-java/' rel='bookmark' title='Permanent Link: PHP Drinks Java'>PHP Drinks Java</a></li>
<li><a href='http://blog.perplexedlabs.com/2010/07/01/pythons-tornado-has-swept-me-off-my-feet/' rel='bookmark' title='Permanent Link: Python&#8217;s Tornado has swept me off my feet'>Python&#8217;s Tornado has swept me off my feet</a></li>
<li><a href='http://blog.perplexedlabs.com/2010/02/08/deployment-using-capistrano-and-webistrano-via-rails-and-phusion-passenger/' rel='bookmark' title='Permanent Link: Deployment Using Capistrano / Webistrano via Rails / Phusion Passenger'>Deployment Using Capistrano / Webistrano via Rails / Phusion Passenger</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.perplexedlabs.com/2008/02/01/get-it-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
