Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another n-tier question
Message
 
 
À
15/11/2002 14:05:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00723190
Message ID:
00723523
Vues:
10
Hi, Tracy.

>If I understood you correctly, I disagree.
>It is definitely the job of the middle tier to validate user input. However, it IS common practice to do this in the UI (I do all the time at the request of the user) so the user can get feedback as they step through each field in a form (as an example) instead of after the form is completely filled out and submitted. However, implementing validation in the UI does NOT free the developer from the requirement of implementing it in the middle tier -- mainly because that same middle tier could be called from a different UI and would still require that validation and business rules be processed.

Actually you agree with me, because it seems you didn't understood. I quote a single paragraph from my previous message in which I stated basically the same as you.

>>For example, your mid-tier can (indeed, it must) perform a final validation before commiting the transaction, to be sure that everything went ok. As I said, if you're just trying from the command window, you basically have no validation at all, but the BizObj should be smart enough to avoid processing wrong values.

Indeed, my point was that full validation IS responsibility of the middle-tier. But you can improve that for the user doing it as immediate as you can in the UI, ALSO. Indeed, what I suggested is that no matter what front-ends you develop, the first test over the BizObjs should be performed from the command window, where you can try passing all the wrong and uncontrolled parameteres and the component must be able to reject all or (if values are right) process the transaction succesfully without no UI at all.


So, basically we're from the same school. 8-)

See you!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform