Live a little. When you've passed away, was all the seriousness paid off?
That said, funny code should still work
Not having to understand someone's goofy inside joke gives me more time to spend on the things that matter the most to me. So: less funny code == living a little more.
There's a middle ground for sure. I've left a few witty comments and loglines in my time.
But I've also had to debug a Delphi unit which returned error codes inspired by the magical supercomputer Hex from the Discworld novels.
"Divide by cucumber error" is not a decent enough representation of a module's internal state, no matter how funny you think you are.