2 ms·
While it's fun to mock PHP for the uninitiated, it's actually probably something a bit more mundane. Those working on pubic GitHub projects are probably doing
by jasonlotito 16y ago
While it's fun to mock PHP for the uninitiated, it's actually probably something a bit more mundane.
Those working on pubic GitHub projects are probably doing so willingly. After all, if you hate PHP and are forced to use it at your day job, do you really want to go home and commit to PHP projects? Probably not.
So, what you're seeing are people not merely resigned, but who enjoy working in PHP, for all it's warts. They aren't just resigned.
- chc 16y agoBut that should apply equally to all languages. One would expect the same to be true of, say, Ruby or C++, but PHP's slice of the pie is minuscule by comparison. So your mundane answer is probably correct, but it's answering the wrong question. The question isn't, "Why don't PHP developers swear at their language all the time?" It's actually, "Why do PHP developers swear at their language less than most others?" And I posit that it's because PHP programmers at that level are less likely to be surprised or scandalized by the language's well-known quirks than somebody working with Ruby or C++ (i.e. they are resigned to its frustrations).
- jasonlotito 16y agoGood point. Good question. Honestly, and I don't meant to stereotype here, but I think it's because the quality of PHP developer proportionate to the number of PHP developers on github is higher than in other languages. Granted, their are fewer total. But the reason for this is pretty simple. PHP is not the popular language, so most new developers taking up programming in the past 2-3 years see a different landscape then a decade ago. Github is SourceForge and Ruby is PHP. Poor PHP developers aren't flocking to github. They are still on SourceForge (not suggesting that all SF users are bad). Basically, the PHP developer's on github are probably the more experience developers that have been doing this for a while. On the flip side, most Ruby developer's are still comparatively new to the language. This is a lot of assuming, and I don't mean to disparage anyone. That all being said, while I equated the quality of the programmer with the amount of swearing being done, I fully realize it's not a fair comparison. Granted, this entire thing is based on numbers that, I feel, are fairly meaningless. Finally, what I find more interesting is how HN's quality takes a nose dive when the population is allowed to bash a particular population: in this case, people who enjoy using PHP. Still, good follow up. =)
- chc 16y agoI hope it didn't look like I was bashing anyone. I think for the most part we're violently in agreement here. Besides PHP Githubbers maybe being at a higher level on average, I think PHP's gotchas are just generally better known, so people go into it with eyes open. It doesn't take as high a level of experience to realize, say, that the standard library has wonky argument ordering as it does to find all the weird edge cases that will bite you in Ruby and horrific error messages that await in C++. Ask anyone with a decent knowledge of a few languages to criticize PHP and he'll have something memorized. Ask a Ruby programmer with five years' experience to compare and contrast "reduce(&:+)", "reduce(:+)" and "reduce('+')" and it's 50/50 whether he'll even get two right (even though the truth is that there's no difference!).
- jasonlotito 16y ago> I hope it didn't look like I was bashing anyone. No, not you. It's why you got a reply from me that at least tried to sound intelligent. =) But it does get tiring hearing the same useless tripe repeated, especially here on HN. PHP's worst quality is whenever it's mentioned, a bunch of know-nothing's start making what amounts to the technical equivalent of dick and fart jokes. I'll just stop there though. =)