I keep falling into the 'anemic domain model' trap and for once I want this 
User to be a genius :-) I have too many simple beans with dumb getters and 
setters and service methods with all the good stuff. 
It must end!

As far as my User goes, it can be in an invalid state until the save() method 
calls validate() before persisting the data if validation passes. So the User 
can have an invalid email address until validate() is called.

Alan





----- Original Message ----
From: "Dawson, Michael" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, October 20, 2008 4:14:01 PM
Subject: [CFCDEV] Re: User password changes and OO confusion

 
I would say by the time the user "knows" the 
name, that said name should have already been validated by some other 
user validation object.
 
I guess it also comes down to whether you are wanting a 
fairly smart user object or a simple, no-logic user transfer 
object.
 
Mike


________________________________
 From: [email protected] 
[mailto:[EMAIL PROTECTED] On Behalf Of Alan Livie
Sent: Monday, October 20, 2008 9:34 AM
To: [email protected]
Subject: [CFCDEV] Re: User password changes 
and OO confusion


@Micheal, fair point and one 
I'll consider.

But based on 
'Is it the responsibility of the user to validate the 
password?  Probably not.'

I would then 
ask 'Is it the 
responsibility of the user to know his/her name and validate him/herself?' - I 
would say 'Yes' 

So if that's 
the case then surely password validation comes under the same 
situation?

Good discussion though.

Alan


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to