Skip to content

Blog — page 13

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.

  1. .NET & C#Unit testing .NET code with NUnit: setup, assertions and test casesSet up an NUnit test project for .NET, write tests with Assert.That and [TestCase], and run them with dotnet test or Visual Studio.
  2. PythonPyTorch basics: tensors, autograd and a first training loopPyTorch basics in one sitting. Create tensors, compute gradients with autograd, define an nn.Module, and train a small network with a standard training loop.
  3. Mobile & AndroidMixing Swift and Objective-C: bridging headers and the generated Swift headerHow to call Objective-C from Swift with a bridging header, call Swift from Objective-C through the generated -Swift.h header, and how types bridge.
  4. PythonGetting started with Pygame: a game loop, input and spritesInstall Pygame, set up a game loop with a fixed frame rate, handle keyboard input, and move a sprite around the screen, in one runnable script.
  5. C++ & systemsC++ standard library containers and algorithms: an overview with examplesAn overview of the C++ standard containers and when to pick each, plus a runnable example using std::sort, binary search, std::erase_if and std::unordered_map.
  6. Mobile & AndroidCreating, testing and publishing a Swift package with SwiftPMCreate a Swift library with swift package init, understand the Package.swift manifest, add a dependency, build and test it, and publish versions with Git tags.
  7. PythonMaking HTTP requests in Python with RequestsHow to make HTTP requests in Python with Requests: GET and POST, query parameters, file uploads and downloads, timeouts, errors, auth and redirects.
  8. PythonPyCharm for Python: project setup, refactoring, debugging and GitSet up a PyCharm project with a virtual environment, then use its code completion, refactoring shortcuts, debugger and Git tools in daily Python work.
  9. JavaScript & webWebSockets in Deno: an echo server and clientBuild a WebSocket echo server in Deno with Deno.serve and Deno.upgradeWebSocket, and connect to it with the built-in WebSocket client.
  10. .NET & C#Entity Framework Core basics: models, DbContext and LINQ queriesHow Entity Framework Core maps C# classes to tables, with a runnable SQLite example of a DbContext, saving and querying data, and a note on migrations.
  11. PythonExtracting text from a PDF in Python with pypdfA small command-line script that uses pypdf (the successor to PyPDF2) to write the text of every page in a PDF to a text file, including encrypted PDFs.
  12. PythonProtocol Buffers in Python: schemas, code generation and schema evolutionHow Protocol Buffers work: define a .proto schema, generate Python code with protoc, serialize and parse messages, and evolve the schema safely.

© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)