Software Engineer's Blog

Showing Posts From

Languages

FastAPI Dependency Injection (DI) Guide

Programming Language

FastAPI Dependency Injection (DI) Guide

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.

Pydantic vs dataclass - When to Use Which?

Programming Language

Pydantic vs dataclass - When to Use Which?

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.

Designing Effective Custom Exceptions in Java

Programming Language

Designing Effective Custom Exceptions in Java

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.

Understanding Java Exception Hierarchy

Programming Language

Understanding Java Exception Hierarchy

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.

Checked vs Unchecked Exceptions in Java

Programming Language

Checked vs Unchecked Exceptions in Java

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.