Hacker News new | ask | show | jobs
by smt88 4164 days ago
I've used both, but I can't answer this without knowing what you want to use it for.

I don't know that I've ever heard anyone say that they prefer PHP over Python, so I doubt you'll get that response on here.

I'm honestly not a huge fan of either. Are you deciding whether to learn Python? What you want to use going forward?

Honestly having 10+ years of PHP experience probably makes it a hands-down winner (for you personally) in terms of productivity. It'd be a while before you'd see any real productivity gains from Python.

That said, there are maintainability considerations for each language, and Python wins in some of those categories.

1 comments

> I don't know that I've ever heard anyone say that they prefer PHP over Python

I hear it all the time. Primarily by polyglots who are interested in prototyping things. I use both, I prefer PHP and I'm increasingly aware that people aren't learning PHP rather than watching it evolve past Python.