Comment

Comment by SkyPuncher

Static typing is fantastic in a closed system. It's predictable and reliable.

My problem is nearly every type system breaks down when you try communicate with something outside of the closed system (e.g. API calls, 3rd party integration, etc).

An API returns an unexpected data type, Missing a field that's supposed to be required, Starts returning a number as a string because they changed their ID system, etc.

It always seems to end up in types where every field is optional - defeating the purpose of having types in the first place.

parent SkyPuncher 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton