Week 7, year 2015
- C# code contracts vs input validation - Input validation rules are often taken for code contracts. In this post, I’ll try to cover their differences and show what their common use cases are. [Enterprise Craftsmanship]
- Form, Command, and Model Validation - Many of the frameworks I’ve worked with, promise to separate responsibilities with MVC. In practice, they end up coupling everything to everything. The forms are coupled to the models, and there’s a grand unified validation layer. This may be convenient at first, but it breaks down for larger systems, and creates headaches when having to support multiple clients. My approach is to clearly separate the validation for the form itself, from the Command validation and the model validation. Commands A Command is a message that represents the intention of the user. [Mathias Verraes]
Permalink |
From 09 February 2015 to 15 February 2015 |
Last updated on: Mon, 7 Jun 2021 09:18:52 GMT