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().
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.
Programming Language
Jason Yang · 01 Jan, 2026
Lombok's @Builder ignores your field defaults — use @Builder.Default or final to keep them. Here's why it happens and how to fix it.
Programming Language
Jason Yang · 02 Dec, 2025
Add a gRPC endpoint to a Spring Boot order-service: define .proto files, generate stubs, implement the RPC logic, and expose a new CreateOrder API.
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.
Programming Language
Jason Yang · 29 Nov, 2025
Exception logging in Java done right: catch errors in the correct layer, log them once, and keep clear context — practical patterns for real systems.
Programming Language
Jason Yang · 29 Nov, 2025
Design effective custom exceptions in Java: structure them well, separate business and system errors, and integrate cleanly with Spring Boot error handling.
Programming Language
Jason Yang · 28 Nov, 2025
Why real Spring Boot developers prefer unchecked exceptions over the textbook rules — modern exception-handling patterns for clean, maintainable service code.
Programming Language
Jason Yang · 27 Nov, 2025
Understand Java's Throwable hierarchy — Error vs Exception, checked vs unchecked, and RuntimeException — to write safer error handling in production apps.
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.
Programming Language
Jason Yang · 14 Nov, 2025
Checked exceptions are enforced by the Java compiler; unchecked ones aren't — here's the difference, with the class hierarchy, code examples, and when each applies.