On 12/4/07 5:52 PM, "Sean Corfield" <[EMAIL PROTECTED]> wrote:

> My point was that I can inject Transfer into the beans it generates
> and then my beans can save themselves and it's more convenient when
> I'm not in the Flex space.
> 
> Is that clearer?

Much. Apart from some naming details, it's almost exactly what I do here.

> What I'm taking to doing on CF8 is to have a BaseService with an
> onMissingMethod() that implements most of the basic CRUD operations so
> I can call saveFoo() but never have to actually write the code :)

I have a BaseService, BaseController, BaseBusinessObject and the like and
while I'm not in general a fan of big base classes or overuse of
inheritance, it's perfect as instead of having to gen thousands of lines of
code, I can just describe most of my methods in XML and at runtime I have a
"call()" method that effectively provides the onMissingMethod()
functionality so I can still run on CF7 where required. So I can use XML to
describe a getNewCarts() or deleteExpiredUsers() or whatever and it's turned
into parameterized base method calls on the fly at runtime. Works great for
a tight code base, but of course the dark side is you lose most of the
meaning that is historically held in class files so introspection,
autodocumentation and the like is all shot as none of the methods actually
exist. You also have to be very careful with the error messages you add to
the system as often you'll get very confusing default error messages when
you start doing everything dynamically . . .

I'm going back and forth on "extremely dynamic programming". It rocks for a
tight code base and an experienced dev, but I'd be leary of trying to
explain my current system to the average dev. As such, I'm playing with a
two phased system where I can run dynamically on the framework but generate
all of the code for hand off should I need to hand off to an in-house team.
Still not decided the appropriate level of generation to use, but at least
it's easy to shift between the two - the DSLs are the hard part - not
writing the frameworks or the generators!

BTW, good to see you back on this list!

Best Wishes,
Peter




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