Every now and then, I look at the coding challenges on Free Code Camp for a change of pace. The assignment for this one was to create a generator that would spit out randomly selected quotes. I decided mine would dispense at random one of the not-so-randomly misattributed quotes that various wags posted to Twitter, inspired by a 2012 tweet by short-lived government appointee Anthony Scaramucci.
It’s a rat-simple toy, and the code is Not Nice. But it amused me and at least 26 other people.
- Random Quote Machine (the HTML, CSS, and JS source)
- Free Code Camp: Build a Random Quote Machine (the original prompt)
- Ron Nurwisah, “Anthony Scaramucci Tweeted a Fake Mark Twain Quote, Hilarity Ensues,” Huffington Post, 7/22/2017; updated 07/24/2017