I have objects that have instance variables with setters/getters requiring types such as uuid and date. If the object is "blank" the variables will be empty strings, which cause errors when getting or setting to blank, or bad data if I start them off with values to match their types (1/1/0001 or AAAA-AAAA-AAA etc) which just feels wrong. The way around this is to allow any type of data through the setters and getters with some extra custom validation code or getting/setting instance data structs. Neither of these seem right. Am I missing something here?
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
- [CFCDev] How to deal with "empty" objects withou... Daniel Roberts
- Re: [CFCDev] How to deal with "empty" objec... Nando
- Re: [CFCDev] How to deal with "empty" o... Daniel Roberts
- RE: [CFCDev] How to deal with "empty" o... Andrew Powell
- Re: [CFCDev] How to deal with "empty" objec... Ron Phillips
- RE: [CFCDev] How to deal with "empty" objec... Ron Phillips
- RE: [CFCDev] How to deal with "empty" o... Joseph Flanigan
- Re: [CFCDev] How to deal with "empty&quo... Barry Beattie
- RE: [CFCDev] How to deal with "empty... Phillip Senn
