Ask HN: Python or PHP?
Which language do you prefer and why?*
Python or PHP?
* I am not trying to start a language flame war here. Just trying to see how everyone feels and what their reason is for using their language of choice. I have been using PHP on and off for years but recently learned Python and am curious if it's worth knowing one over the other.
15 comments
[ 3.2 ms ] story [ 54.8 ms ] threadThat said...I'd never use PHP for anything I had a say in.
If you just want to do a small webapp, Flask is awesome, for a larger more complete framework you should go with Django.
If 'cost' is your absolute and only criteria, the answer is probably PHP. If place any other criteria above cost for language choices, the answer is probably Python.
Usually these questions involve more, and are harder to answer, but this one's generally pretty easy. Python.
I mostly use Python these days, and yet I'd have to disagree strongly that easy deployment is PHP's only advantage. Outside of places like Silicon Valley it's a lot easier to find PHP programmers than Python programmers. On top of that many of the PHP programmers will be relatively cheap to hire. And you can get everything from novice developers to senior developers with a lot of experience.
I am from New York and I really don't hear people talk about Python much. For the short amount of time I've been using Python it has made me want to ditch PHP.
Google, Youtube, Reddit, Yahoo, Quora, Dropbox, Spotify, Hunch, RedHat, Pinterest, Disqus, Mozilla, Instagram, Punchfork, The Onion (probably DC, not valley), etc.