DEV Community


Discussion on: Do you leave jokes in your code? If so, please share!

kspeakman profile image
Kasey Speakman • Edited

I recently used this code comment.

// Nonsense //
//   <reason why I had to do nonsense>

To clarify, I leave this in the code. The code had to be written to dull a weird edge of a library. It was odd in comparison to the rest, so I needed to explain. It is hoped that one day the weird edge will go away and I can remove the code.