<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PHP vs. Java &#8230; and why I hate Java</title>
	<atom:link href="http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/</link>
	<description>opinions on online marketing, mobile advertising and technology</description>
	<lastBuildDate>Sat, 04 Feb 2012 18:55:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Aris</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-39048</link>
		<dc:creator>Aris</dc:creator>
		<pubDate>Tue, 24 Jan 2012 23:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-39048</guid>
		<description>@Dwoos  “PHP is easy but it&#039;s hard to perfect and impossible to master”
If PHP is not relevant tell that to facebook with 800 Million Users, Google and Yahoo… who use PHP and wordpress that use in this site. Its easy to make things hard and hard to make it easy. Only people make hard to theme selves like java do. 
 I recommended both PHP and Java but more favor on PHP :)</description>
		<content:encoded><![CDATA[<p>@Dwoos  “PHP is easy but it&#8217;s hard to perfect and impossible to master”<br />
If PHP is not relevant tell that to facebook with 800 Million Users, Google and Yahoo… who use PHP and wordpress that use in this site. Its easy to make things hard and hard to make it easy. Only people make hard to theme selves like java do.<br />
 I recommended both PHP and Java but more favor on PHP <img src='http://www.peterglaeser.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dirk Zander</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-37021</link>
		<dc:creator>Dirk Zander</dc:creator>
		<pubDate>Tue, 15 Nov 2011 19:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-37021</guid>
		<description>selten so einen blödsinn gelesen</description>
		<content:encoded><![CDATA[<p>selten so einen blödsinn gelesen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-33881</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sun, 07 Aug 2011 04:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-33881</guid>
		<description>Hi, 

Well, it is difficult to give a general answer to the question: &quot;java, or php?&quot;. 

I am a java programmer. I know also asp.net very well, various versions, worked with .net 1.1, 2.0 and 3.*

For personal stuff, Java hosting is expensive, .net hosting is either too expensive or too unreliable. Also if you have 20 websites and 19 are with wordpress (php), developing the site number 20 in Java will make the deployment environment very difficult to configure and maintain. 

So for personal purpose I work with php

I see the following  pros:

- Cheap infrastructure
- Reliable solution (at a Java solution peeking daily at the logs to see potential errors is a must,while at php this is not the case). 
- Documentation available everywhere
- Free

However you cannot overlook the cons:

- Weak typing - much more difficult to write the php code than the Java one. Modern editors - like Eclipse PDT I am currently using only partially provide intellisense. 
- Arguable namespace implementation - personally I don&#039;t use namespaces because of that
- C based plugins - you never know what is in store for you, maybe the next version of that fancy php plugin you use will not work, or maybe the windows version will work fine and the unix one will not. On the contrary, Java is full stack - all you need can be embedded as a library in your app, and you know for sure it will work on any valid application server
- Relatively slow language (real time interpreted)

So again, it is a mixed world out there - php is not the best technology available, however it is there and at least personally I have to use it (I wrote some personal stuff in .net and Java and had to rewrite it in php). Java is much better but you cannot use it in 100% of the solutions. 

Personally, for personal projects I am stuck php. Not that I like it - actually I don&#039;t, but here I am working php apps :)</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Well, it is difficult to give a general answer to the question: &#8220;java, or php?&#8221;. </p>
<p>I am a java programmer. I know also asp.net very well, various versions, worked with .net 1.1, 2.0 and 3.*</p>
<p>For personal stuff, Java hosting is expensive, .net hosting is either too expensive or too unreliable. Also if you have 20 websites and 19 are with wordpress (php), developing the site number 20 in Java will make the deployment environment very difficult to configure and maintain. </p>
<p>So for personal purpose I work with php</p>
<p>I see the following  pros:</p>
<p>- Cheap infrastructure<br />
- Reliable solution (at a Java solution peeking daily at the logs to see potential errors is a must,while at php this is not the case).<br />
- Documentation available everywhere<br />
- Free</p>
<p>However you cannot overlook the cons:</p>
<p>- Weak typing &#8211; much more difficult to write the php code than the Java one. Modern editors &#8211; like Eclipse PDT I am currently using only partially provide intellisense.<br />
- Arguable namespace implementation &#8211; personally I don&#8217;t use namespaces because of that<br />
- C based plugins &#8211; you never know what is in store for you, maybe the next version of that fancy php plugin you use will not work, or maybe the windows version will work fine and the unix one will not. On the contrary, Java is full stack &#8211; all you need can be embedded as a library in your app, and you know for sure it will work on any valid application server<br />
- Relatively slow language (real time interpreted)</p>
<p>So again, it is a mixed world out there &#8211; php is not the best technology available, however it is there and at least personally I have to use it (I wrote some personal stuff in .net and Java and had to rewrite it in php). Java is much better but you cannot use it in 100% of the solutions. </p>
<p>Personally, for personal projects I am stuck php. Not that I like it &#8211; actually I don&#8217;t, but here I am working php apps <img src='http://www.peterglaeser.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-26554</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 05 Jan 2011 09:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-26554</guid>
		<description>Most of the java programmer use to say that &quot;enterprise-level, enterprise-level&quot;. Actually they don&#039;t understand what is enterprise-level.</description>
		<content:encoded><![CDATA[<p>Most of the java programmer use to say that &#8220;enterprise-level, enterprise-level&#8221;. Actually they don&#8217;t understand what is enterprise-level.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajnish Gupta</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-15848</link>
		<dc:creator>Rajnish Gupta</dc:creator>
		<pubDate>Thu, 11 Feb 2010 05:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-15848</guid>
		<description>Hi,
  I am M.C.A fresher student. I had started to teach java but i don&#039;t know market position.Someone says php is better than java for job purpose. Please tell me ..</description>
		<content:encoded><![CDATA[<p>Hi,<br />
  I am M.C.A fresher student. I had started to teach java but i don&#8217;t know market position.Someone says php is better than java for job purpose. Please tell me ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saif</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-14882</link>
		<dc:creator>Saif</dc:creator>
		<pubDate>Sat, 16 Jan 2010 03:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-14882</guid>
		<description>My Comment is different, i am waiting for a time where database manages this better then language. once the database performance gets increased most of the programming language can do better jobs.

Its on database we have to give more concentration. Languages are only mediators.

Java and PHP. two are not good.

Why should we want to stick will an intermediate language like this better we can go for C++ or c compiled language . 

Will can give high performance. 

So my conclusion is,
1. Database is the main part need a good optimisation in performance.
2. Me frameworks have to be developed in c++ or c so that other can do web projects in these language. perfectly.
3. Both Database and language should have a good garbage Collection Methodology.

4. Good IDE for developement. with lots of auto generate facilities.

etc..

I am waiting for such a high performance.</description>
		<content:encoded><![CDATA[<p>My Comment is different, i am waiting for a time where database manages this better then language. once the database performance gets increased most of the programming language can do better jobs.</p>
<p>Its on database we have to give more concentration. Languages are only mediators.</p>
<p>Java and PHP. two are not good.</p>
<p>Why should we want to stick will an intermediate language like this better we can go for C++ or c compiled language . </p>
<p>Will can give high performance. </p>
<p>So my conclusion is,<br />
1. Database is the main part need a good optimisation in performance.<br />
2. Me frameworks have to be developed in c++ or c so that other can do web projects in these language. perfectly.<br />
3. Both Database and language should have a good garbage Collection Methodology.</p>
<p>4. Good IDE for developement. with lots of auto generate facilities.</p>
<p>etc..</p>
<p>I am waiting for such a high performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Yeates, Baltimore, MD</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-13901</link>
		<dc:creator>Nick Yeates, Baltimore, MD</dc:creator>
		<pubDate>Wed, 23 Dec 2009 15:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-13901</guid>
		<description>I have heard too many times people give the &quot;php is not scalable to enterprise levels&quot;, &quot;java does enterprise well&quot;. I dont think that I can speak to this first hand. 

What I can say is, that I touched both languages and ultimately chose php for its quicker ramp up, ease of use, ease of reading, no headaches for overhead. Java functions, in the past, were hard for me to lookup, understand. Say I wanted a simple existing function that searches a string for a sub-string. It took me ages to find with java, and the code was ugly to read once implemented. Php I found the function in under a minute of searching its docs, and the code was very understandable.

I was coding very small programs for myself and my work basically, NOT enterprise or professional level. So, I always trusted what others said: PHP doesnt scale. Well, now that I have seen a .php stuck into one of the pictures at facebook.... facebook is the ULTIMATE of scaling. I mean, really you cannot scale to more users than that. There really is nothing currently higher in users that I can think of.

I think that PHP can be easy to use/learn, and dangerous to scale. But, if done right apparently, it can shoot you to the moon.

I am going to learn Python I think. It is a mix between java and php qualities. Python is more heavily object oriented and strict and enherently scalable, yet it too is script-based... it compiles as you run it. No need for go-live or compilation headaches.</description>
		<content:encoded><![CDATA[<p>I have heard too many times people give the &#8220;php is not scalable to enterprise levels&#8221;, &#8220;java does enterprise well&#8221;. I dont think that I can speak to this first hand. </p>
<p>What I can say is, that I touched both languages and ultimately chose php for its quicker ramp up, ease of use, ease of reading, no headaches for overhead. Java functions, in the past, were hard for me to lookup, understand. Say I wanted a simple existing function that searches a string for a sub-string. It took me ages to find with java, and the code was ugly to read once implemented. Php I found the function in under a minute of searching its docs, and the code was very understandable.</p>
<p>I was coding very small programs for myself and my work basically, NOT enterprise or professional level. So, I always trusted what others said: PHP doesnt scale. Well, now that I have seen a .php stuck into one of the pictures at facebook&#8230;. facebook is the ULTIMATE of scaling. I mean, really you cannot scale to more users than that. There really is nothing currently higher in users that I can think of.</p>
<p>I think that PHP can be easy to use/learn, and dangerous to scale. But, if done right apparently, it can shoot you to the moon.</p>
<p>I am going to learn Python I think. It is a mix between java and php qualities. Python is more heavily object oriented and strict and enherently scalable, yet it too is script-based&#8230; it compiles as you run it. No need for go-live or compilation headaches.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Memoks</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-13019</link>
		<dc:creator>Memoks</dc:creator>
		<pubDate>Tue, 01 Dec 2009 11:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-13019</guid>
		<description>&quot;if for example Facebook had been written in Java, hardly any of these optional applications would exist and its viral growth wouldnâ€™t have happened.&quot;

Too right.</description>
		<content:encoded><![CDATA[<p>&#8220;if for example Facebook had been written in Java, hardly any of these optional applications would exist and its viral growth wouldnâ€™t have happened.&#8221;</p>
<p>Too right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Pixton</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-10674</link>
		<dc:creator>Jim Pixton</dc:creator>
		<pubDate>Wed, 23 Sep 2009 17:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-10674</guid>
		<description>good article on java based php framework http://www.ibm.com/developerworks/opensource/library/wa-quercus/index.html</description>
		<content:encoded><![CDATA[<p>good article on java based php framework <a href="http://www.ibm.com/developerworks/opensource/library/wa-quercus/index.html" rel="nofollow">http://www.ibm.com/developerworks/opensource/library/wa-quercus/index.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kappa</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-8405</link>
		<dc:creator>kappa</dc:creator>
		<pubDate>Mon, 27 Jul 2009 07:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-8405</guid>
		<description>@Shah,

use PHP. Java is for very big projects with its advantages of good refactoring. Given the time, you must go ahead with php and use Kohana framework (MVC architecture) for good understanding and practices. This gives you a good understanding of OOP and atleast one Design pattern. 

At a later stage, learn Design patterns in java (particularly adapter pattern), JSF, JPA and you are to market. 

Looking even further, start learning a function/OO hybrid language like Scala which will replace java eventually. (2 years time) 

Cheers,
kappa</description>
		<content:encoded><![CDATA[<p>@Shah,</p>
<p>use PHP. Java is for very big projects with its advantages of good refactoring. Given the time, you must go ahead with php and use Kohana framework (MVC architecture) for good understanding and practices. This gives you a good understanding of OOP and atleast one Design pattern. </p>
<p>At a later stage, learn Design patterns in java (particularly adapter pattern), JSF, JPA and you are to market. </p>
<p>Looking even further, start learning a function/OO hybrid language like Scala which will replace java eventually. (2 years time) </p>
<p>Cheers,<br />
kappa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaime</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-7504</link>
		<dc:creator>Jaime</dc:creator>
		<pubDate>Wed, 08 Jul 2009 19:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-7504</guid>
		<description>I like that java is strongly typed, that way debugging is easier, and always you know what is really happening, without too much hassle.</description>
		<content:encoded><![CDATA[<p>I like that java is strongly typed, that way debugging is easier, and always you know what is really happening, without too much hassle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shah</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-5867</link>
		<dc:creator>Shah</dc:creator>
		<pubDate>Sat, 30 May 2009 16:11:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-5867</guid>
		<description>I have read most of these comments and still not sure to start learning more java or get to know php coding at an expert level. Am actually a masters student. We have been taught JAVA and is very boring when it comes to write codes. After Masters, my intentions to pursue a carrier in programming. Right now, I have to start my final project of web application for a shop and have only 3 months to complete it. Should I continue doing JAVA as I have learned it some how in the past 6 months, or work on PHP for it if it&#039;s more demanding at a professional level.

cheers :)</description>
		<content:encoded><![CDATA[<p>I have read most of these comments and still not sure to start learning more java or get to know php coding at an expert level. Am actually a masters student. We have been taught JAVA and is very boring when it comes to write codes. After Masters, my intentions to pursue a carrier in programming. Right now, I have to start my final project of web application for a shop and have only 3 months to complete it. Should I continue doing JAVA as I have learned it some how in the past 6 months, or work on PHP for it if it&#8217;s more demanding at a professional level.</p>
<p>cheers <img src='http://www.peterglaeser.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian Kennedy</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-5774</link>
		<dc:creator>Julian Kennedy</dc:creator>
		<pubDate>Thu, 28 May 2009 14:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-5774</guid>
		<description>I agree with the two comments above. When looking at enterprize applications, there are other issues which crop up. Like what happens when a low level programmer gets hold of your code. Or when the business needs to develop a complex feature. What about adding the ability to expose functionality as web services in a robust manner, without affecting application availability. Or having accurate debugging and performance statictics.

Having &quot;dirty code&quot; code in your any application is like having cooking oil in your Ferrari engine. And sticking one&#039;s head in the sand with regards to enterprize issues is just shoddy.

Anybody who has worked at the enterprize level should know this. There is nothing wrong with PHP or JAVA. They were built for different reasons. 

Apples and Pears my friend.</description>
		<content:encoded><![CDATA[<p>I agree with the two comments above. When looking at enterprize applications, there are other issues which crop up. Like what happens when a low level programmer gets hold of your code. Or when the business needs to develop a complex feature. What about adding the ability to expose functionality as web services in a robust manner, without affecting application availability. Or having accurate debugging and performance statictics.</p>
<p>Having &#8220;dirty code&#8221; code in your any application is like having cooking oil in your Ferrari engine. And sticking one&#8217;s head in the sand with regards to enterprize issues is just shoddy.</p>
<p>Anybody who has worked at the enterprize level should know this. There is nothing wrong with PHP or JAVA. They were built for different reasons. </p>
<p>Apples and Pears my friend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dwoos</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-4977</link>
		<dc:creator>Dwoos</dc:creator>
		<pubDate>Tue, 12 May 2009 21:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-4977</guid>
		<description>If you need an enterprise-level, high-performance web application, then choose Java.  The fact that PHP is &quot;easy to learn&quot; is not relevant.  The concept of implementing &quot;dirty code&quot; with PHP or any language is flat-out scary.  For large projects, you&#039;d better have expert developers no matter what the programming language.   Also, the previous comments from SVachon are 100% accurate.

$recommendation =&gt; $java;</description>
		<content:encoded><![CDATA[<p>If you need an enterprise-level, high-performance web application, then choose Java.  The fact that PHP is &#8220;easy to learn&#8221; is not relevant.  The concept of implementing &#8220;dirty code&#8221; with PHP or any language is flat-out scary.  For large projects, you&#8217;d better have expert developers no matter what the programming language.   Also, the previous comments from SVachon are 100% accurate.</p>
<p>$recommendation =&gt; $java;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SVachon</title>
		<link>http://www.peterglaeser.com/php-vs-java-and-why-i-hate-java/comment-page-1/#comment-3305</link>
		<dc:creator>SVachon</dc:creator>
		<pubDate>Sat, 21 Mar 2009 12:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterglaeser.com/?p=182#comment-3305</guid>
		<description>Your article is more on interpreted vs compiled languages. In fact, java is not compiled to machine code but into bytecode to be interpreted by the jvm. And I don&#039;t think it takes a long time to compile java code, but I admit that it is longer than not having to compile at all. However, you don&#039;t have to compile your Jsp pages. Pages and classes can also be hot redeployed individually on the fly, hence you &quot;can change the website instantly and seamlessly so that deployment isnâ€™t really a big issue.&quot;
I think one of the main advantage of php over java is how easy it is to get an operational  lamp stack so you can start working. 
And finally I don&#039;t think that showing as 404 status error page proves anything about php beign better than java. This is a developer issue, all sites can have broken links.</description>
		<content:encoded><![CDATA[<p>Your article is more on interpreted vs compiled languages. In fact, java is not compiled to machine code but into bytecode to be interpreted by the jvm. And I don&#8217;t think it takes a long time to compile java code, but I admit that it is longer than not having to compile at all. However, you don&#8217;t have to compile your Jsp pages. Pages and classes can also be hot redeployed individually on the fly, hence you &#8220;can change the website instantly and seamlessly so that deployment isnâ€™t really a big issue.&#8221;<br />
I think one of the main advantage of php over java is how easy it is to get an operational  lamp stack so you can start working.<br />
And finally I don&#8217;t think that showing as 404 status error page proves anything about php beign better than java. This is a developer issue, all sites can have broken links.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

