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 the jQuery Conference 2009 (Cambridge, MA) with:

Tony Garcia

Member since Dec 11, 2008

Recent Blog Comments By Tony Garcia

  • Connecting Python To Apache On My MacBook Pro Using A VirtualHost

    Posted on Aug 10, 2010 at 10:38 AM

    If you want to edit your hosts file outside the command line, you can do it with TextMate (well worth the 39 EUR., IMO). Then you can just type: mate /etc/hosts And your host file will open in the TextMate editor. When you save it will prompt you for your admin password and you're good to go!... read more »

  • Post-Instantiation CFC Method References Don't Show Up In CFDump In ColdFusion 9

    Posted on Jul 20, 2010 at 11:17 AM

    I wonder if this is related to the issue I pointed out with injected methods not showing up in getMetaData() in CF. http://objectivebias.com/entry/injected-methods-show-up-in-component-metadata-in-railo-but-not-coldfusion... read more »

  • Why My Queries Hate Application Service Layers

    Posted on Jun 18, 2009 at 8:36 PM

    @Hal, Well, actually the main purpose of my approach as outlined here is to deal with the more repetitive SQL -- the boilerplate CRUD stuff I don't want to cut-and-paste everywhere and change the field and table names. Do I try to use my generalized methods as much as I can? Yes, because it makes me... read more »

  • Why My Queries Hate Application Service Layers

    Posted on Jun 18, 2009 at 2:04 PM

    I don't think that methods should necessarily have one purpose (as Brian stated). Even in Java, you have method overloading, where the method's purpose is determined by its arguments. In CF we can do this with duck typing. I've lately gotten into using base classes for my data access and use an appr... read more »

  • Why My Queries Hate Application Service Layers

    Posted on Jun 18, 2009 at 11:04 AM

    @brian, For your example, I would suggest writing dynamic queries where the filter is determined at runtime. So, for example you could have a getByfilter() method that determines whether to return articles based on author or date (or whatever) depending on what arguments you pass in. So, for instanc... read more »

  • A Problem With My Coding Methodology That's Driving Me Crazy

    Posted on Jun 12, 2009 at 11:04 AM

    @Eric I'm pretty sure you can preserve the keys' case by using bracket notation instead of dot notation when assigning them: greetings['item01'] = "hi" instead of greetings.item01 = "hi"... read more »

  • Is It Time For "Practical" Object Oriented Programming (OOP)?

    Posted on Mar 30, 2009 at 10:52 AM

    I'm with you all the way, Ben, and it's nothing to feel defeated about. I learn all I can about OO, try to let it sink in, and then use those concepts in a practical way that works for me. I've stopped worrying about if it's the "right" way. Sure -- a lot of times after the fact I find I could've do... read more »

  • What Chinese Food Has Taught Me About Life

    Posted on Mar 26, 2009 at 8:46 AM

    There are those exceptional cases where the quality of the product is such that you're willing to overlook supbar customer service. I guess from what you say, that's the case here. You like their chicken so much that you don't care about their crappy customer service. It's obvious that your time isn... read more »

  • What Chinese Food Has Taught Me About Life

    Posted on Mar 26, 2009 at 7:54 AM

    I don't think you should be ashamed by thinking you deserved a discount. In a way, they made you "pay extra" by making you wait the extra 15 minutes it took them to get you your order (due to their screw up). Your time is worth something too, you know. It's worth it for merchants (or companies) to g... read more »

  • Using A Rough Box Model To Gather Near-By Zip Codes

    Posted on Feb 10, 2009 at 12:00 PM

    Awesome, Ben. This is going to be really useful for a project I'm working on. Thanks a million.... read more »

  • Both MySQL and MS SQL Server Use @@Identity To Report Latest Auto-Incrementing Value

    Posted on Dec 10, 2008 at 4:50 PM

    @Lola, If you read the link that I referenced above and also looked at Brian Hendel's comment above (who also referenced the same link), that technique uses BOTH auto-increment and UUID. I won't go into explaining it in detail (which is why I provided the link). But basically you can have the best o... read more »

  • Both MySQL and MS SQL Server Use @@Identity To Report Latest Auto-Incrementing Value

    Posted on Dec 9, 2008 at 11:03 AM

    I've stopped using platform-specific methods like @@identity and LAST_INSERT_ID or even worrying about the auto-incremented key because of all the potential portability problems and other pitfalls. I like this guy's take on it and his simple solution: http://mysecretbase.com/get_the_last_id.cfm... read more »

  • Project HUGE: WTF, Waist Line, And Money

    Posted on Sep 17, 2008 at 1:38 PM

    Ha! I think it's funny that your wrist wraps are called "WSF" yet you used "WTF" in the entry title.... read more »

  • OOPhoto - If Object.Validate(), Why Not Object.Save()?

    Posted on Aug 18, 2008 at 11:14 AM

    I struggled with these very same issues in my journey into OOP and the answer is (of course) "it depends." The object.save() idiom is popular in other languages (see "active record pattern"). For CRUD apps (which most essentially are), it's probably fine. The use of a service layer is a "J2EE enterp... read more »

  • More Thoughts On MVC, OOP, And Form Submissions In ColdFusion

    Posted on Jul 4, 2008 at 8:15 PM

    Regarding this statement: "If this is part of the service layer, then that means that the service layer is coupled to the view since form names can be anything" Personally, I don't concern myself much with this issue. Admittedly, though, I'm no OO guru. If my service layer method expects form fiel... read more »

  • HostMySite.com Has The Best ColdFusion Hosting

    Posted on May 12, 2008 at 7:38 PM

    @chris I've been with Hostek for a couple of months and so far they've been excellent. In my experience, their customer service has been super responsive. Another 3 things I like about them: 1) They're on CF8 (like HostMySite) 2) They give you space for directories above the web root 3) They have IS... read more »

  • Image Manipulation ColdFusion Wrapper Component

    Posted on Apr 30, 2008 at 7:40 PM

    Very cool, Ben -- thanks!. I was planning on putting together something like this, but you beat me to it (and I didn't even think of onMissingMethod). I added a little bit of logic to the init() method so you can initialize the wrapper with an image object or just a path to an image file. One thing ... read more »

  • CFLock And Negative Outcomes - Think It Through

    Posted on Jan 17, 2008 at 3:28 PM

    @Ben Yeah -- I guess cflocking would be the LEAST of my worries, then huh? @Scott Thanks -- (I posted a comment on your blog)... read more »

  • CFLock And Negative Outcomes - Think It Through

    Posted on Jan 16, 2008 at 8:55 AM

    @Scott First, let me say that I found both your and Ben's blog posts very well-written and informative. I did notice Mark B's comment and your response on locking and rescoping application.dsn, but even there you just note the fact that most people do it and then later, in response to my comment, y... read more »

  • CFLock And Negative Outcomes - Think It Through

    Posted on Jan 15, 2008 at 8:02 AM

    @Scott, When you questioned the usefulness of putting the dsn in the application scope you asked: "Why bother with locking the application scope and reading the DSN to the request scope at the beginning of each request?" At the risk of sounding ignorant, why would this be even necessary? I agree wi... read more »