DEV Community

Discussion on: In Defense of Defensive Programming

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

First - yes! "Using asserts in production" is absolutely another way of describing what I'm trying to get across!

And second, no - I haven't checked out io-ts. But I appreciate the heads-up, and I'll definitely give it a look!

Collapse
 
ksaaskil profile image
Kimmo Sääskilahti

Cool! I also can't resist linking the great Parse, don't validate blog post by Alexis King, though it's most directly concerned with strongly typed languages like Haskell.

Thread Thread
 
cipharius profile image
Valts Liepiņš

I referenced the exact same blog post in my response!

You might be interested in seeing my attempt at applying those ideas to TypeScript:
dev.to/cipharius/comment/15im8