Live data from Hacker News

Ask HN: Between PHP and Python, which one is better for web programming purpose?

news.ycombinator.com

11–12 of 12 posts

Re: Ask HN: Between PHP and Python, which one is better for web programming purpose?

#11
Short answer: If you love coding, learn Python. If making web apps is just a means to an end for you, learn PHP (and a framework like Code Igniter).

Long answer: If you want to code web apps primarily for the forseeable future, go with PHP and a great backend framework like Code Igniter.

If you want to eventually code larger scale backend pieces, and grow into other areas of development, go with Python.

I love Python, but have a renewed loss of skepticism for PHP given how well CodeIgniter has performed for some of our major web apps. I personally feel Python doesn't feel as inherently interconnected with web concepts as PHP, so there are more complications/hurdles to get past in order to build a 100% functional/pretty web app. But you'll be much better off long-term for learning Python if you're going into sysadmin/backend/app development.

I love coding, so I learned both. Good luck!

Re: Ask HN: Between PHP and Python, which one is better for web programming purpose?

#12
post #9

That's a tough question, since they are the two languages I detest the most. I'd go with python/django, simply because it's better than php/mkdir.

Can I know your choice of language in web programming, and why?

Ruby; It has the fastest idea-to-working-code rate out of any other language I've used.
Post reply on HN