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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Tell HN: I think you're downplaying the PHP community

79 点作者 jqueryin超过 8 年前
I consider the HN community, on the whole, to be very much concerned with their professional development.<p>Whether it&#x27;s taking classes, working on side projects, or reading the latest blogs, everyone seems genuinely interested in learning.<p>Based solely on vote counts alone on the frontpage for the last few days, there appears to be a very large portion of the HN community that both readily follows PHP and&#x2F;or actively uses it.<p><i>What I find most interesting, however, is the comments section.</i><p>There&#x27;s a large camp of developers on HN that are very outspoken regarding their abhorrence of PHP. The language has been ridiculed for well over a decade, so this is to be expected.<p>What&#x27;s most intriguing is what you <i>don&#x27;t</i> see in the comments: the huge number of proponents of PHP.<p><i>So where does this discrepancy between vote counts and comments stem from?</i><p>I would venture to guess the vote counts themselves stem from silent proponents. They likely don&#x27;t provide counter arguments because it&#x27;s simply not necessary. Nothing is gained.<p>Everyone here has a unified goal of working on cool problems, building amazing applications, and hoping to strike paydirt for all of our hard work.<p>Maybe it&#x27;s time we all think about why it is we complain about language X vs. language Y and just get back to trying to make our lives and those around us better, through code.

19 条评论

