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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why PHP doesn't suck

8 点作者 davidholmesnyc超过 11 年前

1 comment

mildtrepidation超过 11 年前
&quot;You can write sloppy code in any language&quot; follows &quot;LAMP is really easy to set up.&quot; Both of those things are true. But you know what? A quick search is all it takes to run quite a few configurations that don&#x27;t involve PHP.<p>Honestly, this article is pretty poor, even by medium.com blogspam standards. &quot;Sure, PHP [weaknesses here], but it gets the job done.&quot; You know what? So does Brainfuck. And the argument there would be that it&#x27;d end up being unmaintainable, but the author has already dismissed that, because hey! You can write bad code in any language, so it&#x27;s not a valid argument.<p><i>It’s just one of those pointless endless debates. Just use the right tool for the right job and sometimes PHP is the right tool for the job. A developer who doesn&#x27;t understand that isn&#x27;t a developer worth paying.</i><p>A developer that doesn&#x27;t share the author&#x27;s opinion that PHP is sometimes the right tool for the [undefined] job is not &quot;a developer worth paying?&quot; Even if we take the arguments presented here as valid or worthwhile, the only scenarios the author has presented in which PHP is &quot;the right tool for the job&quot; is when either you don&#x27;t have a sysadmin or are so poor at systems administration that all you can manage is a LAMP stack (RED FLAG) or you don&#x27;t know anything else (because if the argument is that you can write good or bad code in any language, PHP has absolutely no advantage over anything else). I&#x27;d say that person is not qualified to choose a platform, let alone build your business.<p>If you&#x27;re going to argue that PHP doesn&#x27;t suck, at least point out its merits. The political style of &quot;I&#x27;m not as bad as my opponent, or at least I&#x27;m no worse&quot; doesn&#x27;t work here.