There can also be humourous swearing, and swearing for emphasis (see DHH), neither of which convey annoyance at all.
Hypothesis A: PHP projects tend to be smaller and simpler, with fewer interactions with other code/requirements/people, and therefore fewer opportunities for annoyance.
Hypothesis B: PHP is actually a very simple and close fit to its use-case, of unambitious webapps, and so often the tool just does its job, and disappears. There's no space to swear at a tool that you don't notice.
# This new PHP library is fucking awesome!A lot of people love their tools just because they don't know better ones.
C Perl JavaScript PHP
I also occasionally code in Python and assembly for fun.
When it comes to web projects PHP is my goto language because it works in all web environments without a bunch of bullshit surrounding installation, versioning or deployment. It's 2011 people, are you telling me developers are still trying to establish some sense of shiny self importance based on language choice? Sad.
Most of the developers are bad. Assuming a normal distribution, pretty much half of them are below the average and average is not usually something to brag about.
That said, languages that stand a higher chance of generating employment should attract those that don't want to learn new programming languages (something good programmers tend to do) and want to make their bets on sure technologies. I expect programmers interested in Lisp, Haskel, Erlang, Python, Ruby, Lua, Scala, Forth, Smalltalk to be, on average, better than those who choose Java, C#, PHP or Visual Basic. Of course, not all of those who choose these languages are bad programmers (and the opposite is also true), but I bet you will find more mediocre programmers on the second-group.
(burn, karma, burn)
"languages that stand a higher chance of generating employment should attract those that don't want to learn a new programming language" I think you're confusing PHP and Visual Basic/.NET here. Based on hit counts of job posts there are way more job opportunities for MS developers than PHP developers and based on median salary data coding .NET is worth about 20k a year more, so if they're rational actors the "just in it for a paycheck" crowd should be migrating to Windows development.
Your language salad comparisons are likewise faith-based. How about we trade anecdotes instead? I've met a total of six Ruby developers during my professional career. To a man they were immature, arrogant and totally in love with the hype surrounding their language of choice. Four of the six could be fingered for running multi-million dollar projects into the ground courtesy of a year and a half long series of hipster love-in's masquerading as a SCRUM meetings. Meanwhile during the same time period myself and one other developer launched 65 sites on four platforms with a combined total of around 1 million in annual ad revenue generated for the company. You just keep singing your song, man. I'll keep shipping shit.
Edited to add: just keep on downvoting, truth hurts.
Still, if the highly abstract programmer competency follows a normal distribution (and I admit a leap of faith there), you'll agree with me that half of the programmers out there will end up below the average. You'll also agree with me that just above the average doesn't make a good programmer, so, most of the programmers around us will be bad ones.
I don't believe you were downvoted for saying painful truths (which I don't think you did), but more on the form of your statement. I believe most downvoters didn't pass the first sentence. I believe this is a good thing - poor form is bad for discussion. We shouldn't get emotional.
It's hard to remember this is HN when walking into threads like these. As I mentioned elsewhere, if PHP is mentioned, HN maturity takes a nose dive as people make what amounts to dick and fart jokes. It's embarrassing.
> I don't believe you were downvoted for saying painful truths (which I don't think you did), but more on the form of your statement. I believe most downvoters didn't pass the first sentence. I believe this is a good thing - poor form is bad for discussion. We shouldn't get emotional.
It's not because of his tone. It's because he's defending PHP. Look at other posts in this thread. Look at the bitches thread. Littered with immaturity and a far worse tone than the parent here. Sure, the tone didn't help here, but if his tone had been the same, but defending Ruby, or Lisp, or some other fashionable language, he wouldn't have been. Even your post smells like this.
One more thing...
> I expect programmers interested in Lisp, Haskel, Erlang, Python, Ruby, Lua, Scala, Forth, Smalltalk to be, on average, better than those who choose Java, C#, PHP or Visual Basic.
Ruby is the language people go to for work now. Why? Because it's the in language, especially in the context of HN. And its' not just Ruby, but RoR specifically.
There are more jobs about Java and C# and PHP than on RoR. RoR jobs may be more frequent on sexy startups (the type that appears here).
I'm not suggesting RoR has a lot of jobs compared to the Java or C#, but rather, it's not exactly devoid of job offers either. Especially within the context of HN.
So, apologies for not being clear about the context.
Speaking of frame of reference, people belittling PHP devs are mostly showing their own ignorance.
They don't write meaningful comments at all. Including those with swears, meaning at least something.
Joke #2: What would they have to put into commit messages, if you consider so much of PHP code is not written but copypasted? What to write then - "I copypasted it from X"?
But your point being that php code doesn't get commented much is right on.
It's the same reason there is no profanity it FORTRAN or COBOL in this graph.
The author makes a terrible mistake: he does not normalize the graph relative to the total amount of code in each language.
There's a lot of Ruby on Github, which is why you can find plenty of Ruby profanity.
The graph is just about useless without this normalization.
The number of different projects ripped, on the other hand, could help skew the results of the unpopular languages.
For instance, my style of coding means I branch off, commit early and often, with flippant and meaningless messages, and then I squash and rewrite my entire change as a single, formal entity before releasing it for coworker consumption. I curse up a storm in my commit messages, but you won't see any of them unless you look inside my computer before I delete the working branch.
This is fun and funny. Nothing about it even starts approaching validity except for one statistic: "210 out of 929857", and even that gets shot down. The entire thing would have been better if he had included "hate" as a curse word.
Although I think it's fair to say the proportion of beginners and casual projects using source control and Github is probably lower for PHP than, say, Ruby.
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.
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).
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. =)
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!).
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. =)
There are a lot of people out there who think it's truly fabulous, also. Usually, PHP is their first language and they've never seriously tried anything else. They like the accomplishment of programming, and connect that with PHP.