A hand-picked selection of the worst computer puns, really cringe worthy stuff.
Submit your own at the bottom of puns.json
and if they make me cringe, I'll merge them.
I'm keeping these gender-neutral, a programmer isn't automatically a "he", so please use the singular they pronoun when refering to a person in the puns.
Node.js Package
Also a Node.js package available on NPM and the GitHub registry.
npm install puns.dev
const puns = require("puns.dev");
.all
puns.all()
Returns an array of puns:
[{
"pun": "Q: How do you comfort a JavaScript bug?",
"punchline": "A: You console it!"
}]
.random
puns.random()
Returns a pun, as well as the random id that was generated:
{
"pun": "Q: How do you comfort a JavaScript bug?",
"punchline": "A: You console it!"
"id": 7
}
.get
puns.get(id)
Returns the pun from the id in the pun list:
{
"pun": "Q: How do you comfort a JavaScript bug?",
"punchline": "A: You console it!"
}
.search
puns.search([keyword])
Returns a list of puns matching the list of keywords:
[{
"pun": "Q: How do you comfort a JavaScript bug?",
"punchline": "A: You console it!"
}]
TBD