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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

PHP Is the Best Choice for Long‑Term Business

26 点作者 samspenc9 个月前

11 条评论

mrinfinitiesx9 个月前
&gt; ssh some@server<p>&gt; There are 544384348946349783246237946349732647 npm packages that need updated.<p>&gt; There are 548432782344434 critical npm packages.<p>It&#x27;s all about what works. My crazy opinion is PHP makes a great CLI, so does nodejs. Node has amazing frameworks, PHP is battle-hardened back-end wise but front end you&#x27;re coming back to JS. I honestly hate what the JS bloated internet has become and enjoy PHP, but I also enjoy javscript.<p>Tons of apps are already electron bloated stuff; JS is in.<p>Use what works and what isn&#x27;t going to break.<p>Be mindful of JS CDNS and supply chain attacks.<p>Keep things up to date. Fix them if they break.
blackbrokkoli9 个月前
Strange article.<p>It&#x27;s basically a list of nice things going for PHP, but you can write that for literally any tech in any context — like, I could argue that you should build web sites with the Unity game engine or raw Python by listing out-of-context stats all day long.<p>Whenever the author actually <i>compares</i>, it breaks down:<p>- Ok, so Lavarel is from 2011 — React is from 2013, Django is from 2005...so what<p>- Sure, there may be a new js framework everyday, but not a new version of <i>js</i>...and anyway, an active and innovative community is automatically bad why?<p>- PHP has &quot;2 strong framework players&quot; — ok, so has Python, js has two to four...<p>- &quot;lack of advanced technology&quot; — what does this even mean?
wifipunk9 个月前
Change my mind, but modern JS frameworks aren&#x27;t just hype. They solve real problems for complex UIs. PHP&#x27;s great for some stuff, but try building a snappy SPA with it.
评论 #41437701 未加载
评论 #41437808 未加载
JodieBenitez9 个月前
Poor article IMO, sounds like it has been written by an uninformed junior, except it&#x27;s apparently not. And this line is unreal:<p><pre><code> &quot;Last but not least, other languages lack advanced technology.&quot;</code></pre>
评论 #41437566 未加载
mikl9 个月前
This is essentially the COBOL argument. Sure, it might not be very good, but it’s long-term stable.<p>Fortunately, many other frameworks are long-term stable, but also have a good programming language behind them. Django, Ruby on Rails, and there are similar options in Java or C#.<p>As for the other points, sure, PHP might be the one language where there are exactly two strong web frameworks. But I don’t see the problem of there being 3 or 4. Django has plenty of competition that drives innovation – web2py, flask, etc.<p>And same for those other claims. All major languages have various kinds of code analysis tools. Most have healthy communities, etc.
darkotic9 个月前
I enjoy PHP. I&#x27;ve been using it for about 20 years. I enjoy writing in the language, most likely because I&#x27;ve gotten good with it. It is my preferred tool for creating things and solving problems. &lt;3
Oras9 个月前
The article is mixing PHP with JS frontend frameworks.<p>It doesn’t really matter which language you use, it’s about getting the job done. Some people can get thing done quicker in certain languages just because they are good at what they do, not because the tech stack is perfect.
davidt849 个月前
As I said 8 hours ago when this was first posted ( <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41432574https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41432574">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41432574https:&#x2F;&#x2F;news.yc...</a> ):<p>This is an opinion masquerading as fact, backed up by terrible reasoning.
hu39 个月前
<a href="https:&#x2F;&#x2F;github.com&#x2F;nikic&#x2F;php-parser">https:&#x2F;&#x2F;github.com&#x2F;nikic&#x2F;php-parser</a> is neat, but not unique to PHP.<p>See <a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3.8&#x2F;library&#x2F;ast.html" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3.8&#x2F;library&#x2F;ast.html</a> for example.
pezzer559 个月前
I used it a lot way back in the day... Because I was young and it wasn&#x27;t perl. Then I did a CS degree, and found many better things. I think this summed up my experience: <a href="https:&#x2F;&#x2F;eev.ee&#x2F;blog&#x2F;2012&#x2F;04&#x2F;09&#x2F;php-a-fractal-of-bad-design&#x2F;" rel="nofollow">https:&#x2F;&#x2F;eev.ee&#x2F;blog&#x2F;2012&#x2F;04&#x2F;09&#x2F;php-a-fractal-of-bad-design&#x2F;</a>
phplovesong9 个月前
Why would I pick PHP in 2024 for greenfield? There is ZERO benefits.