On CHOW: Are five meats enough for pizza?
BNET Business Network:
BNET
TechRepublic
ZDNet
TalkBack 20 of 21:
Next »
« Previous
Java and PHP both have their places...
Java and PHP both have places. IBM is wise to invest in a set of tools like PHP for doing web programming for small and medium size businesses.

It isn?t to say that PHP can?t be used to doing complex web development work. Because it can. Nor is it to say that Java can?t be used for doing simple dynamic web site development, because it can as well. But both patforms have strengths that turn into weaknesses for doing some tasks.

Java, or more specifically J2EE, is the platform of choice for doing any ?enterprise level? web development. The combination of using JSP pages with custom tags for the presentation, servlets as controllers, and Session Beans as business objects is both powerful, scaleable, and easy to maintain. That?s not even talking about features like JDBC, or interacting with queuing systems like WebSphere MQ. How can you do MVC with PHP? Java has Struts. I don?t see a common MVC framework for PHP. J2EE has a lot of features in its framework that is hard to beat by any other framework out there, let alone just using a scripting language like PHP. It?s not to say that you can?t do an enterprise application using PHP, it just becomes a lot harder to develop, and a lot harder to maintain. Last time I checked, PHP couldn?t access any queuing systems (though it?s easy to connect with a database).

PHP on the other hand does not have any complex deployment descriptors like JSP and servlets. There is no WAR files to deal with. Nothing to compile. Just write the script and put it on a server. Done deal. That?s great for doing small task. There is far less overhead with PHP than J2EE. You can do the same things with J2EE technologies like JSP and servlets, but it?s going to be more of a pain. For all the flexibility that J2EE offers, you pay for it with complexity. PHP does not have this weakness.

Like I said, PHP and J2EE both address separate needs. They CAN work together however. You can start off with applications that are written with PHP. Then as your need grows, you can start to offset PHP with J2EE. PHP can call Java Ojbects. So in theory, you can use a PHP page to call a EJB or some other Java class. So it?s possible to start off using the ease of use that PHP give you, then branch out to J2EE as your application becomes more complex in scope.

I wouldn?t be surprised to see IBM intergrate PHP into WSAD, or coming out with an express version of WSAD to target PHP developers. They already have an Express version of WebSphere, it just doesn?t have an EJB container! J
Posted by: morgande   Posted on: 02/28/05 You are currently: a Guest | Members login | Terms of Use

Alert moderator to an offensive message

Subscribe to this discussion via Email or RSS

Not surprising. A natural move!  Wagadonga | 02/24/05
Please Pay Attention  nucrash | 02/25/05
Um...  jalefkowit | 02/25/05
The right tool.  Anton Philidor | 02/25/05
PHP is...  maxo_z | 02/25/05
You've been had if you really run that on a mainframe  JJ_z | 02/25/05
Well  maxo_z | 02/25/05
Funny how little words will confuse the issues...  drobert_bfm | 02/25/05
Who needs debugging?  rapson | 02/25/05
I think that IBM smells blood here.  DonnieBoy | 02/25/05
Efforts also keep Sun in check  FilledOut | 02/25/05
Most of the open source projects that IBM supports don't hurt Sun.  DonnieBoy | 02/25/05
Of course they smell blood  Linux User 147560 | 02/25/05
Ah yes. how nice of IBM.  vdraken | 02/25/05
It's a great reinvestment into itself  FilledOut | 02/25/05
What planet are you from  ShadeTree | 02/25/05
Good day, planet earth here  FilledOut | 02/26/05
The won't be able to put the genie back in the bottle.  DonnieBoy | 02/25/05
Why php for small projects?  Len Rooney | 02/25/05
Java and PHP both have their places...  morgande | 02/28/05
Re: Java & PHP both have their places  jezter~ | 02/28/05

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
advertisement
Click Here

SmartPlanet

Click Here