Did this make the project go faster, and development more fun, or was it just distracting?
Funny examples of your own would be appreciated.
Ask HN: Are Funny Code Comments Useful?
webmaster-talk.com
1–9 of 9 posts
Did this make the project go faster, and development more fun, or was it just distracting?
Funny examples of your own would be appreciated.
Ask HN: Are Funny Code Comments Useful?
webmaster-talk.com
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.
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.
What's useful there is not the humor but the information.
Earlier quoted context omitted.
What's useful there is not the humor but the information.
Humor is still useful, just less evidently. It helps create a good environment and culture.
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.
I think the question is more about comments that are just puns or something, like:
p = point(w, 0, 0); /* woo hoo! */I just found this. Apparently the Linux kernel is primarily written by sailors. http://www.vidarholen.net/contents/wordcount/