I’m not sure yet how it is in Scala, but it just got one more, new micro library authored by me. This one is called ScalaVal and aims to help you writing validation in your application. Project’s README answers “Why” question pretty well, I think:
Because every project bigger than HelloWorldApp requires data validation at some point. Reinventing the structure and validation handling boilerplate every time you need one is definitely not something developers enjoy. I too had this pain when hacking on Codebrag.
This small utility aims to provide minimal framework to write your validation logic, act as a guard between data and action and collect results in unified way. That’s all it does. And it’s really, really tiny. No external dependencies and no magic included. Just boilerplate.
Entire source code is one, quite small source file (there is way more test code there). It may look silly to release something like this as full blown open source project, but as I said - I’m in love with micro-libraries approach and I really appreciate that I can take small library like this and it solves me exactly one issue in my project - specifically data validation in this case.
It’s my first scala open source thing so I’m pretty excited even if it’s just few lines of code. In case you spot any issue PRs are welcome, as well as comments and other ideas.