devpun icon indicating copy to clipboard operation
devpun copied to clipboard

Add a few more jokes, change the jokes.json format a bit, and add a `devpun.py` script

Open BMDan opened this issue 6 years ago • 0 comments

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!

BMDan avatar May 01 '19 21:05 BMDan