in reply to Data Validation Tests
The terms strong cohesion and loose coupling spring to mind. Functions for validating data should be part of the module processing that data. Having a separate module with all kinds of unrelated validation routines increases the risk of (possibly) not keeping up with changes in the format, and I don't really need credit card number validation routines in my logfile processing script which extracts IP addresses.
Arjen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Data Validation Tests
by Aristotle (Chancellor) on Jan 26, 2003 at 14:09 UTC | |
by Flame (Deacon) on Jan 26, 2003 at 15:32 UTC | |
by perrin (Chancellor) on Jan 26, 2003 at 17:58 UTC | |
by Flame (Deacon) on Jan 26, 2003 at 19:40 UTC |