TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Python or PHP?

4 点作者 abhishekdelta超过 13 年前
I've been a web developer for a long time but I'm still stuck with this one big question. I really love PHP, esp. its fast overall development and deployment cycle. But people I meet have been arguing with me to switch to Python, which I'm yet unsure of. I remember having seen somewhere that Python is even less efficient performance wise. So why should I (if at all) move to Python?

3 条评论

knieveltech超过 13 年前
You'll learn something, additional career opportunities (maybe) and improved prestige among the developer community (guaranteed) come to mind.<p>It never hurts to have more than one language in your quiver. If you're looking for work and are having a hard time finding a PHP gig that suits your fancy, having some other language dialed to the point you can code in it professionally increases your odds of finding (and keeping) a job.<p>Of course, I make a good living coding PHP for high end websites, and have been for years now. I just don't talk a whole lot about the language that pays the bills since invariably mentioning PHP is your primary language leads to a torrent of hot air from other developers who use "cooler" languages. Personally, I think it's all bullshit and if folks want to play "cool kid" with their language of choice, that's fine, but don't expect me to play along.<p>Fun fact: the highest paid programmer I've met to date coded exclusively in COBOL. Think monster 1099 rates consulting on legacy mainframe code overhauls.
评论 #3029646 未加载
zoowar超过 13 年前
General performance comparison. <a href="http://shootout.alioth.debian.org/u64q/which-programming-languages-are-fastest.php?calc=chart&#38;python3=on&#38;php=on" rel="nofollow">http://shootout.alioth.debian.org/u64q/which-programming-lan...</a>
评论 #3030188 未加载
maratd超过 13 年前
Stick with PHP. You already know it. With PHP-FPM you can easily scale PHP to multiple cores and have a stable FCGI interface. There is nothing Python can offer you that PHP can't.