Skip to main content

Andrew Duckett

Member since Dec 11, 2008

Recent Blog Comments By Andrew Duckett

  • MySQL Does Not Support IF / ELSE Statements In General SQL Work Flow

    Posted on Sep 3, 2008 at 8:59 AM

    Hey Ben, I think (I'm not 100% on this) that you can force a duplicate row by just making email a unique index (not part of the PK). For the logical deletes you might be out of luck. Another question to consider, how core is this piece of code to your process? It may be better to just use the mu... read more »

  • OOPhoto - Encapsulating Form Processing In The Service / Facade Layer

    Posted on Aug 26, 2008 at 2:02 PM

    Hey Ben, I've been struggling with the same problem you're describing. I'm thinking about trying to rearrange the relationship between the object and the service. Rather than have invoke a service method, what if is ONLY responsible for persisting the object. So if we... read more »

  • OOPhoto - Creating Idealized Business Objects

    Posted on Aug 22, 2008 at 9:01 PM

    @Ben I agree with you, your example of the id list is kind of a catch. I think I'm alright with another call to get a list of IDs. I think you'll have to do something similar for things like statuses, etc. that are persisted. But in any case the Controller still doesn't know about the Model, onl... read more »

  • OOPhoto - Creating Idealized Business Objects

    Posted on Aug 22, 2008 at 2:46 PM

    @Ben, I do agree that translation works both ways. What I'm more concerned with is letting the Controller do to much. I think I would rather see the Controller take the form data and pass it to some API (i.e. FormProcessor or FormService) instead of: <cfset Comment.load( Form ) /> <cfse... read more »

  • OOPhoto - Creating Idealized Business Objects

    Posted on Aug 22, 2008 at 1:56 PM

    @Ben, Does having the Controller pass data (i.e. from the form) couple the Model to the View? I see the Controller as the translator between the two. Is it the Controllers responsibility to know how to handle Business Objects? Or should it just be translating data for the Service (our API) to ha... read more »

  • OOPhoto - Unique Coupling Of A Controller To A View

    Posted on Aug 22, 2008 at 1:47 PM

    @Ben I have to agree with this example. There has to be some coupling between the View and the Controller (in most cases). @Brain/Ben Rather than using a structure based error collection, couldn't you create a class (cfc) to hold Errors? This in turn could hold methods to translate the generic er... read more »

  • OOPhoto - Creating Idealized Business Objects

    Posted on Aug 22, 2008 at 9:47 AM

    Hey Ben, Great read so far, I really like where you're going with this. I'm still trying to understand/come to terms with all of these concepts so I can make better choices about application design/flow. I like the idea of the BO being self aware, but I'm still undecided about the BO using the Se... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel