>What if they're a student teacher, then you need a studentteacher >class as well. Ick. ; )
Well, "to teach" is a behavior, so cue the 600 message thread on how we need interfaces ;) > >> You could very well code CRUD and search methods directly into your >> objects. > >I do this, on occasion, though I usually put the SQL in the service >object not the bean. Lot faster to develop, and for things that are >utterly simple, there's no reason to build the full-on OO backend up >front. As long as you've got your API in place, you can always >reimplement what's behind it without affecting anything else. And >that's really the power of an OO system, in my mind. And did you use all these techniques in the very first OO program you wrote? I consider myself to be no slouch when it comes to database design, but the first db i ever "designed" (all these years ago...) had a single giant table ;) That's a pretty embarrassing thing to admit in a place like this, but boy did i learn stuff (mainly in the form of "don't do that"). > >The facilities for abstracting the interface and implementation are so >utterly fundemental to efficient application development, that anyone >who ignores must be a glutton for pain. Don't take that to mean I >think OO is the only way to get that, that's a false statement, but OO >is the way I'm most comfortable with and which makes the most sense to >me. Don't worry, i'm sold on OO *and* patterns (let's just say my first stab at OO was strangely reminiscent of my first database). What i'm saying is that you can have OO without patterns, and that doesn't automatically make it "bad OO". It's obvious that you "grok" OO, and i'd like to think that i grok it as well. But we've both met people who've memorized a bunch of pattern names without really understanding them, and just keep throwing them out there to look smart (or even worse trying to implement them like they were shopping from a catalog). CF is about making difficult things easy - cfcomponent is to OO dev what cfquery was to getting stuff into/out of a db. All that is wasted if beginners go straight to the GOF or Fowler books without picking up the basics - but if you read this thread from the beginning, that seems like something they might well do. In other words: won't somebody please think of the children ;) /t ---------------------------------------------------------- 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). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
