Software Engineer's Blog

Blog posts — page 37

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.

53. Maximum Subarray

Coding Interview

53. Maximum Subarray

Jason Yang · 29 Nov, 2025

Maximum Subarray (LeetCode 53): Kadane's algorithm explained as one decision — extend or restart — plus the O(n) to O(1) space drop and a full worked trace.