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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Is PHP still relevant in 2021?

7 点作者 karakanb超过 4 年前

2 条评论

jbreckmckye超过 4 年前
Relevant for what? The question isn&#x27;t really complete.<p>Is PHP still a language in use, should I support it if I build tools or platforms for programmers? Sure. It&#x27;s in use in many places.<p>Is PHP still a language worth learning if I intend to do agency style web development? Probably yeah. It still has a high showing in that domain.<p>Is PHP relevant for someone writing brand new distributed systems? Probably not. It has poor ergonomics and a bad concurrency story, and there are better languages for any criteria you care about.<p>Is PHP relevant outside of backend web services? No, and it never has been.<p>Is PHP relevant for PL research? Absolutely not. PHP&#x27;s language design is almost wholly parasitic. It has few ideas of its own.<p>But... that&#x27;s not really what we&#x27;re writing about, when we&#x27;re writing about relevance. Relevance here is a value judgement. But it&#x27;s not PHP&#x27;s quality as a language that makes it so ubiquitous. PHP is largely widespread because for a long time it had by far and away the best deployment story. You could get a LAMP server provisioned and be up within minutes.<p>I think the really interesting question is, &quot;based on what made PHP so ubiquitous, what&#x27;s the next PHP?&quot;. And I think the answer is JavaScript.<p>JS is quickly becoming the platform of least resistance. I can write a script and have it served on AWS Lambda within seconds. I can go into my function code and add logging on the fly. I have the same fast feedback cycle, in other words, that I would have had with PHP fifteen years ago.<p>I&#x27;m becoming more and more convinced that the most powerful tool a language can provide is a REPL. The faster I can turn abstract ideas concrete, the better. And the next generation of programming languages will live or die on their &quot;playability&quot;.
评论 #25545015 未加载
sayinbu超过 4 年前
Reminds me of this: <a href="https:&#x2F;&#x2F;pbs.twimg.com&#x2F;media&#x2F;DDfKMx-XgAAWoCT.jpg" rel="nofollow">https:&#x2F;&#x2F;pbs.twimg.com&#x2F;media&#x2F;DDfKMx-XgAAWoCT.jpg</a>