views:

1011

answers:

8

If I were to start an ecommerce store, which language would you suggest I start with? Python or PHP?

And would it be wise to use Python for an ecommerce site in favor of PHP? PHP has lots of shopping carts, both open source and commercial.

Is Python the future of Web Development ?

Edit:

I would like to clear out that i am not asking for Shopping carts solutions and links to them.

A: 

PHP's memory management issues are overlooked because it's a language designed for the web, where long lasting processes aren't a problem.

This is the main reason I never favor PHP.

Luca Matteis
"the web, where long lasting processes aren't a problem." - This was true in the CGI days, but not anymore. Web applications are among the longest lived processes there are.
Jason Baker
How does this address the op's question?
Bob Somers
"Web applications are among the longest lived processes there are." - bullshit.
Luca Matteis
@Jason Baker: still, PHP tasks are forcibly terminated just like CGIs. the programmer doesn't have to plug all leaks, because the code won't run for long.
Javier
-1 because this is totally irrelevant to the OP's question.
musicfreak
Have you digged into what Python is doing? I bet python isn't as perfect as php isn't. However, they both are good enough as long as you know what you are doing.
bLee
Honestly, you're right: PHP's memory management in long-running, non-web contexts is sub-par, and I say this as someone who's been employed writing PHP full time for 4+ years. However, the OP didn't say anything about using PHP in a non-web context.
Frank Farmer
+4  A: 

Whatever language you know better. I think this should be the first criterion.

grigy
+1  A: 

I don't think you'll get a good answer to this one. Everyone uses php, and python ecommerce is probably mainly in-house built. If there was a popular python solution (something like django for web platforms) - then I doubt there would be any discussion.

However - as of now I have yet to see a good all-in one system. On the upside, using python you can easily create something simple for your business.

As there are not going to be a lot of new drastic revisions to the Python language in the future, we can expect some good apps to come out soon. My bet today is on django apps.

Using php is probably good in the short run. Not that I would ever go back to it...

PS: I forgot about another one: ASP.NET (mvc?). If you are feeling particularly adventurous, they have loads of "controls" and products. However it all confuses me a lot.

drozzy
+1  A: 

I'd think that the overall implementation of any solution you choose (whether off-the-shelf or custom built) will be more important than any inherent speed differences between Python and PHP.

There are some truly shocking examples out there so it's worth doing research based upon your exact requirements. A shopping cart itself is a relatively simple object with standard functionality so if this is for a small-medium size store I'd go for whatever you feel more comfortable with.

dxbmatt
A: 

I would say that PHP carts are probably more mature and have more features than the Django ones. (Note I've only had experience with 2 PHP shopping carts and no Python ones)

On the other hand, PHP is a poorly designed language and is usually slower than Python in benchmarks. Depending on your needs, a Python shopping cart may suffice.

Unknown
+2  A: 

I'm personally a fan of Python, specificity with Django for the web. For ecommerce applications there is the Satchmo Project.

defrex
+2  A: 

Honestly, the languages don't really matter.

Both PHP and Python are capable to develop great websites and there are many examples for that.

bLee
+1  A: 

This is a challenging question to answer. If you are going for an off the-shelf package you're going to need to use PHP - this then gives you a range of packages including Magento, osCommerce (yuck) and so on.

If you are planning to develop a bespoke, or partially bespoke solution, then you probably want to look at using a framework to cut down the amount of code you need to write from the outset. Again, there are various options for each language.

Python and Django has a web framework for satchmo that could really take the legwork out of an ecommerce build whilst giving a level of flexibility that you usually don't get from an off-the-shelf package.