Does validation in CQRS have to occur separately once in the UI, and once in the business domain?

I think my question has just been solved by another article, Clarified CQRS by Udi Dahan. The section “Commands and Validation” starts as follows: Commands and Validation In thinking through what could make a command fail, one topic that comes up is validation. Validation is different from business rules in that it states a context-independent … Read more

Check input value length

You can add a form onsubmit handler, something like: <form onsubmit=”return validate();”> </form> <script>function validate() { // check if input is bigger than 3 var value = document.getElementById(‘titleeee’).value; if (value.length < 3) { return false; // keep form from submitting } // else form is good let it submit, of course you will // probably … Read more

tech