Search the web
Sign In
New User? Sign Up
djug-discuss · Denver JUG Discussion Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Which is better - Java or PHP?   Message List  
Reply | Forward Message #524 of 658 |
RE: [djug-discuss] Which is better - Java or PHP?

When you are not programming in an ivory tower, you need to consider what everyone else in the organization is using. Why? Continuity, support, and consistency. If your organization has built their apps around LAMP, then you should do so as well. Think about it. What happens when you are on vacation and code maintenance is required? Who is going to do emergency code changes if you are the only one using the language? What if you change positions or jobs? Who are you going to hand development off to if no one else can understand your code? How about development and documentation standards? Different languages are well, different. Your code, comments, build scripts, etc. may be organized differently for PHP than for Java. What about testing/QA? If your organization has purchased testing tools and developed standards around PHP...will they(the testing group ) be able to adequately test your code before it goes into production?
 
 
While you should be free to try different technologies in order to evaluate them, don't shoot yourself ( or your company ) in the foot by being a loose cannon by doing things differently than everyone else.  If you really want to use Java, perhaps you should use it to prototype a solution as a way to introduce it into your company's environment.
 
Notice how I avoided the argument about which language is better. There is not a global answer for that one. Its whatever fits your and your employer's needs the best at the moment.
 
 
Regards,
 
 
 
John A. Gooch, SCJP
Systems Administrator 
Enterprise Management Systems 
EchoStar Satellite L.L.C.
9601 S. Meridian Blvd.
Englewood, CO  80112
Desk: 720-514-5708
"The time to repair the roof is when the sun is shining." -John F. Kennedy
 


From: djug-discuss@yahoogroups.com [mailto:djug-discuss@yahoogroups.com] On Behalf Of Frederic Jean
Sent: Saturday, July 14, 2007 9:05 AM
To: djug-discuss@yahoogroups.com
Subject: Re: [djug-discuss] Which is better - Java or PHP?

It depends :) It depends on the developers involved, the problem that is being solved, how complex the web site or application is going to be. In all fairness, us Java developers tend to use our sledgehammer to do just about anything and look down on those who may have chosen a better tool for a specific job. Even if it was an accident.

Here are some areas where Java does a better job:
  • Integration between multiple systems.
  • Tooling is better on the language side for Java.
  • Java based frameworks tend to promote a better separation of the model, view and controllers. This will vary based on the developers involved. You can have well separated PHP. I have witnessed horribly mangled Java applications.
I do think that PHP (and LAMP in general) has a lower barrier to entry than Java EE. There are a lot less concepts and languages to learn. This makes it attractive to individuals that come from the design side. They just need to add some tags and a little logic in their web page to make it dynamic. Java EE is big and scary. We forgot it because we grew into it.

My recommendation would be for you to try writing a smallish PHP application. This will help you get a taste for the language and the associated frameworks. You may actually like it. And it will make you more marketable.

Fred

oren.livne wrote:

Dear All,

I am a Java web developer and I've been hearing many objections in my
organization to using Java. My
department has been using Apache, PHP and MySQL for a long time.
Personally, I don't know any PHP
and like programming in Java, so I can't tell which is better. I tried
to search the Internet but came up mostly
with articles about why PHP is better than Java, because it's simpler
and scales at least as well. If you think
Java is better, could you kindly give me some arguments to share with
others in my department and maybe
a reference or two to back them up?

Thanks so much in advance,
Oren

--
--
======================================================================
"Every compilation or run-time error in your code is a reflection of
some programming misconception. Therefore, upon finding an error, ask
yourself: 'What more do I have to learn about programming to prevent
this error from happening again?"
-- O.E.L.
----------------------------------------------------------
Oren Livne, Ph.D.
Research Assistant Professor of Mathematics
RUReady Software Architect

Academic Outreach and Continuing Education
1901 East South Campus Dr., Room 2197-D
University of Utah, Salt Lake City, UT 84112-9399
Tel : (801) 581-6831 Cell: (801) 631-3885 Fax: (801) 585-5414
Email: olivne@aoce.utah.edu Web: http://ruready.net/oren
======================================================================


--
Out of my mind...


Mon Jul 16, 2007 2:09 pm

John.Gooch@...
Send Email Send Email

Forward
Message #524 of 658 |
Expand Messages Author Sort by Date

Dear All, I am a Java web developer and I've been hearing many objections in my organization to using Java. My department has been using Apache, PHP and MySQL...
oren.livne
Offline Send Email
Jul 14, 2007
12:34 am

If you have a bunch of PHP developers in your organization, PHP is probably a better tool. No reason to make developers dispassionate about their jobs. ;-) ...
Matt Raible
matt_raible
Online Now Send Email
Jul 14, 2007
2:36 am

It depends :) It depends on the developers involved, the problem that is being solved, how complex the web site or application is going to be. In all fairness,...
Frederic Jean
freddyjean23
Offline Send Email
Jul 14, 2007
3:05 pm

In case you want to try an MVC framework in PHP: http://www.cakephp.org/ . It's a lot like Ruby on Rails. Calen Calen Legaspi...
Calen Martin D. Legaspi
calen@...
Send Email
Jul 15, 2007
9:56 am

When you are not programming in an ivory tower, you need to consider what everyone else in the organization is using. Why? Continuity, support, and...
Gooch, John
John.Gooch@...
Send Email
Jul 16, 2007
2:20 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help