Ask HN:PHP 相较于 C 的优势是什么?
1 分•作者: colrichie•大约 1 小时前
我在 X(原 Twitter)上看到了这样一篇文章:“为什么半个互联网还在使用 PHP。”
https://x.com/artillain/status/2113018532980211928
大家怎么看?
这位博主似乎暗示 C 语言的代码通常比 PHP 代码更长。但我认为这一点并不准确。如果 C 语言程序员觉得代码冗长,他们可以轻松地创建具有与 PHP 功能相似粒度的函数。
我认为 PHP 的价值在于其他方面。
查看原文
I saw such a post on X: "Why half the internet still runs PHP."
https://x.com/artillain/status/2113018532980211928
What do you guys think?<p>This guy seems to imply that C code tends to be longer than PHP code. But I don't think that point hits the nail on the head. If a C programmer feels the code is unnecessarily long, they can simply create functions with granularity similar to PHP's features.<p>I think PHP's value lies elsewhere.