26 ms·
> ecto as a library for validations is far more successful at encouraging separation of concerns than I've seen in other CRUD webdev ecosystems. Which other ec
by nickjj 6y ago
> ecto as a library for validations is far more successful at encouraging separation of concerns than I've seen in other CRUD webdev ecosystems.
Which other ecosystems have you tried?
Just asking because with Python and WTForms they've kept validations separate from your model for the last ~10 years.
You could for example create "sign up", "sign in" and "profile" forms based off a single user model and each form has its own fields that you can define with their own validations. Very similar to how you can create separate changesets with Ecto and use a single user schema.