3 ms·
You can also search for "make invalid states impossible/unrepresentable" [0] to find more info on related practices. See "domain modeling made functional" [0] a
by rapnie 8mo ago
You can also search for "make invalid states impossible/unrepresentable" [0] to find more info on related practices. See "domain modeling made functional" [0] as a nice example
[0] https://geeklaunch.io/blog/make-invalid-states-unrepresentable/ https://geeklaunch.io/blog/make-invalid-states-unrepresentab...
[1] https://www.youtube.com/watch?v=2JB1_e5wZmU https://www.youtube.com/watch?v=2JB1_e5wZmU
- hutao 8mo agoThe phrasing that I hear more often is "make illegal states unrepresentable"; both the submitted article and Alexis King's original article use this phrase. At least according to https://fsharpforfunandprofit.com/posts/designing-with-types-making-illegal-states-unrepresentable/ https://fsharpforfunandprofit.com/posts/designing-with-types..., it originates from Yaron Minsky (a programmer at Jane Street who is prominent in the OCaml community). EDIT: Parent comment was edited to amend the "impossible/unrepresentable" wording
- rapnie 8mo agoYes, sorry. I thought to add some resources to it, or it would be a too vague comment and found the better phrasing.