Composable validations
http://milhouseonsoftware.com/2015/02/08/composable-validations/
TL;DR: In this post I will try to show why understanding multiple programming paradigms is useful and important (and also fun!). This post tackles the common problem of aggregating validation results in a comprehensible return value. The problem we solve here is almost the same as the one solved by ActiveRecord’s errors.
Post a comment