A beautiful gem of code from the Python docs.

Categories: Beautiful Code

So once again I found myself looking at the documentation for the Python re module, trying to remember the difference between matches and matching groups and I saw a code snippet that was so beautiful that I wanted to break it down and share it. It’s a fully-functional mini-language tokenizer in only 41 lines of […]

A 42-line JSON template engine.

Categories: Useful Code

Note: this was originally published on my personal blog (smeans.com) in 2018. So, I’ve been building projects using NoSQL databases (like MongoDB and  Apache CouchDB) for several years now, and there are a lot of things I really like about them. But one need I’m always bumping up against is the ability to summarize tons of […]