Blog — page 7
664 posts on software development, newest first. Browse by topic:Rust, Go, Python, JavaScript & web, AI & data, DevOps & tooling, Mobile & Android, .NET & C#, C++ & systems, LaTeX, Investing, Everything else.
Writing a Python extension in Rust with PyO3 0.28 and maturinBuild a Python module in Rust with PyO3 0.28 and maturin: #[pyfunction], a declarative #[pymodule], the Bound API, py.detach for threads, and wheels.
Caddy as a Reverse Proxy with Automatic HTTPSPut Caddy in front of your apps: reverse_proxy, automatic certificates and what they need, several sites, headers, load balancing, Compose and local HTTPS.
Building an MCP server in Python with FastMCPWrite a Model Context Protocol server with the official Python SDK: tools, resources and prompts over stdio, tested with the Inspector and added to Claude Code.
Template literal types in TypeScript: typed routes and event namesUse template literal types and infer to pull params out of route strings like /users/:id, build typed event names, and know where the type checker gives up.
Python typing with Protocols and the PEP 695 generic syntaxStructural typing with typing.Protocol, the limits of runtime_checkable, Python 3.12's generic syntax and type statement, checked with mypy and Pyright.
How Parquet files work: row groups, column chunks and statisticsWhat is inside a Parquet file: row groups, column chunks, pages, min/max statistics and predicate pushdown, codecs and encodings, inspected with pyarrow.parquet.
SwiftUI's @Observable Macro: Moving Off ObservableObjectHow the Observation framework changes SwiftUI state: @Observable instead of ObservableObject and @Published, @State for owned models, @Bindable and typed @Environment.
A portfolio rebalancing calculator in PythonWrite a rebalancing calculator in plain Python: target weights, drift, rebalance bands, putting new cash to work before selling, and rounding to whole shares.
Writing an incremental source generator in C#Build a C# incremental source generator with IIncrementalGenerator and ForAttributeWithMetadataName: project setup, emitting code, referencing it, and testing its output.
Routing in Go's net/http with method and wildcard patternsHow Go's ServeMux patterns work: methods, {id} and {path...} wildcards, {$}, precedence and conflicts, automatic 405s, and middleware as plain functions.
Serde attributes in Rust: rename, default, flatten and enum taggingThe serde attributes that shape your JSON: rename_all, default, skip_serializing_if, flatten, deny_unknown_fields, the four enum representations, and with.
A small eval runner for LLM features in PythonBuild a 160-line eval runner for an LLM feature: JSONL test cases, exact, regex and LLM-as-judge graders, concurrent runs and scores tracked per prompt version.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)