> I think it depends on the terms of the contract! If the contract
stipulates "validate SSN" - then that's one thing. If it stipulates
"display SSN", then that's another.

So, for example, I have a validateSSN() method and a displaySSN() method
available to me.  I should only call the displaySSN() method AFTER I
have called the validateSSN() method.  Otherwise, I could end up
displaying "8-23-1234" which is not a valid SSN.
         
>To me, it should be smart enough to fulfull the terms of the contract,
no more, no less - and we as application architects need to be smart
enough to define the proper contract(s) and distribute them among
objects and methods. :) Challenging ...

Very challenging.  <think> Do I write more code to eliminate a bunch of
try/catch blocks or not.  That is the question. </think>

Thanks
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
[EMAIL PROTECTED]

Reply via email to