Java J2EE Portal
Enterprise Java Station
J2EE curve
Java News / Articles
Java News / Articles
JavaOne Update - JavaFX, Java On Linux & Oracle JSF
Enterprise Mashups – Opportunities and Challenges!
Offline Ajax Applications Using Google Gears
Processing...
Buy Java, Deals On Software Technology Store
Click here for great deals on computers, laptops, software and books
When Java? When PHP? PDF Print
Written by Content Team   
Apr 27, 2005 at 08:46 PM
Comments

Comment by Guest on 2005-05-05 20:16:52
PHP's power lies in its simplicity. In an effort to match Java and be so called enterprise ready, unfortunately we will soon see things like patterns, frameworks, complex practices that will be termed as "best practices" even in PHP. 
 
Then PHP will lose its edge over Java as it would then be just as complex as the unnecessary and complex mess that exists in Java today

Comment by Guest on 2005-05-06 00:03:15
We use both Java and PHP. Java is great for the heavy lifting but the development cycle is so slow. PHP is very easy...AND FAST. We sometimes mock up a new app in PHP and then rewrite in Java once 90% of the requirements are ironed out. We envision running PHP for GUI with Java objects. Hopefully this will be a good marriage. Please don't ask about JSP - the bane of web programming!

Comment by Guest on 2005-05-06 13:02:55
I find it odd to compare PHP to JSP, I'm statistics guy I see here and everywhere else a lot more PHP people. Popular opinion always rules, PHP is a stronger majority, but that is not what we are trying to compare, we are really asking is PHP extensible enough to take on the strange variety and mischmasch that occurs in business. Even if it can how quickly and cheaply can we do this. For a while I was using php in it's original procedural manner, not using any packages etc. The code looked like horrendous, but lately I've using the "best practises" that have been created, I still have the same performance, but more power and better yet even my web designers can understand what is going on in the (x)html pages. I'm also planning a major increase in the market I produce for, not just quickie shops and forums but also business information needs and specialized technology incorparation. So is PHP enterprise ready, I think so, is still great for quickie shops and forums, definitely, is JSP better, well if it is then a lot of people here have been walking down the wrong path

Comment by Guest on 2005-05-07 02:29:48
For last two years I worked on a web application which is written in PHP, with custom built Struts-like framework and now working on another Web application (J2EE with struts framework), tell you what, I do not feel much difference when it comes to being messy. Both are equally messy. 
 
However I still feel PHP is easier to setup, develop and fix then J2EE.

Comment by Guest on 2005-05-09 12:56:25
Its also easy to write messy code in ASP.

Comment by Guest on 2005-05-09 23:20:51
I have about 8 years of java experience and 5 years of PHP experience. I love working in both langauges.  
 
If development time is critical and the web app doesn't need to integrate with existing code then PHP is a very good choice. 
 
Using PHP 5 can help a lot with code maintenance and messiness. I now use classes (and exception based error handling) for the majority of my PHP code. The OO abilities of PHP is not as powerful as Java but for web based apps it has all of the important things you need. 
 
One last thing I like about PHP... when you make a change to a file and re-fresh the web page, the change is instantly seen. There's no JSP to recompile or anythng to re-deploy. This is a small time saver but its something I've always liked about PHP. 

Comment by Guest on 2005-05-10 04:01:41
i dont think PHP was a messy programming language its very cool to use especially when you was able to integrate PDF. Its not PHP that was messy its the person who codes it who was messy. Good for you to understand what was messy in others people code because thats a good sign that you are being an OO coder

Comment by Guest on 2005-05-10 14:04:04
I develop since PHP 2 and I have seen all kinds of messy code, expecially by consultants. 
Same for Java, you can code awfully too. 
 
In the end it's the coder who does the mess, not the tools he uses. Expecially with PHP 5 the OO programming is modern and comparable to Java. 
 
I'd say that PHP is very good at getting the job done and fast (this is really a big push to use it) and is good at integrating heterogeneous applications, while Java is "heavier" to overall manage and deploy (and costs tend to be bigger) but is good at integrating at a finer level with legacy applications.

Comment by Guest on 2005-05-11 15:10:19
I have seen a lot of commands about PHP and Java.. 
I am a beginner ...

Comment by The Cowardly Visitor. on 2005-05-12 03:11:10
I don't see anything here about developing regular applications and their web equivalents in parallel. This is not possible with PHP because you can't create a regular application with PHP. Another thing is PHP code is obsolete after 1 year. Java code will be here forever because the language was well planned and by an absolute genius. If you develop in PHP you'd have to change your code to make use of new features as they become available. This costs money.  
 
I hate people who use PHP and create wrapper functions and template systems and then call that MVC. PHP is the template system. When you wrap a template system with a template system you are an idiot who doesn't know java.



Add This Feed Button

Enter your Email


Java Expert Interviews
Debu Panda - Oracle
Oracle Application Server is the fastest
Mukesh Hegde NCStudio IDE
Java IDE in a brand new avatar. Making development server centric.
ChristopherDuncan
Programmers lose because they are unwilling to learn any skill beyond the technical
Processing...
Go to top of page  Home |
SiteMap

Copyright 2004 to 2008 Rightrix Solutions. All rights reserved. All product names are trademarks of their respective companies. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. Rightrix Solutions and IndicThreads.com are independent of Sun Microsystems, Inc.

Views expressed at IndicThreads.com reflect the views of the authors alone, and do not necessarily reflect those of IndicThreads.com. IndicThreads.com and it's authors are not responsible for reader comments and opinions.

Enterprise Java J2EE JEE Portal >> IndicThreads.com