The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Validate THIS !

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Udi Dahan

Posts: 882
Nickname: udidahan
Registered: Nov, 2003

Udi Dahan is The Software Simplist
Validate THIS ! Posted: Feb 17, 2004 3:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Udi Dahan.
Original Post: Validate THIS !
Feed Title: Udi Dahan - The Software Simplist
Feed URL: http://feeds.feedburner.com/UdiDahan-TheSoftwareSimplist
Feed Description: I am a software simplist. I make this beast of architecting, analysing, designing, developing, testing, managing, deploying software systems simple. This blog is about how I do it.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Udi Dahan
Latest Posts From Udi Dahan - The Software Simplist

Advertisement

More and more often am I being pushed ( against my will ) to writing posts in response to other posts. Today, Edgar Sanchez did it with his post "Are validation errors exceptions ?" As always, read his post before continuing.

First of all, presentation layer validation is a must. For security reasons, performance reasons, and some more. Personally, I like to wrap up the basic validation ( string length, numeric range, regular expressions ) in the entities themselves. For more information on entities and how they fit into the overarching architecture, see my previous posts. Any data that is received that fails the validation should promtly throw an exception. For example:

Read: Validate THIS !

Topic: Debugging Chat on February 17th Previous Topic   Next Topic Topic: Whidbey Public Beta Set for June

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use