pwinnski超过 8 年前
My theory is simple: Have you ever heard the pithy saying that there is no worse non-smoker than an ex-smoker?<p>I think many of the loudest anti-PHP voices are ex-PHP developers. They&#x2F;We naturally assume our own experience is normative, and since we didn&#x27;t know X, Y, or Z back when we were coding in PHP, obviously neither does anybody else still coding in PHP.<p>Or, more graciously, back then PHP was the best language we had learned up to that point (better than BASIC or Perl, say), but now we use Ruby or Python or something else, so now we recognize the deficiencies in PHP. Clearly those other people, just a few steps behind us on the path, need to also learn about the deficiencies in PHP and how much better X is.<p>There are any number of nuanced ways for that to be expressed, but ultimately I think it&#x27;s mostly tribalism, and obviously unhelpful. Sure, I used to write PHP. Built my first startup with it, sold it, and stuck with it for a few years more even after that. And sure, I don&#x27;t write in PHP any more. These days it&#x27;s Python or Java or Clojure for me. Because PHP sucks? No, because it doesn&#x27;t suit what I&#x27;m doing these days as well. And not necessarily for reasons related to the quality of the language.
评论 #12712157 未加载
s0l1dsnak3123超过 8 年前
In British politics we have this concept of &quot;The silent majority&quot; which inevitably gets mentioned at referenda and elections. The effect was probably most prevalent in the Scottish independence referendum in 2014 where a no vote of 55% bet a yes vote of 45%.<p>Many many yes voters (including myself) were very surprised by this result - the internet was on fire with grass roots activism of all kinds. Glasgow had weekly rallies with thousands (sometimes tens of thousands) attending. And yet we lost.<p>I can&#x27;t help but wonder if we&#x27;re witnessing the same phenomena - a silent majority of people who feel no need to contribute to the discourse but have different opinions and values on the subjects us in the comments section are discussing.<p>Interesting stuff.
评论 #12708995 未加载
评论 #12709190 未加载
评论 #12708905 未加载
gkya超过 8 年前
Php is objectively a bad language, and as the literature on why it is is wast like oceans, I don&#x27;t feel the need to add to it. That said it&#x27;s quite understandable why the language is used regardless of it&#x27;s inferiority, there are some practical reasons, just like JavaScript. Thus it&#x27;s understandable why people follow its news and also why it&#x27;s harshly criticised. HN is a technical forum of tech entrepreneurs and computer hackers, and people discuss most often the technical aspects of things, and for Php it&#x27;s more than expected that the tone be downplaying. Though I believe that should be taken as is and not be extended to community itself.
评论 #12711061 未加载
throwaway420超过 8 年前
&gt; So where does this discrepancy between vote counts and comments stem from?<p>People are probably concerned about not being viewed as a good or knowledgeable developer if they admit to using PHP here, so it&#x27;s probably not a fight that&#x27;s worth having for most posters. People don&#x27;t always give their genuine opinions when they think that their personal reputations or livelihoods are on the line.<p>This isn&#x27;t just the case in technical or career matters, but especially when it comes to personal reputation. Just ask people how many sex partners they&#x27;ve had: the results will probably be skewed up or down in fairly predictable ways if people think there&#x27;s a chance that they&#x27;ll be judged somehow based on the answer.<p>Personally I think PHP is a useful (and extremely imperfect) tool that is very appropriate to solve a fairly wide range of problems. For certain problems, it&#x27;s arguably the best tool. That&#x27;s why it&#x27;s going to be around for quite a while.
nbouscal超过 8 年前
I would attribute this discrepancy to a natural extension of pg&#x27;s thoughts about the blub paradox (<a href="http:&#x2F;&#x2F;www.paulgraham.com&#x2F;avg.html" rel="nofollow">http:&#x2F;&#x2F;www.paulgraham.com&#x2F;avg.html</a>). Most PHP developers I&#x27;ve talked to justify their work in PHP by saying that essentially languages are more or less the same, and that PHP is &quot;just as good&quot; as any other language. It&#x27;s rare for me to hear someone say that PHP is substantially better than other languages. By contrast, former PHP developers who now work in other languages usually say that PHP is significantly <i>worse</i> than other languages. It seems natural that someone who thinks there&#x27;s a significant difference would be more likely to comment about it than someone who thinks the languages are basically the same. There&#x27;s more to say about the difference than there is about a lack of difference, and it&#x27;s relatively hard to provide real arguments for the lack of a difference – it&#x27;s usually more &quot;there&#x27;s no real evidence of a difference and this works fine for me.&quot;
chrisgoman超过 8 年前
The PHP people are working instead of complaining about it <a href="https:&#x2F;&#x2F;slack.engineering&#x2F;taking-php-seriously-cf7a60065329#.by4zu6s1g" rel="nofollow">https:&#x2F;&#x2F;slack.engineering&#x2F;taking-php-seriously-cf7a60065329#...</a>
评论 #12711850 未加载
评论 #12711709 未加载
1123581321超过 8 年前
That&#x27;s a fair criticism. I do a fair amount of PHP and participate in the community, so I know what you are talking about. That said, to me, the PHP professional development community seems anemic compared to the communities of other languages. I also think the PHP professional development community is smaller than that of other languages when measured as a percentage of the total professionals using the language.
评论 #12708563 未加载
评论 #12708800 未加载
ythl超过 8 年前
People are worried about how they are perceived by other developers. It&#x27;s the same reason a lot of people loudly pooh-pooh GameMaker (citing Godot, UR4, Unity, etc. as superior) even though it&#x27;s a super powerful tool that, in the right hands, can be used to rapidly prototype very complicated and versatile games.
评论 #12711498 未加载
评论 #12708801 未加载
hotsy_botsy超过 8 年前
PHP is the Toyota Corolla of programming languages. Not many are passionate about the Corolla, but it&#x27;s one of the most widely driven cars in America.<p>I challenge you to come up with a better car analogy.
评论 #12709072 未加载
评论 #12712966 未加载
评论 #12712443 未加载
z0r超过 8 年前
I&#x27;ve never worked on PHP code in a truly professional context, but I&#x27;ve had one-off (very) small jobs where I&#x27;ve had to perform maintenance on some PHP. I have no doubt that the language and tooling has improved over the years, but I have no desire to ever work on any of it ever again. This is my honest opinion, and I&#x27;m not writing it to signal anything. There are dozens of viable production languages and life is short, so why work with one that you find very painful? If PHP works for you, that&#x27;s fine, but people who don&#x27;t like PHP are going to be vocal about it because they don&#x27;t want to find themselves in a situation where they have to write it. You might not end up being forced to write PHP for pay these days, but it&#x27;s not unrealistic to imagine that you might end up writing (for example) Java because you need a job even if you really don&#x27;t like it. So you end up with language advocacy and trash talking and there&#x27;s nothing wrong with any of that, it&#x27;s just a way to let off steam and preserve your sanity.
leovonl超过 8 年前
See, the thing is: I spend much of my time trying to show people that good tools can be used to make good software. We have MUCH misinformation, and people don&#x27;t even understand that you can prove a software right using theorem provers, don&#x27;t know anything about type system - &quot;C has types but they don&#x27;t work&quot; - and etc. I&#x27;ve heard arguments like this all the time, and that really sucks, because then you get limited by tools &quot;you can hire people to work with&quot;.<p>In fact, I&#x27;ve been hearing for 10 years things like &quot;what, OCaml? where do we hire someone to work on this?&quot;, &quot;Haskell? nobody uses that&quot;, and more recently &quot;we cannot use Rust as we don&#x27;t have anyone that can possibly understand this&quot;. Saying &quot;PHP is just another language&#x2F;tool&quot; is just throwing the towel without trying to understand anything.<p>What would you think if someone said &quot;coal is just another fuel, stop trying to push electric, let me use coal and go on with life&quot;? Well, a lot of people believe this, but let&#x27;s pretent there&#x27;s a consensus on this, shall we?<p>So, the question is: you CAN use PHP for doing web development. You can also use coal as a fuel. Not only that, but all libraries are written with this in mind, all code bases and fragments of code are focused on web development, etc. Coal is also combustible, a lot of manufactures dominate the technology, it&#x27;s cheap, so.. hey, energy!<p>Even if the language is pure crap - as coal is as a fuel - people will only hit the crappy parts when their system is already implemented and being used by more people. &quot;Hey, this language has a lot of issues&quot; - &quot;hey, this coal thing really polutes&quot;. Too late. You already have a full system implemented, you have experience with the language - or energy production technology... so you just change your workflow to accommodate this. Or you just never realize it - &quot;whatever, no big deal&quot; - and keep using it, as you see the advantages as more important.<p>There&#x27;s tons of factors that contribute to the PHP popularity - the same thing with C, Perl, etc. Doesn&#x27;t mean the language is good, and also doesn&#x27;t mean everyone has to agree with you that &quot;it&#x27;s just another tool, let&#x27;s go back to business&quot;.<p>So yeah, no.. I won&#x27;t let you go on with PHP, sorry. I want better tools, better systems, and I want to spread knowledge. I guess we are going to agree to disagree on that.
tbirrell超过 8 年前
Because arguing on the internet tends to be an exercise in frustration. If I like PHP and you don&#x27;t it is unlikely that either of us will change the other&#x27;s mind. So it&#x27;s not really worth my time or effort to defend the language to virtual strangers. I can respect your dislike while going off to code in PHP anyway, and the world won&#x27;t end. If you ask me my opinion, I&#x27;ll be happy to share it, but I don&#x27;t feel the urge to offer it unsolicited.
circlefavshape超过 8 年前
&#x2F;me raises hand<p>I&#x27;ve been writing php professionally since 2000, and I like it well enough. I know it so much better than any other language that, 20 years into my career, I can&#x27;t see how I&#x27;ll ever learn another one well enough to compare them.
mst超过 8 年前
I write a lot of perl. You see a similarly depressing response there as well.<p>Mostly I file it under &quot;hipsters gonna hipster&quot; and then go back to doing something useful.
oliwarner超过 8 年前
Use and hatred are not mutually exclusive. I can&#x27;t be the only developer in here who has to maintain legacy webapps written in awful languages. If I see a post offering a 200× speedup on my crappy old PHP scripts, it gets an upvote.
flanger001超过 8 年前
I wish PHP had methods on primitive types, but I can live without them. PHP is not my first choice of language to develop in, but I don&#x27;t think it&#x27;s a bad language, and it paid my bills for quite a long time.
ryanlm超过 8 年前
People that state it&#x27;s such a horrible language are &quot;follow&quot; types. I believe some people actually do think it&#x27;s a bad language, but for the most part, I would say people are just following the status quo.
评论 #12708823 未加载
评论 #12713429 未加载
评论 #12711535 未加载
评论 #12708771 未加载
评论 #12708784 未加载
ryanlm超过 8 年前
Flagged? Interesting.
评论 #12711340 未加载
评论 #12709842 未加载
crimsonalucard超过 8 年前
Not everything in the world is apples and oranges..