top | item 6409370

WTFs by programming language repository on GitHub

52 points| codecurve | 12 years ago |codeodor.com | reply

25 comments

order
[+] grannyg00se|12 years ago|reply
I thought this was about anti-patterns or cryptic code passages. It's literally about the string 'wtf'
[+] eksith|12 years ago|reply
One could argue that the 'WTFs' themselves are a bit of a (completely unscientific) marker of just such anti-patterns etc...
[+] jfasi|12 years ago|reply
Is the graph normalized to account for lines of code per repository? WTFs by repository is a useless number: I'd be more interested in seeing the WTFs per line.
[+] Nav_Panel|12 years ago|reply
Lines of C are certainly not equivalent to lines of, say, Erlang, so I don't think that metric would be extremely useful either.

Perhaps something like WTFs per commit would be best?

[+] rheide|12 years ago|reply
People would probably only use wtf if the language did something that they didn't expect of it, regardless of how wtf the language actually is. This just shows that Python programmers programming in Python use WTF x times and Java programmers using Java use WTF y times.

(This would also explain why the wtf rate for Javascript is so low ;) )

[+] pintglass|12 years ago|reply
Lua is mostly just people using wtf in a l10n var (SoundWTF) or as a variable or something trying to be funny:

https://github.com/search?q=wtf+extension%3Alua&type=Code&re...

[+] otikik|12 years ago|reply
The answer is in the comments of that site. Lua is used in lots of places, but the earliest "famous" one is World of Warcraft, where it is used to make extensions. The folder where those extensions are stored is called WTF (Warcraft Text File), so on every warcraft extension the string WTF appears multiple times. See http://www.wowwiki.com/WTF
[+] colanderman|12 years ago|reply
The graph doesn't show up in Opera, Firefox, or Chrome for me.
[+] contingencies|12 years ago|reply
It's on the 'raw data' page, not on the post itself.
[+] ams6110|12 years ago|reply
NoScript?
[+] atmosx|12 years ago|reply
Isn't "fuck" a better pattern to measure this? However, funny project :D
[+] ianstallings|12 years ago|reply
Wow, I'm not sure if I should be proud or ashamed, the two languages I use everyday now - C and Objective-C are in the winner's circle.