Link Details

Link 870411 thumbnail
User 929579 avatar

By blanciq
via blog.goyello.com
Published: Oct 30 2012 / 09:53

Validation is an extremely important part of a software system. It prevents users from inserting incorrect data. Although it seems to be a piece of cake, it’s not. It’s hard to keep validation logic separated from business logic. This problem, as almost all of known to developeres problems, has as many solutions as there are programmers. Nevertheless, ASP.MVC comes with a common solution to it. It’s called Model Validation. The main idea behind it is to put all validation in one place without mixing it with business logic. This post will show you how to use it in a proper manner and how to handle common issues and scenarios, such as remote validation. I’ll try to show some of the best practices that are ready to use in production.
  • 5
  • 0
  • 633
  • 243

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (0)



    Play Framework
    Written by: Ryan Knight
    Featured Refcardz: Top Refcardz:
    1. Akka
    2. Design Patterns
    3. OO JS
    4. Cont. Delivery
    5. HTML5 Mobile
    1. Akka
    2. JUnit/EasyMock
    3. Java Performance
    4. REST
    5. Java