Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Programming

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.
This discussion has been archived. No new comments can be posted.

Comment Profanity by Language

Comments Filter:
  • Re:Perfect? (Score:5, Insightful)

    by TheRaven64 ( 641858 ) on Tuesday February 22, 2011 @06:22PM (#35284732) Journal
    In my personal opinion, developers like you are the reason why every single 'working' piece of Python code I've encountered has required me to spend time debugging it before actually using it.
  • Re:C++ Templates (Score:1, Insightful)

    by Bill Dog ( 726542 ) on Tuesday February 22, 2011 @06:27PM (#35284804) Journal

    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)

    by eln ( 21727 ) on Tuesday February 22, 2011 @06:32PM (#35284856)
    Most people skilled in a language (yes, even perl) can figure out what a piece of code actually does given enough time to look through it. The comments are to tell us what the code is *supposed* to do and *why*, so when we need to debug it we know what you were thinking when you wrote it and what you were trying to accomplish. When you're trying to figure out why a piece of code doesn't do what it's supposed to do, it's very helpful to know what it was supposed to do first.
  • Re:Perfect? (Score:4, Insightful)

    by Lije Baley ( 88936 ) on Tuesday February 22, 2011 @06:53PM (#35285072)

    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)

    by maxwell demon ( 590494 ) on Tuesday February 22, 2011 @06:57PM (#35285120) Journal

    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.

  • by amicusNYCL ( 1538833 ) on Tuesday February 22, 2011 @07:26PM (#35285414)

    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)

    by grcumb ( 781340 ) on Tuesday February 22, 2011 @08:13PM (#35285818) Homepage Journal

    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++.

  • by xero314 ( 722674 ) on Tuesday February 22, 2011 @10:24PM (#35286718)

    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)

    by IBitOBear ( 410965 ) on Wednesday February 23, 2011 @01:32AM (#35287616) Homepage Journal

    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!

What is research but a blind date with knowledge? -- Will Harvey

Working...