Hacker News new | ask | show | jobs
by slowmovintarget 1076 days ago
That assumes that most comments contain cursing.
1 comments

No it doesn’t. If any more than 0% of comments contain profanity, then on average code with more profanity will be better.
Not quite.. You still have to assume that there is more profanity per comment than per (uncommented) LOC.

A piece of code with a lot of swear words for variable names but no comments at all would be an extreme example.

>You still have to assume that there is more profanity per comment than per (uncommented) LOC.

I think that's a very safe assumption. People don't generally use profanity for actual code (variable or function names etc.).