Blog — page 3
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.
Processing thousands of prompts with the Claude Message Batches APIWhen the Message Batches API fits, and a script that submits a batch with custom IDs, polls it, reads the results and resubmits errored or expired requests.
Web Streams in Node.js: ReadableStream, TransformStream and pipeToUse WHATWG streams in Node.js 24: create and iterate streams, split lines with TransformStream, parse fetch bodies, convert to Node streams, handle backpressure.
Python's sqlite3 module: row factories, transactions, WAL and adaptersPractical sqlite3 for Python 3.12+: sqlite3.Row, what with conn really does, the autocommit attribute, executemany, WAL mode, date adapters and threads.
Idempotent ETL jobs: watermarks, upserts and safe rerunsBuild an incremental extract-and-load job that can run twice without harm: high-watermarks, an overlap window for late rows, SQLite upserts and run ids.
Measuring C# performance with BenchmarkDotNetWrite and read C# microbenchmarks with BenchmarkDotNet: [Benchmark], [Params], baselines, [MemoryDiagnoser], Release builds, and what each results column means.
Finding slow code in Go with pprofProfile Go code with pprof: net/http/pprof in a service, CPU and memory profiles from go test, top and list, heap versus allocs, and fixing a hot allocation.
Writing a parser in Rust with nom 8Parse key=value log lines in Rust with nom 8: the Parser trait and .parse(input), core combinators, typed values with map_res, cut for clearer errors, and tests.
Handling LLM API rate limits: retries, backoff and concurrency capsTell 429s from 529s and 5xx errors, use the Anthropic SDK's built-in retries, add backoff with jitter, and cap concurrency and input tokens with asyncio.
Explicit resource management in TypeScript with using and await usingHow using and await using work in TypeScript: Symbol.dispose, DisposableStack, tsconfig settings, Node 24 support, plus temp directory and SQLite transaction examples.
Tracing a Python Web Service with OpenTelemetry and JaegerSet up the OpenTelemetry SDK in a FastAPI app, add manual spans, attributes and events, export over OTLP, and look at the traces in Jaeger running in Docker.
Free-threaded Python 3.14: running threads without the GILWhat PEP 703 and PEP 779 changed, how to install the 3.14t build, check whether the GIL is on, time a CPU-bound threading example, and avoid extension pitfalls.
StateFlow and SharedFlow in Kotlin for Android UI stateHot and cold flows, StateFlow for screen state, SharedFlow for one-off events, stateIn with WhileSubscribed(5000), repeatOnLifecycle, and testing with runTest.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)