Hacker News new | ask | show | jobs
by acemarke 442 days ago
What kind of "updates"? Library versions? Code changes? What kind of types are you having to change?

Yes, managing types does take more work up front than _not_ having types... but the overall result should be that you benefit from them significantly by having fewer runtime bugs, and an easier time maintaining and understanding the code.

1 comments

Mainly just when adding new features. For example, updating a trpc endpoint to return an additional field often requires updating other unrelated prisma queries just to satisfy the return types.

I get types are necessary, it just seems to me that they should only ever be defined once and in one place rather than defining any type you need anywhere you need it.