Skip to content

Instantly share code, notes, and snippets.

@janv
Last active May 6, 2023 03:55
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janv/6010141 to your computer and use it in GitHub Desktop.
Save janv/6010141 to your computer and use it in GitHub Desktop.
A sad poem, written in Javascript
// Replacing callbacks with scumbacks
// Promises to call you back but then doesn't
// Getting your hopes up again
// and again
var brokenPromise = {
then: doesnt
};
function doesnt(callback){
return brokenPromise;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment