Parse, Don’t Validate (lexi-lambda.github.io)
recommended by 2 users | 2019 | 642 points by undreren | functional programming | original thread |
2 users recommended this thread. What they said:
tpaschalis Mar 12, 2020 | on: I Don't Use Classes | context

An excellent article on type-driven design and development was posted on HN [1][2], as darkkindness put it "Encode invariants in your data, don't enforce invariants on your data"

[1] https://news.ycombinator.com/item?id=21476261 [2] https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...

blowski Jul 22, 2024 | on: Parse, Don't Validate (2019) | context