Articles on Automation · Python · Rust · AI

How to turn manual business processes into reliable software, and how to build it well: articles on automation, Python, Rust and AI from 20 years of production software.

  • How to Update Multiple Page Elements from One htmx Request

    A button submits code, tests run, feedback appears. Standard htmx. But the submissions dropdown stays stale; the new submission is in the database, just not in the dropdown. One request, two elements to update.

  • "Rust Is for People Who Want to Be Punished." Now Jochen Trusts It More Than Python.

    Jochen Deister is a lawyer who codes for fun. He has years of Python behind him and no intention of ever being hired to program.

    Three months ago, Rust was just a name to him, the language for "the big shots" with a notoriously steep learning curve. Then he built a JSON parser from scratch in Rust, and it ran faster than the equivalent in Python on every dataset he tested, up to 3.5x faster on some. "Holy F" he reacted when he saw the results.

  • How to Tell if Your Python Mock Is Actually Working

    A test can pass for the wrong reason. When you're mocking a third-party API call, the test might look green because the real API happened to return an error, not because your mock did anything at all.

  • Build the Simplest Thing That Works

    I needed a CRM the other day. Not Salesforce, not even a web application. I just needed a way to track contacts, notes, reminders, and a small product catalog.

    Before writing any code, I focused on the constraints first.

  • AI Human-in-the-loop: News Digest Triage Telegram Bot

    In my trend digest article I shared a quick tool to keep on top of tech trends, but it's a one-way street: the model gives information, but I still have to decide what to do with it. Let's build the second half: a Telegram bot that shows me each story, guesses a tag, and lets me confirm or overrule it with one tap.

  • The control layer is the product, not the model

    Gary Bernhardt posted something this week that names a phenomenon we teach in our agentic AI course:

    Everyone seems fixated on the models, but I think there's so much low-hanging fruit in the control layer above the model. "Agent" and "harness" sell that layer short. There's so much more that we can do beyond "read input, send to model, run commands it returns."

  • Learning a New Programming Language Is More Important Now, Not Less

    Josh Engroff has been writing Python for years and runs agentic AI workflows every day. He bought the Rust book a year and a half ago, did some online exercises, stalled.

    Six weeks into the cohort, his hand-rolled JSON parser beat CPython's stdlib json module on every fixture in his benchmark suite, including three real-world files from the simdjson and serde-json corpora. Here is how he did it.

  • Two Python Scoping Bugs: A Lesson in Object Lifetimes

    Your app works fine with one user. You open a second browser tab and the data is wrong. Your tests pass individually but fail when run together. The culprit: a global object created at module scope.

  • From Python Script to Production: A Django Coaching Case Study

    Six weeks of 1:1 coaching. The output: a Django app in production on Fly.io, covering movies, anime, and manga, with user accounts, a save library, Docker, and CI/CD on every push. Daniele started with Python skills and a project idea. Here's what the work actually looked like.

  • Mind Map Your App Before You Write a Line of Code

    A new project starts as a complete picture in your head. Then you open an editor and realize you have no idea what to do first. That gap is where projects stall.

Become a better software engineer, two minutes at a time. Short, practical lessons from real projects, coaching, and code reviews. See example lessons.