John, Can I just throw in the cautionary note that the persistence layer is often where *all* the design compromises end up, and especially in ColdFusion is where the non-OO world really refuses to be ignored. Because we all spend so much of our time with data-centric apps you've got to cover it, but I would always be saying up front that this stuff is not really where the OO rubber hits the road, it's actually about the worst place to start when learning OO, and a student should definitely not be extrapolating what we do in the persistence layer into a set of general OO design principles.
Jaime > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of John Whish > Sent: Monday, 2 March 2009 7:54 PM > To: CFCDev > Subject: [CFCDEV] Presenting on OO - Should I show the > "Gateway" pattern? > > > Hi all, > > I've started doing a 00 101 course for my CFUG, part one went > well and the feedback was that they want to know about the > persistence layer next. > > I want to cover the main patterns and emphasise that there > are multiple ways to do it (not just DAO, Bean and Gateway). > I'd like to do do ActiveRecord, DAO, FlyWeight and Iterator > patterns (although it might have to be split over 2 > presentations) and introduce the "gateway" as a ColdFusion > specific pattern that is used for speed rather than being OO. > > I did the classic example of showing someone's age in my > first presentation and said how you should avoid putting > functionality into the view, however if I show the "gateway" > approach, I'll be back to putting it in the view. That just > doesn't feel right to me when I'm trying to preach good practice. > > Thoughts appreciated :) > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
