double value; /* or your money back! */ short changed; /* so triple your money back! */
About this quote
- What does it mean?
- A comment juxtaposes a simple variable declaration with a humorous promise of money back, implying a playful exaggeration.
- In plain terms
- It's a joke about getting money back.
- What can you take from it?
- Use humor to lighten technical code comments.
Where it applies
Putting it to work
Questions to consider
- When is humor appropriate in code?
- Could jokes obscure intent?
Another view
Humor in comments may be confusing for future maintainers.
More from Larry Wall
I think I'm happier with that. $rubyometer += 0.3 or so. :-)
Permalink to quote #235 And in the limiting case where the optimizer is completely broken because it's not implemented yet, we get to work around that too. Optionally...
Permalink to quote #234 I try not to confuse roles and traits in my own life. Being the Perl god is a role. Being a stubborn cuss is a trait. :-)
Permalink to quote #233
Related quotes
If you smell what The Rock is cooking!
Dwayne (The Rock) JohnsonDwayne (The Rock) Johnson quote #1 I asked him the most important question that I think you could ask - if he had ever seen Caddyshack.
Jesse VenturaJesse Ventura quote #7 Guides cannot master the subtleties of the American joke.
Mark TwainMark Twain quote #66