Re:Ask HN: Are we overcomplicating software development?
by AstralStorm on Thursday January 19, 2017 @03:22AM
(#13434069)
Some rules are extremely hard to encode as types or the result is extremely awkward.
Or worse, performance suffers due to encoding.
If it feels like translating into a foreign language, then it likely is that exotic or you are using a wrong language.
When business rules are encoded in datatypes, it's easy to check that the encoding and the transformations are complete, and the logic can easily be mock-tested.
[1] http://degoes.net/articles/modern-fp