News for hackers. Stuff that matters.
Re:Keep Pydantic out of your Domain Layer by ejflick on Saturday July 26, 2025 @03:35PM (#44696433)
> APIs should not present nested objects but normalised data

If something is nested, let it be represented as a nested structure. I find flattening causes more mental overhead. If something is too flat, it becomes less obvious what data is exactly necessary to do what you want to do

There are no comments on this comment yet.