Framework
The Canonical Way to Manage Config with Pydantic v2
Jason Yang · 23 Jan, 2026
Pydantic v2 settings give you type-safe, environment-driven config. Covers default, default_factory, and FastAPI integration best practices.
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 vs Spring Core: how Python and Java differ on DI, singleton scope, resource lifecycle, and execution models — a practical developer comparison.
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.
Homelab
Jason Yang · 05 Jan, 2026
Set up SSH key-based login from Ubuntu to a Synology NAS (DSM 7.1) for secure, passwordless access — enable User Home, add your key, and disable password auth.