On Thu, Sep 18, 2008 at 10:08 AM, Clarkee21 <[EMAIL PROTECTED]> wrote:

>
> It's maybe going off topic but with things like this I was never sure
> how I would deal with areas like user validation. Currently I do this
> all in the CFM pages of my model and depending on the results call
> methods from my CFC to do my processing. I would then pass a flag back
> to my Controller to say that it's either passed or failed. The
> Controller would then make the decisions on where to go next.



Yeah you might be off the mark some there but it may or may not matter. What
really matters is growth together. This advice from from someone with
failures along with successes in working with bringing up a teams overall
'competence level'. If you make things too complicated to begin with you run
the chance of some folks just shutting down, this does you and your team no
good. This doesn't mean you can only evolve the designs as fast as your
lowest common denominator but you should not start out of the gate at too
high a level. Continual improvement is all about getting a stride/rhythm and
a solid baseline. What I mean by solid is there is no ambiguity and you are
comfortable and have a justifiable reason for the design decisions, a
justifiable reason is not "Because Sean Corfield said it should be done this
way."  You need to have a solid understanding why you are doing things they
way you are doing it and that is what is important who cares if the initial
design is off the mark, as long as everyone understands the initial design
and (this is important) understands that it is going to be wrong sooner or
later and will need to evolve. The best solution is the simplest solution,
this solution can grow over time as your team grows. In CFML this is only
true to a degree right? You really can do disgustingly simple solutions that
are a nightmare.

Now, for validation we do it in the Model and build up a validation error
object (really just an array of validation errors). At the end of validation
if there are errors we throw the error object. If that does not make sense
to you in one way or another it's probably not a good solution for you right
now, again you need to find your rhythm.

Adam

--~--~---------~--~----~------------~-------~--~----~
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