Print page (printer-friendly version)

Best Practice Design

Author: Ian Banks (Hero Solutions Limited)
Date Posted: April 2006


Software, database and web development all have documented best practices and industry standards and conventions, but these are often easy to neglect in favour of a quick solution. But what exactly do we mean by 'Best Practice Design'? The following article explains these techniques and what they mean to you, the customer.

The Importance of Best Practices

If your application is developed to Best Practice then it should be:

Some of the most important best practices are listed in the following sections.

Database Normalisation

What is it? - Organising the data tables of a database to eliminate certain common problems and errors from the database, as well as protecting the integrity of the data.

Why is it important? - A relational database that isn’t normalised can result in duplicated data.

Referential Integrity

What is it? - A means of protecting the integrity of the data in a database. Essentially it means that a record cannot be created or deleted until any associated records have already been created or deleted. For example an order header record could not be deleted if there were still order detail records linked to it.

Why is it important? - Referential Integrity means the system itself looks after the integrity of the data, rather than relying on the user.

Error Trapping

What is it? - A coding practice to deal with errors that occur within an application.

Why is it important? - If an error occurs in a routine without error trapping then either the system will crash or, often worse, a misleading error message might be displayed. Error trapping ensures the error is handled ‘gracefully’, with friendly error messages displayed to the end-user.

Data Validation

What is it? - Ensuring the data entered into a system meets specified rules (e.g. End Date must be after Start Date)

Why is it important? - GIGO, which means Garbage In equals Garbage Out. A database is only as good as the information that it holds so it is important to try and trap as many mistakes as you can during data entry.

Version Control

What is it? - Checking that the version of the application you are using is up to date. This is of particular importance with client-server applications where the application is ’split’ into two separate entities.

Why is it important? - If a discrepancy exists between versions (for example a user logs onto the version 2.1 database with a 1.1 front-end) then the system may crash or introduce errors into the data.

Change Control

What is it? - Logging changes made to a running application - e.g. why the change was made, when it was made, what the new version number is, who made it, which parts of the system were affected, etc.

Why is it important? - If you later detect new errors or inconsistencies it is very helpful to be able to review any changes that may have affected that part of the system. It can also be of benefit to the helpdesk or IT support.

Table Driven Design

What is it? - Using updateable data tables to control the application’s design, such as the options that appear in dropdown boxes.

Why is it important? - Ensures design changes are implemented consistently across the entire application. A table driven design also allows some maintenance tasks to be performed by the user, rather than relying on the developer, and speeds up the whole process of updating the design.

Naming Convention

What is it? - A naming convention establishes a standard for the names given to the objects of an application.

Why is it important? - A naming convention helps any developer looking at an application to understand it's internal details much more quickly than would be the case if a naming convention has not been applied. In practice a system with a good naming convention can be up to twice as fast to modify as one without. Additionally it makes migration of the data to another system much easier.

Best Coding Practices

What is it? - Writing code procedures in a consistent, logical and readable way. This includes layout, commenting, declarations and other best practices.

Why is it important? - Following best coding practices helps any developer looking at an application to understand it's internal details much more quickly. It also means the code is more reliable and robust.


What is it? - Technical documents outlining the structure of the database (known as the schema), source code for procedures, and any other appropriate documents.

Why is it important? - Documentation is vital in future updates to the system, helping any developer to understand what objects to change, and more importantly the impact those changes will have on the rest of the system.


Best Practice is not a tightly defined set of rules; it is more a combination of a detailed understanding of the underlying technical concepts, an appreciation that an application will continue to evolve and be developed over the coming years and a determination to do a good job & deliver a quality product.

An application developed with Best Practice will take slightly longer to write than one which does not and may therefore cost a little more. However, over the lifetime of the software, and usually over the first year of the project, overall costs should be significantly lower, data reliability will be better and the robustness of the database will be greater.

If one was being cynical you could say that by not following Best Practice a developer can create an ongoing revenue stream from all of the minor amendments and enhancements that will subsequently be required. However, ensuring that your solution is built with these practices in mind will nearly always work out cheaper in the long run.

You may also be interested in...