Programming Language
Java Set Explained (HashSet vs LinkedHashSet vs TreeSet)
Jason Yang · 22 Mar, 2026
When to use HashSet, LinkedHashSet, or TreeSet in Java: their differences explained simply, and how they map to Python's set, dict, and sorted().
Showing Posts From
Programming Language
Jason Yang · 22 Mar, 2026
When to use HashSet, LinkedHashSet, or TreeSet in Java: their differences explained simply, and how they map to Python's set, dict, and sorted().
Framework
Jason Yang · 23 Jan, 2026
Pydantic v2 settings give you type-safe, environment-driven config. Covers default, default_factory, and FastAPI integration best practices.
Programming Language
Jason Yang · 08 Jan, 2026
FastAPI dependency injection is a request-scoped resource engine, not just object passing. Covers lifecycles, dependency chains, testing, and clean architecture.
Programming Language
Jason Yang · 08 Jan, 2026
The Python Singleton pattern ensures one instance per process. Here are the Pythonic ways to do it (module-level, decorator, metaclass), plus thread safety and when not to use it.
AI & LLM
Jason Yang · 03 Jan, 2026
Generate speaker-labeled subtitles on Ubuntu 24.04 with Whisper and pyannote.audio (CUDA GPU) — a full working setup from Python 3.10 to a combined transcript + speaker SRT.
Programming Language
Jason Yang · 30 Nov, 2025
Pydantic vs dataclass: use Pydantic to validate incoming data, dataclasses for internal structures. Real examples and where each one breaks.
Cloud & DevOps
Jason Yang · 25 Nov, 2025
Publish private Python libraries to GCP Artifact Registry with Poetry: the critical publish-vs-install URL distinction that avoids 404s, plus auth tokens.
Programming Language
Jason Yang · 17 Nov, 2025
Manage FastAPI projects with Poetry: project setup, dependency locking, virtual environments, and testing — the full pyproject.toml workflow for teams.
Programming Language
Jason Yang · 17 Nov, 2025
Migrating Pydantic v1 to v2 in a FastAPI project? Here's the full v1→v2 checklist plus the validator, settings, and config changes that break.