When having squashed a bug in a program, sometimes, one just feels like unloading the stress into a unfriendly, dirty comment like(taken from friend’s code):

//Scratch my ballZ...this ptr gets verified

or, the ever famous

//You have a bug, fuckers

This may make you feel much better in the short run – but on the long run, will backfire at you heavily. Nowadays, almost everyone reads other people’s code eventually. Your code hets reviewed, gets sold or lent out, or gets published in some kind of news source. This can happen to everyone – even a oneman show is not safe from code leaks(made by fatigue, for example when blogging after coding for 6h).

If the code ever makes it online, lawyers and readers alike will rip you up. This happened to me once, trust me, it is no nice experience(here). I didnt get sued, but if the comment would have been a bit more insulting, I wouldnt be writing this lines here.

Overall, swearing in comments doesnt pay out. Get yourself a punching ball, hit your collegue, do anything…but dont write an insulting comment….

P.s. Someone just took a look at the swearing in the Windows 2000 source code – that motivated me:
http://www.kuro5hin.org/story/2004/2/15/71552/7795

Related posts:

  1. Why LedManager can’t become Open Source
  2. On chimping out
  3. This phone’s user interface…SUCKS
  4. Windows XP SP2 Bluetooth PAN ICS-or why the Windows XP SP2 bluetooth stack is a joke
  5. Djarr, matey – or – a rather nutty tale