Tuesday, May 22, 2007

Syntactic and Semantic

Validation comes in two types:
  • Syntactic -- this involves checking for the format of a field, e.g. number of characters, alpha or numeric, membership in a list, and so forth. This needs to be repeated on the server because of the issues with JavaScript being turned off, loss of synchronization between the two languages in a project.
  • Semantic -- this requires domain (business) logic to perform, e.g. comparing postal code with city, and so forth.

No comments: