Comment Profanity by Language 263
beret found a nifty little pie chart breaking down
profanity in code comments broken down by language. He used Carlin's Seven Words, and C++ came out on top while PHP users are either wholesome or perfect.
Re:Perfect? (Score:5, Insightful)
Re:C++ Templates (Score:1, Insightful)
Then you're doing it wrong -- at the point you can no longer grok what's going on, you've used too much of the feature (for your current level of ability to work with it).
And this holds for the language itself, which is what is usually leveled against. Until you understand what the compiler is doing behind the scenes, don't use it. It doesn't just translate your high-level code, it also can generate a lot of code for you. You have to know what your tools do. Even if the basic way you use them look a lot like how you use other, simpler tools.
Re:Perfect? (Score:5, Insightful)
Re:Perfect? (Score:4, Insightful)
Erm, how did you know it wasn't doing what it was supposed to do if you didn't first know what it was supposed to do?
Re:C++ Templates (Score:3, Insightful)
C++ Templates will turn the most pious programmer into a curse-slinging, chain-smoking alcoholic.
Only those who don't understand them.
Learn a functional programming language, and you'll understand much more about C++ template programming.
Re:NOT CODE COMMENTS!! (Score:3, Insightful)
The original comment still stands - most PHP "programmers" I know couldn't tell the difference between source control and birth control.
What kind of stupid argument is that? Sure, a lot of people who claim to write PHP code don't know what source control is. But, again, these are commit messages. What percentage of people writing commit messages do you think know what source control is?
Re:Perfect? (Score:4, Insightful)
More like they never fucking comment their motherfucking code.
Perl programmers never put in profane comments, because cursing in Perl itself is much more satisfying.
There's a perfectly reasonable explanation for all of this: PHP is a web language, whereas everyone knows that most curses-based programs are written in C or C++.
Re:NOT CODE COMMENTS!! (Score:4, Insightful)
What percentage of people writing commit messages do you think know what source control is?
Sadly, far less than logic would dictate.
Re:Perfection. (Score:4, Insightful)
Php showed up as perfect because it is almost perfectly comment free.
This is an indictment of the language, not the programmers, since well-commented php is drastically slower (like .5% tomg!) than stripped down and nearly obfuscated code. That fraction really adds up when you have all those unnecessarily dynamic web pages to generate.
Now if someone were to do a comparison on the ratio of active code, to code that is commented out but not removed because the author doesn't use version control... In that category PHP would freaking rule!