News for hackers. Stuff that matters.
Re:TypeScript 3.4 by true_religion on Saturday March 30, 2019 @03:21PM (#19531233)
I wouldn't call that an antipattern.

I treat other systems like I do the database and enforce consistency at the API level.

I wouldn't ask for a database to be totally untyped (and thus silently coerce things into its internal types in reality), so I don't ask for the same in an API.

Though, I can understand some people have differing preferences---MongoDB is popular for example---but I wouldn't call it an anti-pattern no matter which choice one makes.

There are no comments on this comment yet.