EdwardJS024
Programmer
How do you guys handle UI Validation from a broader sense? I have posted about this in "Constraining input data" but needed to post on a more conceptual level.
IMHO, there are 2 kinds of validation that occur in a system,
1. Syntax Validation
2. Business Rules Validation
Syntax rules occur at the UI level to constrain, and limit what data a user can send into the core -- ex: "An input field for 'Age' may only allow numeric data".
Business Rules occur at the core of the domain model and are more concerned with rules of the business -- ex: "Only customers 21 and over are allowed to register for subscription."
At the UI layer, how/what mechanism would you implement for syntax checking if:
1. syntax rules vary across locales
2. must not be repeated, need to be centralized
3. configurable, no recompilation
At the same time, if one was to remove the UI and expose the APP to integration or 3rd party gateways, the UI syntax rules are now breached.
Your comments are appreciated
Edward J. Smith
IMHO, there are 2 kinds of validation that occur in a system,
1. Syntax Validation
2. Business Rules Validation
Syntax rules occur at the UI level to constrain, and limit what data a user can send into the core -- ex: "An input field for 'Age' may only allow numeric data".
Business Rules occur at the core of the domain model and are more concerned with rules of the business -- ex: "Only customers 21 and over are allowed to register for subscription."
At the UI layer, how/what mechanism would you implement for syntax checking if:
1. syntax rules vary across locales
2. must not be repeated, need to be centralized
3. configurable, no recompilation
At the same time, if one was to remove the UI and expose the APP to integration or 3rd party gateways, the UI syntax rules are now breached.
Your comments are appreciated
Edward J. Smith