O'Reilly logo

NHibernate 3 Beginner's Guide by Gabriel N. Schenker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Why, what, and where do we validate?

Adding validation logic to our software increases its size and complexity considerably. As adding validation to the solution is not free, we must have very good reasons to add this additional logic. Let's face them.

Why validate?

Users that use our application can enter invalid or incomplete data, either by mistake or on purpose. The latter case is better known as "trying to hack a system", whereas the former can happen even to well-disposed users. In either case, we have to prevent this. If our system uses wrong data, then this can result in undesired outcomes. As an example, consider the case that a malicious user tries to order some goods with our e-commerce software and wants to use a falsified credit card ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required