On 29 Jul 2013, at 17:04, Kevin Rutherford <[email protected]> wrote:
> What if your objects had to be immutable? Would that lead to a > validation pipeline containing objects such as CandidateUser, > ValidatedCandidate, UserAccount etc? And if so, where do the factory > methods for each of those types live? Hmmmm, I think they would chain. CandidateUser could be a factory for ValidatedCandidates, and ValidatedCandidate for UserAccount. The factory method on CandidateUser would depend on a validator, and the factory method on ValidatedCandidate would depend on a service to check for username uniqueness. -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashmoran -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nwrug-members. For more options, visit https://groups.google.com/groups/opt_out.
