Blog

AI-powered Python rewrite to Rust

May 12, 2026

Cheatsheet

Python is great, but at some point, its performance hits the wall. When this happens, we can rewrite the computationally intensive part of our code to Rust. This series shows how to confidently rewrite Python code to Rust with the power of AI.

AI-Powered Rewrite from Python to Rust - part 4

May 12, 2026

This article is part 4 in the series that shows how to confidently rewrite Python code to Rust with the power of AI. In this part, we use property-based testing to find and fix a subtle bug that was introduced during the rewrite.

AI-Powered Rewrite from Python to Rust - part 3

May 5, 2026

This article is part 3 in the series that shows how to confidently rewrite Python code to Rust with the power of AI. In this part, we use the tests provided in parts 1 and 2 and an AI agent to implement a Rust version of the Log parser.

AI-Powered Rewrite from Python to Rust - part 2

April 28, 2026

This article is part 2 in the series that shows how to confidently rewrite Python code to Rust with the power of AI. In this part, we use tests from part 1 and rewrite them to a contract test pattern to ensure we'll be able to test Python and Rust implementations with the same set of tests.

AI-Powered Rewrite from Python to Rust - part 1

April 21, 2026

Python is great, but at some point, its performance hits the wall. When this happens, we can rewrite the computationally intensive part of our code to Rust. This article is part 1 in the series that shows how to confidently rewrite Python code to Rust with the power of AI.

3 Tips for AI Code Review That Doesn't Suck

April 14, 2026

Cheatsheet

AI code review sounds great in theory. In practice, most teams just end up with more noise in their merge requests. In this article, I share 3 steps that made AI code review actually useful in my team and also reasonably priced (under $1.50 per review).

Python Development Workflow for AI era

April 8, 2026

AI made coding faster. But faster code without a fast feedback loop is just faster chaos. If we can code faster, we need everything around it to keep up: pipelines, testing, deployments, and monitoring. In this article, we break down a Python development workflow designed for shipping reliably in the AI era. Four pipelines. Three environments. Small MRs, you're willing to throw away. Deployments that are non-events. This is the first in a series where we'll dig into each step - from automated pipelines to feature flags to monitoring that catches issues before your customers do.

Why most Python tests are a waste of time?

March 31, 2026

Cheatsheet

Most Python test suites have the same problem: they cost more trouble than they save. CI jobs that take forever, tests that break on every refactor, flaky pipelines you keep restarting. After years of writing (and deleting) tests, I've landed on 7 qualities that separate tests worth keeping from tests that just slow you down.

Mock HTTP Calls Effortlessly in Python with responses

Jan. 7, 2026

A utility for mocking Python's requests library in tests, helping avoid real network traffic during testing.

Time Travel in Your Tests with freezegun

Nov. 27, 2025

A library enabling developers to freeze time in tests for reliable validation of subscription status, trial eligibility, and date calculations.