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 2010 (Boston, MA) with:

Gus

Member since Dec 11, 2008

Recent Blog Comments By Gus

  • Whom Not To Marry: Time-Tested Advice From A Higher Authority By Pat Connor

    Posted on Aug 13, 2010 at 9:04 PM

    @Ben, Hmmm.... so you would advise an aspiring bull rider to talk to the bartender. The therapist/doctor scenario doesn't hold up very well. While a therapist may have personal problems, that does not mean he/she does not have common experiences with the issues his/her patients are trying to cope ... read more »

  • Whom Not To Marry: Time-Tested Advice From A Higher Authority By Pat Connor

    Posted on Aug 13, 2010 at 5:47 PM

    Getting advise on marriage from a celibate priest is sort of like getting advice on bull-riding from the bartender at the bar bull-riders go to. They hear lot's of stories, but have absolutely no idea what it is really like. Gus. PS I've been married now for 14 years (all to the same woman).... read more »

  • Do Remote CFC Method Calls Add Any Value In ColdFusion?

    Posted on May 18, 2009 at 11:34 AM

    If the front end is a FLEX app, you will lose some significant benefits. * Performance, particularly when returning sets of data from ColdFusion to Flex, is much better. * Data exchange is more flexible: ColdFusion query objects can be sent directly to Flex without manual conversion. ... read more »

  • Ewwww - Watching Olympics On NBC.com Requires Microsoft Silverlight

    Posted on Aug 19, 2008 at 7:45 PM

    There always seems to be a bias against MS in the developer community. I was taken aback myself when I saw that I needed to install silverlight. But the install was painless, and the online Olympic experience is actually very good. Nothing that couldn't have been done in Flash. But if I were NBC... read more »

  • Bigger, Stronger, Faster - The Side Effects Of Being American

    Posted on Jun 3, 2008 at 8:36 AM

    Here is a timely editorial from The New York Times on steroids, horse racing and the Triple Crown: http://www.nytimes.com/2008/06/03/opinion/03tue3.html?th&emc=th... read more »

  • Bigger, Stronger, Faster - The Side Effects Of Being American

    Posted on Jun 1, 2008 at 5:54 PM

    To each his/her own. But this is just plain freaky! http://thebirdman.org/Index/Others/Others-SteroidFreaks-EH.htm... read more »

  • Ask Ben: Recursive Numeric Pyramid

    Posted on Dec 11, 2007 at 9:30 AM

    Hi Ben, Here is another take, which only needs one loop: <!--- set up our variables ----> <cfset pSize = 4> <cfset currNum = 0> <cfset retString = ''> <cfset pyramid = ''> <!--- Here is our recursive function ---> <cffunction name='buildPyramid' returntype="... read more »

  • Why Do I Protect People Who Want To Break My Site?

    Posted on Oct 12, 2007 at 4:06 PM

    I would definitely throw an error message, and not try to guess the users intent. If you guess wrong, the user may get information they think means one thing, but in fact means something else. Let's take a mapping application. Let's say you meet a woman that lives in a brand new development at 12... read more »

  • Images Can Have CSS Padding - Crazy! (Saucy)

    Posted on Oct 1, 2007 at 8:25 AM

    Ben, You're suprise might be come from the way you are thinking about what is actually happening. You are not adding the border and padding to the image. You are adding the border and padding to the image container which is the img tag. I'm sure you've been familiar with the border attribute of ... read more »

  • SQL CHARINDEX() Has Data Size Limitations

    Posted on Sep 24, 2007 at 8:29 AM

    Ben, Most string functions in SQL Server will have an 8,000 byte limit. If you think about it, this makes sense based on the way SQL Server stores data. A row in a table has an 8060 byte limit, a char or varchar field has an 8,000 character limit, an nChar or nVarChar has a 4,000 character limi... read more »

  • Getting Only The Date Part Of A Date/Time Stamp in SQL Server (Revisited)

    Posted on Sep 21, 2007 at 11:57 AM

    +1 to UDF's in SQL Server being slow. Only use when absolutely necessary.... read more »

  • Getting Only The Date Part Of A Date/Time Stamp in SQL Server (Revisited)

    Posted on Sep 21, 2007 at 10:06 AM

    Tony has it right. The built in Convert function is the way to go here. If you want to see how many hits you get per day. <cfquery name="qHit" datasource="#REQUEST.DSN.Source#"> SELECT CONVERT(char(10), h.date_created, 101) AS dateOnly COUNT(h.id) AS hitCount FROM web_stat... read more »

  • Code Assertively

    Posted on Sep 18, 2007 at 2:02 PM

    @Dustin I was referring to both the coder, and those coming in behind the coder. I agree, structKeyExists() is more efficient on the server side, however in many, if not most cases this would likely fall under the rubric of "premature optimization". Gus... read more »

  • Code Assertively

    Posted on Sep 18, 2007 at 1:35 PM

    There are trade-offs to just about any approach. Let's say "firstName" can be passed in by a form, url or attribute. In this case <cfif isDefined("firstName")> is more efficient than <cfif structKeyExists(form,"firstName") OR structKeyExists(url,"firstName") OR structKeyExists(attrib... read more »

  • SQL EXISTS Exploration (Thanks Christoph Schmitz!)

    Posted on Sep 5, 2007 at 3:35 PM

    My favorite use of EXISTS with ColdFusion is the ability to use one query to do an insert or update: <CFQUERY> IF EXISTS (SELECT girlName FROM girls WHERE girlID = #girlID#) UPDATE girls SET girlName = 'Halle' WHERE girlID = #girlID# ELSE INSERT INTO girls(name) VALUES ('Halle') <... read more »

  • ColdFusion Body Art And Other Forms Of ColdFusion Evangelism

    Posted on Feb 27, 2007 at 10:13 AM

    Might be one of the few times I would use CFINSERT !... read more »

  • Testing For NULL Values In A ColdFusion Query Result Set

    Posted on Feb 20, 2007 at 10:32 AM

    It is much easier to use ISNULL in your SQL statement SELECT ISNULL(name,'No Name Entered') AS name, ISNULL(hotness,'No Hotness Rank') AS hotness FROM @hotties... read more »

  • Introduction To Regular Expressions Presentation Notes

    Posted on Jan 5, 2007 at 8:25 AM

    Ben, You have a small error in this section: * : Zero or more instances Pattern: "a*" Match: Anna Banana Description: Match the letter "a" zero or more times in a row. This will actually match just before the capital 'A' in Anna Banana. You always have to be careful with matching 'Zero or more'... read more »