Skip to main content

Brett S

Member since Dec 11, 2008

Recent Blog Comments By Brett S

  • An Experiment In Non-Data-Type ColdFusion Components

    Posted on Apr 13, 2009 at 1:22 PM

    Hey Ben - I actually employ a somewhat similar solution on a system with ~350K objects, and ~45 component types. It really has benefited me in a domain where everything needs to be dynamic. So while I can't comment specifically on how to "fix" your solution to be a more academic OO solution, I can... read more »

  • Experimenting With Flat-File ColdFusion CFML Caching

    Posted on Dec 5, 2008 at 2:59 PM

    @Jean Yep there are still instances that would need to be worked around. The way I would handle that is if there was data on a row that can be updated en mass I would join to that data and not include it in the WDDX. Approval Code would be a good example. Another approach would be to only delete... read more »

  • Experimenting With Flat-File ColdFusion CFML Caching

    Posted on Dec 5, 2008 at 1:54 PM

    We used to do a lot of disk caching but moved away from it for a couple reasons/pains that are on the top of my head: * Being able to use ColdFusion's Trusted Cache was probably biggest reason. With trusted cache the only way to use file based cfm caching is to flush all the cache or clear the cac... read more »

  • ColdFusion NumberFormat() Exploration

    Posted on Jun 11, 2008 at 11:31 PM

    I guess this is the final statement - boy aint CF kinky! NumberFormat( YesNoFormat( val ( myVar ) ) ) AND NumberFormat( YesNoFormat( val ( "my valuel" ) ) )... read more »

  • ColdFusion NumberFormat() Exploration

    Posted on Jun 11, 2008 at 11:27 PM

    Adam - I hope you are subscribed to this thread! I've been using your method for a bit, thanks btw! But alas, I found the next problem in it.... (I have a huge rant about cf functions brewing...) This throws an error (cf8 j2ee), so close! <cfset myVal = "brett"> <cfif NumberFormat(Ye... read more »

  • ColdFusion CFCatch Tags Catch Exceptions Based On Type Hierarchy

    Posted on Jun 11, 2008 at 1:55 PM

    After all the tidbits I've learned from this blog over they years I'm glad I was able to give back. I've always enjoyed the way you get under the hood on your posts. I use cfthrow *a_lot* and I've learned some other tricks and techniques that really come in handy. Perhaps I can follow on at anoth... read more »

  • Eric Stevens On CFContent And Memory Usage In ColdFusion 8

    Posted on May 14, 2008 at 7:19 PM

    This is good to know, thanks. Then one last vice of CFCONTENT may then be the confirmed(?) issue of throttled transfer speed? Back in the day there had been lots of discussion about slower download speeds when using CFCONTENT. I'm not sure I ever saw this disproved or fixed or what though, but it... read more »

  • The Fresh Face Of The New York ColdFusion User Group (NYCFUG)

    Posted on Jan 8, 2008 at 1:33 PM

    I've been to some NYC Rails groups and they are so much more laid back and fun. The CFUGs I have been to are way to formal. Maybe it is the venue, or the format I'm not sure. Beer would be good. Site looks freaking GREAT!... read more »

  • Learning ColdFusion 8: All Hail The New ++ Operator

    Posted on Sep 13, 2007 at 10:12 AM

    Yeah it is strange to say the least :) I'm not actually sure if it is intended - if it will be supported moving forward. Bonus points if we can come up with a scenario where this might be useful. cheers.... read more »

  • Learning ColdFusion 8: All Hail The New ++ Operator

    Posted on Sep 12, 2007 at 6:02 PM

    Okay here is one of those trademark ColdFusion "features" for you... Run this: <cfscript> "last" &= "first"; writeoutput( last ); </cfscript> But you have to first guess what you think that will output....... read more »

  • Learning ColdFusion 8: Implicit Struct And Array Creation

    Posted on Aug 17, 2007 at 12:41 PM

    Just to add to the problems of implicit variable decorations: Using any operator as an implicit struct key throws an error. So <cfset myStruct = { And = "break" } /> Doesn't work. Throws error... as do OR, MOD, EQ, LT, etc... Where as: <cfset myStruct = StructNew() /> <cfset... read more »

  • ColdFusion NumberFormat() Exploration

    Posted on Aug 13, 2007 at 10:20 AM

    Nice... But... I'm still one step away though. What I am looking for is a single function call that will evaluate a loosely typed variable as a bit, while handling CFs three "yes,true,1" in the same way. Val ( "true" * 1 ) works nicely, but Val ( "string" * 1 ) throws an error.... read more »

  • ColdFusion NumberFormat() Exploration

    Posted on Aug 13, 2007 at 10:00 AM

    One "feature" of NumberFormat that I have used is to convert ColdFusion boolean values to 1 or 0. This comes in handy when passing these values to SQL/JS/xml when you want a consistent format. NumberFormat( "true" ) = 1 NumberFormat( "false" ) = 0 I have secretly fantasized that Val("true") w... read more »

  • Using CAPTCHA In ColdFusion 8

    Posted on Aug 10, 2007 at 3:38 PM

    Hey Ben, Another suggestion would be to do away with the encrypt function and pass a hashed version of the captcha text in the hidden field and compare that to the hashed user input as the validation test. This would simplify the process a bit. Another benefit in using hashed values is that the e... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel