News for hackers. Stuff that matters.
Re:Ask HN: Are Funny Code Comments Useful? by nickmolnar on Wednesday January 14, 2009 @09:37AM (#433625)
I just found this. Apparently the Linux kernel is primarily written by sailors.

http://www.vidarholen.net/contents/wordcount/

Re:Ask HN: Are Funny Code Comments Useful? by silentbicycle on Wednesday January 14, 2009 @12:09PM (#433869)
/* WTF IS THIS */ can actually speak volumes about code, though.
Re:Ask HN: Are Funny Code Comments Useful? by lbrandy on Wednesday January 14, 2009 @10:35AM (#433725)
Of course they are. Humor is useful. We tracked down a bug in our code the other day to one of the hard-coded internal constants being too high... It had the comment "I sort of just made this up. Probably worth testing." If it had been commentless, we would have worried by moving it we'd fix our use-case but break some other use-case.
Re:Ask HN: Are Funny Code Comments Useful? by silentbicycle on Wednesday January 14, 2009 @12:06PM (#433865)
I don't think that's an example of humor in comments -- it's just saying, "I'm not sure this is right, you should test it." That's pretty important, actually.

I think the question is more about comments that are just puns or something, like:

  p = point(w, 0, 0);     /* woo hoo! */
Re:Ask HN: Are Funny Code Comments Useful? by gabrielroth on Wednesday January 14, 2009 @10:56AM (#433760)
What's useful there is not the humor but the information.
Re:Ask HN: Are Funny Code Comments Useful? by lbrandy on Wednesday January 14, 2009 @10:58AM (#433761)
Humor is still useful, just less evidently. It helps create a good environment and culture.
Re:Ask HN: Are Funny Code Comments Useful? by tjr on Wednesday January 14, 2009 @11:17AM (#433796)
I agree entirely, but I have learned that some major airplane manufacturers hold quite the opposite opinion.
Re:Ask HN: Are Funny Code Comments Useful? by maryrosecook on Wednesday January 14, 2009 @11:21AM (#433801)
I ocasionally find myself writing, "Warning: obscenely hackalicious hackety hack", or something similar. When I come across it later, it makes me laugh and makes me refactor.