title: JavaEE vs PHP - why so many people thinks Java is better?
body: <p>I need to valorate what technology use for a web project, the team is composed by 4 developers and the time of the project is 1 year.</p>
  
  <p>I'm more familiarized with php but the client is asking me to do it with JAVA EE.</p>
  
  <p>I always have the same perception with Java and its frameworks:</p>
  
  <ul>
  <li>So much xml and class in order to do simple things. In codeigniter I've to use 3 files (model, view and controller) with hibernate + spring + JSF I need more than 10 files!!!</li>
  <li>An abusive use of the server. The javascript code lose importance and it's not good nowadays. Of course we can add javascript code but It seems "java web guys" prefer do the stuff on the server instead of the client.</li>
  <li>Not good-looking application. Richfaces seems like a web of several years ago.</li>
  <li>When I see a java application like liferay, alfresco, they looks heavy and very slowly. </li>
  </ul>
  
  <p>I think I can be a little confused because lots of people and big companies continues using JAVA for the web. Why? it's about integration?</p>
  
  <p>On the other hand Java is faster than PHP, but JAVA's servers need lots of memory (more expensive). In a server with many request we can improve with a language like php with bigger time per process and less memory per process because the server never is collapsed because of memory. Sometimes a JAVA server could collapsed because of memory and the average of response time in a real production environment would be bigger than php.</p>
  
  <p>I'm really pleased with Codeigniter, why so many people thinks Java is better?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Alberto</p>