I gotta agree with Sean.  We ran into this a lot even with Fusebox newbies
adopting some form of mvc, because very simple examples tend to use similar
method ("fuseaction") names in both the controller as well as model (and
sometimes view). A "welcome" controller  method begets a "welcome" model or
view method, and suddenly the beginner starts assuming "oh so they all have
to match up?"

It can be quite disconcerting to a beginner to see such a pattern
(lower-case "p") because she then begins to think that's the way it ought to
be so as to be "correct". And at the same time it fuzzies the listener issue
for her by verbally associating the literal message name with both sender
and receiver. 

Then as the app grows larger and eventually the pattern is broken the
mind-set for the beginner is "oh these must be diff't events" because the
mappings are diff't; it doesn't stop her from understanding but it creates a
speed-bump towards clarity.  

What beginners need most is regularly of repetition. They need a *few*
simple rules which have no exceptions which will give them the safety-net to
build their own confidence. The last thing a beginner wants to hear is "well
it's always like this, except when it's not".



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sean Corfield
Sent: Sunday, January 15, 2006 7:28 AM
To: [email protected]
Subject: Re: [CFCDev] Speaking of Autowireing in Model Glue...

On 1/15/06, Cameron Childress <[EMAIL PROTECTED]> wrote:
> Most MG applications I have been
> exposed to have method names that are aliased to identical "message"
> names in MG apps.

...which I think is bad style and will not scale well with application
complexity (but I agree that most MG sample applications seem to do that).

I think that having the core framework automatically generate that
"identity" mapping sends a very bad message because it encourages poor
style. In fact, if we're talking about enhancements in that area, I'd almost
prefer to see the framework not accept listener declarations that use the
same name for the function and the message :)
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


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






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


Reply via email to