Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with: David Lund and Ryan Jeffords

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 »

  • Sandbox ColdFusion Custom Tag Encapsulates Code

    Posted on Dec 16, 2007 at 11:13 PM

    Glad you like it Ben. I agree, the only downfall to this is the use of the include path. I didn't include all the documentation on the code to keep my comment to a reasonable size, but basically, the path to the include should always be a path relative to the web root (/somedir/somefile.cfm). I alw... read more »

  • Sandbox ColdFusion Custom Tag Encapsulates Code

    Posted on Dec 15, 2007 at 8:59 AM

    Ben, I had to do a similar thing just a few days ago. I had the same situation where an include file overwrote one of the values in the calling template, so I needed to isolate the calling template from the includes. Unfortunately, most of the code re-use in this application is via includes, so my s... 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 »