News for hackers. Stuff that matters.
Re:WTFs by programming language repository on GitHub by sigil on Wednesday September 18, 2013 @11:23PM (#6409602)
A fair share of the WTFs for python are probably due to the WTForms library. I count 6 out of 10 WTForms matches on the first page of github file results.

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

Re:WTFs by programming language repository on GitHub by manojlds on Wednesday September 18, 2013 @11:42PM (#6409647)
And codebases like Webkit have WTF throughout - Web Template Framework - http://stackoverflow.com/questions/834179/wtf-is-wtf-in-webk...
Re:WTFs by programming language repository on GitHub by millstone on Thursday September 19, 2013 @12:07AM (#6409722)
The Web Template Framework is also the explanation for ObjC's high WTF count.
Re:WTFs by programming language repository on GitHub by grannyg00se on Wednesday September 18, 2013 @11:14PM (#6409572)
I thought this was about anti-patterns or cryptic code passages. It's literally about the string 'wtf'
Re:WTFs by programming language repository on GitHub by eksith on Thursday September 19, 2013 @12:46AM (#6409864)
One could argue that the 'WTFs' themselves are a bit of a (completely unscientific) marker of just such anti-patterns etc...
Re:WTFs by programming language repository on GitHub by James_Duval on Thursday September 19, 2013 @05:32AM (#6410671)
They might be, but equally they could be a marker of an unorthodox but brilliant piece of work (fast inverse square root springs to mind). I suppose that's the unscientific part, but it does strike me as being a bit of a useless marker.
Re:WTFs by programming language repository on GitHub by Drakim on Thursday September 19, 2013 @02:27AM (#6410165)
One would be arguing wrongly. There are a lot of things that gets abbreviated to wtf other than "what the fuck".
Re:WTFs by programming language repository on GitHub by einhverfr on Thursday September 19, 2013 @06:31AM (#6410829)
I should start a library called Write Template Format with cross language support....
Re:WTFs by programming language repository on GitHub by jfasi on Wednesday September 18, 2013 @10:47PM (#6409479)
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.
Re:WTFs by programming language repository on GitHub by Nav_Panel on Wednesday September 18, 2013 @11:28PM (#6409612)
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?

Re:WTFs by programming language repository on GitHub by GarvielLoken on Thursday September 19, 2013 @02:38AM (#6410197)
Well that is C:s problem, isn't it? If it want a better measure value then it should be more expressive. I think it is fair.
Re:WTFs by programming language repository on GitHub by ianstallings on Thursday September 19, 2013 @09:21AM (#6411403)
Yes, C wants a better measurement of WTFs. Get a grip.
Re:WTFs by programming language repository on GitHub by yaph on Thursday September 19, 2013 @06:19AM (#6410795)
Last year I did something similar, but instead of searching the code I looked at commit messages that matched certain patterns to categorize them by emotions, you can see the results here

http://geeksta.net/geeklog/exploring-expressions-emotions-gi...

Re:WTFs by programming language repository on GitHub by rheide on Thursday September 19, 2013 @03:52AM (#6410400)
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 ;) )

Re:WTFs by programming language repository on GitHub by pintglass on Thursday September 19, 2013 @01:11AM (#6409959)
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...

Re:WTFs by programming language repository on GitHub by otikik on Thursday September 19, 2013 @02:14AM (#6410130)
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
Re:WTFs by programming language repository on GitHub by colanderman on Wednesday September 18, 2013 @10:30PM (#6409425)
The graph doesn't show up in Opera, Firefox, or Chrome for me.
Re:WTFs by programming language repository on GitHub by contingencies on Thursday September 19, 2013 @01:51AM (#6410072)
It's on the 'raw data' page, not on the post itself.
Re:WTFs by programming language repository on GitHub by ams6110 on Wednesday September 18, 2013 @11:36PM (#6409632)
NoScript?
Re:WTFs by programming language repository on GitHub by colanderman on Thursday September 19, 2013 @01:01AM (#6409926)
Nope, no extensions whatsoever.
Re:WTFs by programming language repository on GitHub by atmosx on Thursday September 19, 2013 @01:49AM (#6410061)
Isn't "fuck" a better pattern to measure this? However, funny project :D
Re:WTFs by programming language repository on GitHub by SameGamchee on Thursday September 19, 2013 @02:38AM (#6410198)
How many of those Java WTFs are actually Android Log.wtf() logs?
Re:WTFs by programming language repository on GitHub by platypii on Thursday September 19, 2013 @03:09AM (#6410276)
From the Android API docs:

"What a Terrible Failure: Report an exception that should never happen."

http://developer.android.com/reference/android/util/Log.html..., java.lang.String)

Re:WTFs by programming language repository on GitHub by ianstallings on Thursday September 19, 2013 @09:22AM (#6411409)
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.
Re:WTFs by programming language repository on GitHub by shazeline on Wednesday September 18, 2013 @11:18PM (#6409587)
reminds me of commit logs from last night

http://www.youtube.com/watch?v=V44kscaJe3M