in reply to Re^17: Assignable Subroutines
in thread Assignable Subroutines
Say all of those properties store zip codes. Or they must be positive integers. Or they must contain an absolute path to an existing file. The classes are completely unrelated.
You'd write the validation code over and over for those? Doesn't it make more sense to be able to declare "this property stores a zip code" and be done with it? Isn't it desirable that an improvement to the zip code validation class would trickle through to all four instances?
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^19: Assignable Subroutines
by BrowserUk (Patriarch) on Jan 27, 2005 at 17:32 UTC | |
by Aristotle (Chancellor) on Jan 27, 2005 at 17:38 UTC | |
by tye (Sage) on Jan 27, 2005 at 18:56 UTC | |
by Aristotle (Chancellor) on Jan 27, 2005 at 19:14 UTC | |
by BrowserUk (Patriarch) on Jan 27, 2005 at 18:58 UTC | |
by tye (Sage) on Jan 27, 2005 at 19:08 UTC | |
by Aristotle (Chancellor) on Jan 27, 2005 at 19:30 UTC | |
by BrowserUk (Patriarch) on Jan 27, 2005 at 19:51 UTC | |
|