Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at CFinNC 2009 (Raleigh, North Carolina) with: Daria Norris
Ben Nadel at CFinNC 2009 (Raleigh, North Carolina) with: Daria Norris@cfGothChic )

Kurt Bonnet

Member since Dec 11, 2008

Recent Blog Comments By Kurt Bonnet

  • Default CFParam Expressions Are Always Executed In ColdFusion

    Posted on Aug 22, 2013 at 1:49 PM

    Yeah, this is a fun one. It makes sense and is sooo frustrating at the same time. It would be really cool if a "deferred" attribute could be added to cfparam so that it basically did an EVAL of the default value expression if the variable needed to be set, and did NOTHING if the variable ... read more »

  • Understanding Transactions And Database Rollbacks That Involve 3rd Party API Integration

    Posted on Mar 22, 2011 at 3:37 PM

    Aaah, these situations are always fun. One thing you may not have taken into account above is if *YOUR* server (in addition to the 3rd Party's) server/request crashes between the different remote requests. One way I've dealt with such situations when integrating with 3rd parties was to create a work... read more »

  • Creating jQuery Templates Plug-in Using Textarea Elements (Thanks Kurt Bonnet)

    Posted on Nov 10, 2008 at 1:09 PM

    @Ben, I'm glad those links helped out. Nice work on the jQuery plug-in, I love how simple and powerful it is. I look forward to making use of it :) Nice video too; man you went all out for this post!... read more »

  • Ask Ben: Dynamically Adding File Upload Fields To A Form Using jQuery

    Posted on Oct 7, 2008 at 2:43 PM

    Ben, Just wanted to share the following links to JavaScript templating solutions with you: http://code.google.com/p/trimpath/wiki/JavaScriptTemplates http://www.matthias-georgi.de/2008/9/patroon-a-javascript-template-engine.html I've also found templating to be the best way to deal with addi... read more »

  • OOPhoto: Further Exploration Of The Facade And Controller-Model Interaction

    Posted on Sep 27, 2008 at 10:09 PM

    Ben, It seems to me that you're not fond of the idea of just passing in the form structure to the facade as an argument collection. My question is why not? I think it's VERY important that the controller be able to map form values to arguments in the facade as needed (as you demonstrated in your po... read more »

  • OOPhoto: Been A Bit Stumped Lately With The Next Step

    Posted on Sep 9, 2008 at 1:57 PM

    Ben, I just posted some more thoughts on your previous blog post. It's a bit large, hopefully there's something useful in there :) http://www.bennadel.com/index.cfm?dax=blog:1334.view... read more »

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

    Posted on Sep 9, 2008 at 1:55 PM

    Ben, I've been thinking about this some more and after seeing that the controller could essentially make the call: Service.BuildInstance( ID = 4 ).Delete() I am thinking that maybe the BuildInstance method should be a private method on the service, or somewhere else in the model. What got me thi... read more »

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

    Posted on Aug 28, 2008 at 4:11 AM

    Ben, In my previous post I was primarily trying to suggest adding a single method in your service for converting simple values into objects so that you didn't have to provide BOTH a facade.save(id,name,someproperty,anotherprperty) and service.save(object) methods. By having a single method in the s... read more »

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

    Posted on Aug 26, 2008 at 3:44 PM

    Whoops, I meant to post service.save( service.populateInstance( argumentCollection=formutils.buildFormCollections(form) ) ) (of course assuming you have a variable formutils that's an instance of Brian's formutils CFC)... read more »

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

    Posted on Aug 26, 2008 at 2:41 PM

    Ben, Love the series! Keep up the great work. I've thought about this issue quite a bit too, and one thing you could do is just have a method in your service object that calls the factory to get an instance of the desired object and merge it with SIMPLE user data. Having this single method would pr... read more »

  • OOPhoto - Handling Database Transactions With Ease

    Posted on Aug 5, 2008 at 11:22 PM

    Love the series Ben. I was just thinking, this method of having dual methods where one is transactional and one isn't might be a great candidate for a "missing method" handler. Your onMissingMethod function could just check for the suffix "withTransaction" (or any pattern you decide) on a method ca... read more »

  • OOPhoto - Modeling The Domain In Steps (Round II)

    Posted on Jul 11, 2008 at 5:32 PM

    @Brian: Agreed. I was just throwing it out there as something to keep in mind.... read more »

  • OOPhoto - Modeling The Domain In Steps (Round II)

    Posted on Jul 11, 2008 at 3:45 PM

    Ben, Check out Barney's Transaction Advice for ColdSpring. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ It will let you make any methods in your service layer transactional and prevent nested transactions for you. In fact, you don't even need to place CFTRANSACTION tags in yo... read more »

  • Creating Semi-Secure File Downloads Without Using CFContent

    Posted on May 17, 2008 at 3:53 PM

    @Dave - I just tried mod_xsendfile for Apache and it works perfectly. I'm so glad you found this!!! My CF script hands things off to apache for serving so fast it's sick!!! And now my CF threads are free to do real work instead of being tied up serving files, woo hoo!!! I have been looking for a sol... read more »

  • Creating Semi-Secure File Downloads Without Using CFContent

    Posted on May 15, 2008 at 1:20 PM

    ...snip... "Rails (on mongrel) does this much smarter. There's a function that returns a file handle directly back to the web server and the web server streams the file completely separate of the rails application and your code." ...snip... Sounds like this should be a new feature in CF9... read more »

  • Using ColdFusion To Stream Files To The Client Without Loading The Entire File Into Memory

    Posted on May 15, 2008 at 1:07 PM

    @Eric, Have you tested this on CF 7? I'm curious to know if cfcontent streams on CF 8 only.... read more »

  • ColdFusion Session Management And Spiders / Bots

    Posted on Dec 13, 2007 at 1:38 PM

    Cool post Ben, very interesting. I'm very surprised how making a change in the CFAPPLICATION tag only gets applied to the session for the current request/user. I would have thought that once you set the session timeout to 2 seconds, that EVERYBODY's session would time out. It would be nice if someo... read more »

  • Exercise List: Thinking About Data Validation - Who, What, And Where?

    Posted on Nov 14, 2007 at 2:40 PM

    I'm with you Ben. I like to keep my validation outside my domain objects AND my controllers. I've taken to the approach that you metioned where there' s a validateXxx method in the service layer that accepts an instance of the CFC you want to validate. I also perform a validation check on the CFC in... read more »

  • What If ColdFusion Looked Like jQuery

    Posted on Apr 1, 2007 at 11:44 PM

    @Dan and @Ben, My point was simply that sometimes there's a need to build a data structure within CF for whatever reason and that as long as all you're storing at the very end nodes of the data structure is simple data such as strings, JSON is a very clean and simple way to do it. It requires MUCH ... read more »

  • What If ColdFusion Looked Like jQuery

    Posted on Mar 28, 2007 at 1:49 PM

    @Dan, I'm with you. I hate typing in TONS of tags to programmatically build a structure or array. You could easily define you're arrays and structures in JSON format and avoid all the tags by using the JSON encode/decode library for CF to convert the JSON notation to a native CF data structure. I... read more »