LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2008, 03:42 PM   #16
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled

Quote:
Originally Posted by marquardl View Post
On the other hand you have PHP. Developed by enthusiasts, freelancers, open source supporters and all those nice people that are called by corporate business people simply as "suckers" or "loosers". They wouldn't bet their career on losers. They bet it on JAVA - "this must be good, it's even a ticker symbol". "Ever seen PHP on the Dow Jones Index? No? Then it must suck!"
The same thing said in another way, open-source developers have to be self-motivating and not financially motivated, whom to those who need to be financially motivated appear to have a lack of commitment, seriousness, or education. But you are right that Sun could "take their Java and go home" and that no one in particular could do that with PHP.
ta0kira

Last edited by ta0kira; 04-27-2008 at 04:46 PM.
 
Old 04-27-2008, 04:07 PM   #17
danboland
Member
 
Registered: Feb 2006
Location: NJ, USA
Distribution: Debian
Posts: 72

Rep: Reputation: 17
There is nothing wrong with using php on the enterprise level (ie big companies) and php does commercial backers ( particularly the guys that write the compiler: www.zend.com).

The reason why some big companies would perfer to use Java is probably the same reason that a lot of companies use asp.net, they have most of there other systems running using Java, and it makes more sense to extend these apps with jsp then starting them over from PHP.

as any comp sci major can tell you, What it comes down to is the task at hand. If your creating a simple web app, i wouldn't see any reason to use anything other the php. However, if you are creating a huge application (or small application on various frameworks and for different purpose that ll need to communicate and assist each other) something like JSP would make sense.

I've scene and developed huge applications in php, so its scaling is not a problem. What it does lack though is being usefulla s a general language, for example i recently had to create a web spider and indexer and originally planned on doing the front end and backend in PHP, but when it came time to start coding and testing, the back end was quickly switched to Perl. But this doesn't mean perl is better then PHP either, I spent 6 years as a Perl programmer, then learned PHP and have never even thought of using perl for a web application again.

I've set up jsp before with tomcat, it wasn't all the difficult. Most server comes as pre configured LAMP servers so running (or installing) php tends to be simplifier, but JSP is not at all hard to configure and set up.


Dan
 
Old 04-27-2008, 09:31 PM   #18
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
In a big-company / big-iron setting, "the web site" is usually just a portal to the software-stuff that actually runs the business. It therefore needs to "play well with others."

One of the erstwhile appeals of Java is that you can use it to create objects ("servlets") that can interact with your back-end systems, and having created them you can then deploy them ... in your public-facing website or elsewhere.
 
Old 04-28-2008, 06:29 PM   #19
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Rep: Reputation: 15
Sun take their java and go home... I didn't think that I would ever hear myself weighing in on Java's side, but is there a lack of committment behind java? I don't think so. There are too many academics who praise Java to the skies, too many firms that rely on Java and who would take over compiler maintenance in a twinkling of an eye if Sun looked like dropping it. Granted, there would be an audible clunk as java maintenance hit the floor, which wouldn't ever happen with PHP where there is a surplus of people trying to get into the elite ranks of the PHP maintainers (and can I have a badge with that too please?), but Java would be picked up again pretty quick.

Regards, Tichbein.

P.s. that is not to ridicule the PHP elite. They do a good job, hats off to them.

Last edited by Tischbein; 04-28-2008 at 06:30 PM.
 
Old 06-20-2008, 04:19 PM   #20
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
For scalabilty, Java dudes don't only use pure servlets, they use j2ee features such as EJB, JMS, etc. Most of the time you probably won't be using "pure" JSP or servlets too, but a framework such as Wicket, JSF, Struts or Spring.

Personally I would never use PHP for a high traffic website. Generally PHP programmers have bad programming habits(like average Visual Basic/ASP programmers) even if there are many good PHP developers. Most of PHP programmers I've met sucks or are "average programmers" (bad API design, etc.).

On lots of blogs I've seen post about how one learned to program better in PHP by looking at ruby on rails' code(I would say it's about time...).
 
Old 06-20-2008, 08:10 PM   #21
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
In the business decision of "what language to use" for this-or-that project, we first must establish the simple observation that no programming-language tool is ipso-facto "better than" nor "worse than" any other.

As a practitioner in this curious craft, you must be fully prepared to "land four-paws-down" in whatever programming environment your employer|client may select, or have selected.

The reasons why said party may have made a particular choice at a particular time are legion ... and most clients actually have many technologies in-play at the same time. If your objective is to remain gainfully-employed, both with regard to present technologies and technologies that have not yet been invented, you cannot "pick sides." Instead, you must forever adapt.

SNOBOL, anyone? COBOL? SPL? Forth? Yep... still know 'em....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP - JAVA Communication stranger_6_7 General 1 03-14-2008 04:20 AM
PHP vs Java desarrolladores Linux - Software 7 06-25-2004 09:29 AM
Java in PHP munna_502 Linux - Software 0 04-11-2004 03:57 PM
apache with php and java gigya Linux - General 0 01-30-2004 05:07 AM
php with java j-ray Linux - Software 0 09-14-2002 08:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration