Blog — page 11
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.
Swift closures: syntax, capturing values, escaping and autoclosuresHow Swift closures work: the short syntax forms, trailing closures, how values are captured, @escaping, retain cycles with [weak self], and @autoclosure.
C++ move semantics: rvalue references, move constructors and std::moveHow C++11 move semantics work: rvalue references, writing a move constructor and move assignment, what std::move really does, and the common gotchas.
Introduction to ASP.NET: classic ASP.NET vs ASP.NET CoreWhat ASP.NET is, how classic ASP.NET on .NET Framework differs from ASP.NET Core, which programming models each offers, and a first minimal API to run.
Access control in Swift: private, fileprivate, internal, package, public and openSwift's six access levels (private, fileprivate, internal, package, public, open), what each one allows, and the defaults and rules that trip people up.
Adding a Google Map with a marker to an Android appSet up a Maps SDK for Android API key, add the play-services-maps dependency, and show a map with a marker using SupportMapFragment in Java.
Swift memory management: ARC, reference cycles and exclusive accessHow Automatic Reference Counting frees Swift class instances, how to break reference cycles with weak and unowned, and what exclusive access and actors protect against.
Concurrency and parallelism in Rust: threads, channels, atomics, locks and RayonWorking examples of Rust's standard concurrency tools (threads, scoped threads, channels, atomics, Mutex, RwLock) and data parallelism with Rayon.
How I generate logos with AI: GPT-4 for descriptions, Bing Image Creator for imagesMy two-step process for logo ideas. I ask GPT-4 (on Poe) for written logo descriptions, then paste them into Bing Image Creator or DALL-E.
Writing generic Rust code with traits and trait boundsDefine a Rust trait, implement it for your own types, and write generic functions with trait bounds, impl Trait, where clauses and dyn Trait.
WebAssembly for serverless functions: why it fits and a first Spin appWhy WebAssembly suits serverless functions, which platforms run it (Fastly Compute, Cloudflare Workers, Spin), and how to build a Rust HTTP function with Spin.
FastAPI basics: routes, validation, and dependencies in PythonBuild a small FastAPI app in Python, covering path and query parameters, Pydantic request validation, and dependencies with yield for resource cleanup.
TensorFlow in Python: train, save and serve an MNIST classifier with KerasTrain an MNIST digit classifier with TensorFlow and Keras in Python: load data with tf.data, build, train and evaluate a model, save it, and serve it.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)