Live data from Hacker News

Linux kernel swear counts

vidarholen.net

21–26 of 26 posts

Re: Linux kernel swear counts

#21

I'm curious about the motivations for coding profanity. I've occasionally included comments like "don't f* with this unless you understand x, y, and z" in an attempt to protect fragile sections of code from careless collaborators. Nearly identical comments without profanity seemed ineffective. Within common conversations I know that profanity often carries an implication of violence, usually for the purpose of intimi…

Looking through this, the two biggest categories seem to be complaints about buggy/weird hardware (that driver writers have to work around) and complaints about compiler quirks. I can imagine other projects having similarly-motivated cursing at annoying library weirdnesses.

The motive seems to be to acknowledge to the reader that, yes, this code is ugly, and it's not the writer's fault; it's the product of some bugginess external to the codebase that really isn't possible to fix. Blame "fucking gcc", or Sun for having the nerve to "take such nice parts and fuck up the programming interface" (to quote two examples from the Linux code). The target of the anger is most definitely not the intended audience.

Re: Linux kernel swear counts

#22
post #8
post #4

There is an area around 2.4.36.5 where the fall and rise of "fuck" and "shit" closely resemble each other. I'm guessing it's a macro which concatenates the two expletives for use in the code.

or a variable named 'fuckshit'

That's what I'm thinking, they used the ## preprocessor operator to stick "fuck" and "shit". Oh, if this is linux, then the identifier is more likely to be "fuck_shit".

Re: Linux kernel swear counts

#24
When this was sumitted some years ago there was some discussion. It might be worth comparing that with the comments here:

https://news.ycombinator.com/item?id=850761

It has been submitted a few more times, none with comments:

https://news.ycombinator.com/item?id=2070056

https://news.ycombinator.com/item?id=4045103

https://news.ycombinator.com/item?id=6307849

The last of these was just 14 hours ago - the trailing slash defeating the HN dup detector.

Re: Linux kernel swear counts

#26

Can anyone explain the inclusion of "penguin"? I know Tux is the mascot and all, but is it some kind of inside-joke-swear-thing?

If you look at the grep output that gizmo686 posted to pastebin (see below), you can search for penguin. There are a lot of web addresses, email addresses, maintainer roles (chief penguin), and logo references. There are a few instances of variable names containing penguin as well.

http://pastebin.com/MNZF1Vz0

Post reply on HN