Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
N-tier question
Message
From
10/01/2003 10:40:26
 
 
To
10/01/2003 09:28:17
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00740247
Message ID:
00740295
Views:
17
>Hi
>
>In a 3-tier environment, if checking for the presence of empty fields, when a save is called, should the middle-tier validate this, or the presentation-tier?
>
>Thanks
>Kev


Personally, I would put this validation on the backend. My rule of thumb has been that simple data validation should be on the database and that the middle tier should deal with business rules. For example, a business rule could be that each department defined has a employee assigned to it...

This is quite a subjective area, but I really don't think it should go in the presentation logic. As the underlying aim is that you could change your presentation layer, without altering the middle and backend.

Have a good weekend

Mace
Previous
Reply
Map
View

Click here to load this message in the networking platform