TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-05-2009, 04:22 PM   #1 (permalink)
The Acquainted
Inquisitive 
 
Join Date: Jul 2005
Location: UK
Posts: 121
Thanks: 41
Brook is on a distinguished road
Default Best language for large web applications?

The other thread about Java prompted me to start this one.

So for busy websites, let's say 5 million unique visitors and 50 million pages a month, which is the best language for your web app?

Python?
Java?
PHP?
Other?

Also, would be helpful if you could say how easy/difficult your choice is to learn too!
__________________
PS3 Forums on GameSlurp - the site for gaming fans!
Brook is offline  
Reply With Quote
Old 04-05-2009, 04:26 PM   #2 (permalink)
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

PHP & ASP.NET would be your best choices in my opinion.
Enfernikus is offline  
Reply With Quote
The Following User Says Thank You to Enfernikus For This Useful Post:
Brook (04-12-2009)
Old 04-05-2009, 04:36 PM   #3 (permalink)
The Contributor
 
WebSavvy's Avatar
 
Join Date: Mar 2009
Location: Springfield, IL USA
Posts: 75
Thanks: 3
WebSavvy is on a distinguished road
Default

Python is also a good choice. Lots of really mission critical sites use python. Huge learning curve from what I understand, though. I don't know any python myself.
WebSavvy is offline  
Reply With Quote
The Following User Says Thank You to WebSavvy For This Useful Post:
Brook (04-12-2009)
Old 04-05-2009, 05:06 PM   #4 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

If you're really going to be thinking about "large" web applications, the language used for the web frontend is the least of your concerns. Any of the languages mentioned can easily handle the traffic that you gave without batting an eyelid (if they had eyelid to bat).

As for which language is easiest to learn, languages are easy. Programming concepts take the longest to learn, adapting those into the specific syntax of a language is fairly trivial.
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
Brook (04-12-2009)
Old 04-12-2009, 01:16 AM   #5 (permalink)
The Contributor
 
dschreck's Avatar
 
Join Date: Nov 2007
Location: California
Posts: 82
Thanks: 0
dschreck is on a distinguished road
Default

Quote:
Originally Posted by Salathe View Post
As for which language is easiest to learn, languages are easy. Programming concepts take the longest to learn, adapting those into the specific syntax of a language is fairly trivial.

I agree.

Lots of large sites use different languages.

YouTube uses python, Hi5 uses Java, Microsoft uses... well, you can guess.

PHP can scale just as well as those other languages. You just need to correct hardware and the correct know how.


I'd still stick with PHP if i was aiming for 5 million unique visitors a day. I've seen it scaled up to that level, and PHP programmers are a dime a dozen - you usualy just have to train them a little.

If I had to go with a runner up, I'd say python - simply because it doesn't require tomcat.

Anytime you have to use Java, you have to use the java virtual machine. Yes, there's way to tweak it out so it's cheaper and quicker to run, but you're still not running in native. It requires another instance to run after you've compiled it to byte code. So you've pretty much lost the only advantage that Java had, which is that it's not a scripting language.

Idealy, if I were to create a site that was expecting 5 million daily,(150million monthly) - I'd use all three languages, along with Memcache, Apache (stripped down to something similar to yapache), and MySQL 5. But the bulk of it would be PHP.


Just as a quick edit:
It's funny that you ask which is easier to learn, as they all use different syntax.

PHP and Python are quick to pick up, Java takes a little know how on how to set up your tool chain, and again, it's jut another language. You can pick it up just as easily as any other language.

And like I said, they're all different styles of syntax.

I personally know, and have used in production, all three languages. I think the most difficult was Python, only because I wasn't used to that method of 'elegant' syntax.
__________________
Where I Ramble: http://www.iwilldomybest.com/
What I do: Zynga Game Network
Senior Software Engineer at CityVille

Last edited by dschreck : 04-12-2009 at 01:30 AM. Reason: adding ranking of languages
dschreck is offline  
Reply With Quote
The Following User Says Thank You to dschreck For This Useful Post:
Brook (04-12-2009)
Old 04-12-2009, 01:47 AM   #6 (permalink)
The Acquainted
Inquisitive 
 
Join Date: Jul 2005
Location: UK
Posts: 121
Thanks: 41
Brook is on a distinguished road
Default

Some great answers everyone :)

Python does appeal to me somewhat - maybe it will be the second language I learn, after PHP :)
__________________
PS3 Forums on GameSlurp - the site for gaming fans!
Brook is offline  
Reply With Quote
Old 04-16-2009, 09:22 PM   #7 (permalink)
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default

Facebook also uses PHP. Ad they must get more than 5 million uniques a day surely?
Sam Granger is offline  
Reply With Quote
Old 04-16-2009, 10:51 PM   #8 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Like Salathe said, it doesn't really matter which one you use, if you use it right.

Quote:
As for which language is easiest to learn, languages are easy. Programming concepts take the longest to learn, adapting those into the specific syntax of a language is fairly trivial.
This is for the most part true, but I know from experience that C++ is a lot harder than C#!
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 04-16-2009, 11:13 PM   #9 (permalink)
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

You probably want to look into load balancers if you think you're going to get that many hits daily....
allworknoplay is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Injection and mysql_real_escape_string Durux General 61 01-29-2013 12:20 PM
language converter in php rupam_jaiswal Advanced PHP Programming 2 09-01-2008 07:54 PM
Applications Developer at UNC-Chapel Hill Dave General 0 04-22-2008 09:39 PM
Did I choose the wrong language? karq The Lounge 18 01-28-2008 05:04 AM
What language are you coming from? AlEast General 19 07-24-2005 08:53 PM


All times are GMT. The time now is 07:05 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design