Comment

Comment by bcrosby95

It's not complexity. It's pointless bookkeeping.

If you don't cut corners on your static typing, you're looking at 2-4 single use classes per API endpoint: 1-2 for the web layer, and 1-2 when going into the domain logic layer.

Many people skimp and just re-use the core domain class for everything, which is the worst of both worlds.

I'll take a map, spec, and select-keys over this all day long.

parent bcrosby95 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton