linux内核里的脏话

  2007-08-02


这是一个非常有趣的统计,两张图形象的反映出了Linux内核源代码中,脏话字眼的统计数字。
其实不单是Linux内核源代码,普通的PHP程序的源代码里也会有很好玩的注释哈!这个很形象的反映了程序写程序时的心情。

内核里平均每行的脏话数

[attach=90]

 

内核里的脏话总计数

[attach=91]

The number of various words in c, h and S source files in the linux kernel, updated monthly or whenever I hear of a new release. It’s inspired by the linux kernel fuck count, which unfortunatly is very outdated.

A little about the counting method used: A word is counted if it appears in any context, even if part of another word (such as love in rollover, which was why this word wasn’t included ;). It’s not grep -c, multiple words on one line may be counted. And don’t worry about the mirror either, the graph is generated on a box local to ftp.programvareverkstedet.lkams.kernel.org, an official kernel.org mirror.

Back to other stuff Vidar Holen’s made.

You can get the script here, but it’s pretty horrible and I wouldn’t recommend it.