Russell Duhon

Traditional sporadic software developer blogging. I'm currently looking for a new position, hire me.

Blog

Beautiful SQL Templates in PostgreSQL with PL/Rust and minijinja

15 January 2024
Going directly from SQL to structured text like HTML is really useful if you want to use frameworks like HTMX alongside backends like PostgREST, but databases don't have great text-formatting capabilities. Luckily, now that PL/Rust is available, Rust template frameworks like minijinja are available in PostgreSQL. This post shows how to use minijinja to return HTML directly from PostgreSQL.

Testing Algorithms for Data Structures: Binary Tree in Python

13 December 2023
What makes a satisfying test for in-place traversal of a binary tree? Using a Python example based on a common interview live coding question, see how Hypothesis can greatly increase confidence in code dealing with fundamental data structures.

Why is WebAssembly interesting?

15 November 2023
What are the strategically interesting things that WebAssembly makes feasible? Oh, and what does it have to do with Python?

Quick Tip for Static Perseus Websites

2 November 2023
Using main_export and the right CLI commands for static Perseus.

Writing a Static Site with Rust and Perseus

2 November 2023
The basics of defining pages, making templates, and filling them with data, all using Rust that gets turned into WebAssembly.

Property-based Testing from Scratch (in Python)

13 February 2018
Writing a property-based test with no framework to understand how they work, and how they're useful for general application programming.

Muddled (Property-based) Tests

9 February 2018
Writing really really good tests for a real world data transformation problem.

Messily Thinking Pythonically

2 February 2018
I attempt to narrate my thought process solving a data transformation problem.