Slashdot Mirror


The Most WTF-y Programming Languages

itwbennett writes "A couple of years ago, developer Sammy Larbi undertook a project to identify which languages had the most instances of the string 'WTF' in their GitHub code repositories. At the time, Objective C topped the list. ITworld's Phil Johnson has updated Larbi's research using GitHub data from the last 21 months, but instead of screen-scraping GitHub search results as Larbi had done, he queried the GitHub Archive for stand-alone instances of 'WTF' in the comments attached to GitHub commits to weed out cases where the string 'WTF' was legitimately used in the code. The three most baffling languages for 2012/13: C++, Lua, and Scala. Objective C comes in at #16."

12 of 254 comments (clear)

  1. Oblig.... by DougOtto · · Score: 5, Funny

    WTF?

    --
    Solving Unix problems since 1989...
  2. Why would seeing 'WTF' implicate the language... by Assmasher · · Score: 5, Insightful

    ...instead of the code itself?

    I've seen plenty of "WTF was this guy thinking when he wrote this?" or "WTF is he trying to do here?" comments in code.

    --
    Loading...
  3. Re:One for one by Anonymous Coward · · Score: 5, Insightful

    perhaps the people who write PHP code do not realize when they have written a WTF.

    Also, to borrow a troll from theDailyWTF (.com)
    "TRWTF is Visual Basic"

  4. LICENSE.txt by TeknoHog · · Score: 5, Funny

    DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
    Version 2, December 2004

    Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

    Everyone is permitted to copy and distribute verbatim or modified
    copies of this license document, and changing it is allowed as long
    as the name is changed.

    DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

    0. You just DO WHAT THE FUCK YOU WANT TO.

    --
    Escher was the first MC and Giger invented the HR department.
  5. That's easy. by gallondr00nk · · Score: 5, Informative

    Brainfuck. Look it up, I can't even give a code example as it pisses off /.'s filter.

  6. Re:Bad statistics are bad by kyle3489 · · Score: 5, Informative

    those conclusions are drawn without controling for a language usage. Since c++ is widely adopted so there will be more instances of a comment where "WTF?" is used.

    Why don't use a percentage at least? Even if that was the case, the problem remains... a wtf-y language may be the most avoided and/or not present in github

    Well, they DID account for it, but they did it all wrong. They counted WTFs *per repository* ...but that makes the assumption that all repositories are of equal size, which they are not. If C++ repositories have more code on average, then that simple fact could account for the increased WTFs per repository, even if everything else was equal.

  7. Statistics, the mother of all lies... by paavo512 · · Score: 5, Insightful

    According to TFA, he "calculated the average number of WTF commit comments per repository". So why not per line of code or whatever? C++ projects tend to be rather large (because it is harder to write large projects in other languages), so surely by this metric C++ would win (aka lose) here.

    If there is one thing I have learned about statistics it is that you can prove about anything you want ... unless you want and are actually able to find the correct normalizations.

  8. I'm going to find out the best language... by ddd0004 · · Score: 5, Funny

    by using the search term "l33t".

  9. Re:Oh good grief. by beelsebob · · Score: 5, Insightful

    Languages are just Syntax - get over it.

    It makes me sad that so many people focus on the syntax of the language they're using. So much so, that they think that languages are just syntax.

  10. Re:C++ by geek · · Score: 5, Insightful

    IMHO, C++ is a simple, flexible, intuitive, and powerful language... IF (and only if) you know how to use it.

    So what you're saying is that it actually isn't simple, flexible and intuitive? Because if it was simple, flexible and intutive you wouldn't have to say "IF (and only if) you know how to use it." That's kind of a big contradiction.

  11. Re:One for one by Anonymous Coward · · Score: 5, Interesting

    There's even a website dedicated to PHP WTFs

    Consider that a language (rather than a programmer) causes a WTF moment when it behaves other than would intuitively be expected according to its own rules of grammar. On that basis alone, PHP wins hands down.

  12. Re:Oh good grief. by Anonymous Coward · · Score: 5, Funny

    and even WHOSE