Link Details

Link 870411 thumbnail
User 929579 avatar

By blanciq
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
  • 637
  • 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)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java