Can types replace validation?
With some examples in C#.
Source: blog.ploeh.dk
Stay updated with breaking news from Transfer Object. Get real-time updates on events, politics, business, and more. Visit us for reliable news and exclusive interviews.
The ideas in this post apply best to backend applications that implement (complex) business rules, state transitioning, and persist their data to some database.