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

ahmedmusallam

Ahmed Musallam

Posted on January 13, 2019

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

Sometimes, I leave bad jokes in my code, here are some examples from a backup tool I built a while back:

When a user tries to delete a backup:

console.log(`Still wanna do it? just checkin'...`)

When trying to remove a backup but something wrong happens:

spinner.fail(`ummm, yeah.. this is awkward; we could't delete the backups for some reason`)

When the user tries to remove a backup, but then cancels at the prompt:

console.log(`Whew, nothing happened. That must feel good, eh?`.green)

When something goes wrong:

spinner.fail('womp womp... some error occurred *rolls eyes*')

Other times, I add a funny* comment to a funky looking piece of code, just because..

I am curious if other devs do it to, do you do anything like that? funny comments? funny method/variable names? or funny messages you show to users? please share!

*Depends on whom you ask ;)

💖 💪 🙅 🚩
ahmedmusallam
Ahmed Musallam

Posted on January 13, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Meme Monday
discuss Meme Monday

November 25, 2024

Meme Monday
watercooler Meme Monday

September 9, 2024

Meme Monday
watercooler Meme Monday

September 2, 2024

Meme Monday
discuss Meme Monday

October 14, 2024