TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Data on Swearing in Programming Languages

30 点作者 deniszgonjanin超过 13 年前

20 条评论

5hoom超过 13 年前
I'm sure this same story came up a while ago, but whatever. Here's my take on the type of swearing in commits as per the story (XXXX represents swearword of your choice).<p>C++: "Finally fixed it. My XXXX head hurts"<p>Javascript/Ruby: "Finished adding 15 new features. I am XXXX awesome"<p>C: "No time to swear, busy hacking. Oh XXXX whoops"<p>Java/C#: "Wouldn't swear, unprofessional &#38; boss is watching"<p>Python: "All happy, &#38; swears are naughty"<p>PHP: "Whats a commit?"<p>(ps. Just for fun, no flamebait intended!)
评论 #3011779 未加载
评论 #3012180 未加载
wickedchicken超过 13 年前
I'm going to assume that at least 25% of swearing in Ruby is attributable to William Morgan: <a href="http://sup.rubyforge.org/svn/trunk/lib/sup/imap.rb" rel="nofollow">http://sup.rubyforge.org/svn/trunk/lib/sup/imap.rb</a>
Vivtek超过 13 年前
Obligatory: and then there's Perl, which <i>is</i> swearing.
ObjectiveSub超过 13 年前
I realize this post is a little tongue-in-cheek, however, you cannot use it to draw any meaningful statistical conclusions. This data makes no sense until you factor in the relative popularity of these languages on Github. We don't know if PHP has little swearing because if it is a great language, or if PHP is rare on Github. Similarly, the reason Javascript and Ruby score so highly is most probably due to the fact that they are extremely popular languages on Github.
评论 #3011675 未加载
kabdib超过 13 年前
<p><pre><code> #define DEFINE_GUID_RIGHT_FUCKING_NOW_DAMMIT(x) // ... stuff </code></pre> I wrote that at 2AM once when I was at a start-up. I'm not proud. (Well, okay, I <i>am</i>).<p>A couple years later (after the start-up had imploded) I was asked to consult to fix issues that cropped up in the code at a customer site -- they'd bought an SDK and were having problems. During a walk-through of my fixes I found myself explaining that line of code to a suit.<p>The suit nodded. "GUIDs. Yeah, getting those right is tricky."<p>[That consulting gig was sweet; short, but I was able to charge $300 an hour. I should have charged more, they basically didn't care.]
jurre超过 13 年前
How can there be so little swearing with php? That's all I'm doing when forced writing that language. Love this type of stuff though!
评论 #3011660 未加载
评论 #3011851 未加载
vbtemp超过 13 年前
Almost all of my work is either in C or python. When I do my embedded system development in C, I generally spend my day swearing at myself and cursing the world. When I do other components in python generally thing "wow. that was easy and fast. And it's so expressive. Wow! I'm in a great mood!". It makes perfect sense to me.
crikli超过 13 年前
I'm surprised at the Javascript figure. I leave a few swears in server-side script but the only people that will see that are other programmers; Javascript, anyone can read that.<p>That said, I've found a couple of rants in my old JS from the IE6 days that, well, if I clean them up they're not really sentences.
评论 #3011939 未加载
ggchappell超过 13 年前
I can certainly understand the high level in C++. But Ruby vs. Python is odd. There are so many similarities in the Ruby &#38; Python communities. The main difference seems to be that Ruby has One Framework to Rule Them All, while Python has ... various things. Maybe that has something to do with it?
olliesaunders超过 13 年前
There’s something really fishy about this. Or, if there isn’t, I really want an explanation.
antimora超过 13 年前
I find using <a href="http://www.google.com/codesearch" rel="nofollow">http://www.google.com/codesearch</a> is more accurate, since it covers a lot more code.
techdmn超过 13 年前
I don't swear in comments or commit messages, but I do often catch myself quietly muttering a string of obscenities while coding. At least I hope it's quiet.
aba_sababa超过 13 年前
Ha. I just made a hack about this at PennApps - <a href="http://www.commitlogsfromlastnight.com" rel="nofollow">http://www.commitlogsfromlastnight.com</a>
评论 #3011987 未加载
评论 #3012013 未加载
damncabbage超过 13 年前
Half of these commit messages may just be sourced from <a href="http://whatthecommit.com/" rel="nofollow">http://whatthecommit.com/</a>
mmaunder超过 13 年前
I'd say PHP is lowest because it has the most non-english devs. Might be interesting to check cross-languages.
Shenglong超过 13 年前
I'm surprised C# is so low. Maybe a broken-mice/keyboards chart would be more descriptive.
athom超过 13 年前
From an old bumper sticker:<p>C code.<p>C code run.<p>Run, code, run.<p>Run, dammit, run!
jalanco超过 13 年前
Maybe it is the demographics of the programmers who are using the languages.
buff-a超过 13 年前
Well my C# libraries on github have got some fucking catching up to do.
bocanaut超过 13 年前
funny thing, would also be interesting to connect the percentage of words used related to one language to see which one is more #wtf or less #shit