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 cf.Objective() 2013 (Bloomington, MN) with: Jason Dean

Graeme Taylor

Member since Aug 9, 2010

Recent Blog Comments By Graeme Taylor

  • Creating ColdFusion Proxy Components With ColdFusion 9's GetFunctionCalledName()

    Posted on Sep 16, 2011 at 3:48 PM

    @Kevin, Having dug into ColdFusion's Java bytecode; the simplest way I can explain it is that objectEquals(obj1, obj2) invokes the java.lang.Object.equals(obj) method on obj1 and is given obj2 as its parameter. (It does a little bit more than that but those details aren't pertinent here.) So ess... read more »

  • Exploring The ColdFusion Component (CFC) Extension Lifecycle

    Posted on May 18, 2011 at 1:34 PM

    @Ben, No decompile necessary; check out some screenshots here: http://www.ej-technologies.com/products/jclasslib/screenshots.html You don't see actual bytecode until you open the Code "folder" within a method. Otherwise the class definition is laid out in a fairly easy to navigate tr... read more »

  • Exploring The ColdFusion Component (CFC) Extension Lifecycle

    Posted on May 17, 2011 at 1:03 PM

    @Ben, I think with the Application.cfc it can be hard to completely avoid logic in the pseudo-constructor, sometimes you want to tweak an application setting one way or another depending on certain conditions (such as what environment you're running in: dev/test/production/etc.) Poking around/expe... read more »

  • Exploring The ColdFusion Component (CFC) Extension Lifecycle

    Posted on May 17, 2011 at 9:43 AM

    Also, I meant to mention that your statement which I quoted makes sense, because at the pseudo-constructor phase of the cfc definition is in the process of being loaded, so there's no way for it know about anything but itself.... read more »

  • Exploring The ColdFusion Component (CFC) Extension Lifecycle

    Posted on May 17, 2011 at 9:37 AM

    "As it turns out, during the pseudo-constructor phase of the super-class instantiation, the super-class has absolutely no knowledge of the sub-class that is extending it." In my experience it's better to think of the entire "pseudo-constructor" block of a CFC as its type defini... read more »

  • Explicitly Ending A ColdFusion Session

    Posted on May 2, 2011 at 1:06 PM

    "... For the session timeout, I went with one second. The ColdFusion documentation indicates that a timeout of zero seconds can be used; but in my experience, a zero second timeout appears to be ignored. ..." I used a Java bytecode viewer (jclasslib bytecode viewer), popped open the cfus... read more »

  • Creating ColdFusion Proxy Components With ColdFusion 9's GetFunctionCalledName()

    Posted on Dec 23, 2010 at 12:40 PM

    And finally, doing some more investigating, replacing the entire body of the isEqualTo method with return objectEquals(this, obj); works exactly the same.... read more »

  • Creating ColdFusion Proxy Components With ColdFusion 9's GetFunctionCalledName()

    Posted on Dec 23, 2010 at 12:30 PM

    Actually looking at my code and my comment about not "exposing their internal objects ... outside the CFC itself." is incorrect, as an object passed to the equals method could have its own equals method written to intercept the internal object passed to it. The following change closes tha... read more »

  • Creating ColdFusion Proxy Components With ColdFusion 9's GetFunctionCalledName()

    Posted on Dec 22, 2010 at 7:55 PM

    @Chris, Here's how to test for CFC reference equality using the underlying Java layer in CF9 without writing a Java class to handle it: component { _internalObj = getPageContent().getPage(); // get the CFC's compiled page class instance; // we can call its underlying Java methods /** *... read more »

  • Overriding Internal ColdFusion Component Variables With Method Arguments

    Posted on Oct 9, 2010 at 6:06 PM

    @Brian & @Ben, After reading your blog post Ben, I got very interested in this "problem" (though it's mostly a problem if a given method's arguments come from an untrusted source.) I looked at ways of securing a method's read/write to values in the Variables scope and this is what I ... read more »

  • Learning ColdFusion 9: Implicit Struct And Array Usage

    Posted on Sep 6, 2010 at 12:53 AM

    @Ben, Haha, I just saw that you covered it already! I was using some CF and structs to store and render some jQuery dropdown menus at CF runtime, keeping my menus for each module of the app as unordered lists of anchors (links) in html files, then sorting them into a {AppRoot}/{AppName}/UI/Menu/{... read more »

  • Learning ColdFusion 9: Implicit Struct And Array Usage

    Posted on Sep 4, 2010 at 9:47 PM

    This came up as the #1 Google result for "struct key list case sensitive cold fusion 9", so I thought it might be useful to note that as of ColdFusion 9.0.1, you can provide an implicit struct with quoted keys that will retain the case of their alpha characters. For example this code: <cfset St... read more »

  • ColdFusion GetPageContext() Massive Exploration

    Posted on Aug 10, 2010 at 7:12 PM

    @Ben, Pretty much. I started programming web apps with PHP and more recently ASP.NET C#, so ColdFusion's tag based syntax becomes a little difficult to for me to mentally parse, especially when dealing with CF on an HTML page. To keep from confusing myself I try to stick to CF tags when using CF... read more »

  • ColdFusion GetPageContext() Massive Exploration

    Posted on Aug 9, 2010 at 3:04 PM

    Hey Ben, just wanted to throw this out there: ##CFScript## myURL = " http://www.example.com/ "; getPageContext().getResponse().sendRedirect(myURL); ##/CFScript## can do some funky things if you don't use the encodeRedirectURL() method on your URL you want to redirect to. In my particular case, I ... read more »