devpun
devpun copied to clipboard
Add a few more jokes, change the jokes.json format a bit, and add a `devpun.py` script
More jokes
I'm hilarious. Even my mom thinks so.
jokes.json Format Changes
I noticed that most of jokes.json repeats its question and answer in the text, so I made the text an optional override for the question and answer. Support for this particular bit of prestidigitation in the JavaScript implementation is beyond my expertise.
I also sorted the keys and standardized their spacing via a quick round-trip through python -m json.tool.
devpun.py
Done in typed Python formatted with black and isort. Why? Because we might be writing jokes, but even we have standards, dammit!