Rules

Secret ingredients to quality software

Menu - Do you include a "Tools | Validate Data"?

Last updated by Tiago Araújo [SSW] on 21 Apr 2021 11:20 pm (4 months ago) See History

A common oversight is applications don't check for invalid data. You should add "Tools | Validate Data" to your application.

So when you add business rules to the middle tier, consider scenarios such as importing data and any other areas that side step business rules. Therefore we always make validate queries that if they return records, they must be fixed. Examples are:

  • For SQL Server we use vwValidateClient_MustHaveACategoryID , or procValidateClient_MustHaveACategoryID
  • For Access we use qryValidateClient_MustHaveACategoryID

TimeProValidateData
Figure: Good Example - This application, while not the prettiest, has a handy validation tool to check for incorrect data


We open source. This page is on GitHub