Skip to main content

Adam Presley

Member since Dec 11, 2008

Recent Blog Comments By Adam Presley

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

    Posted on Aug 18, 2008 at 2:14 PM

    I konw that I personally am a fan of the object knowing how to persist itself in most situations, though I'm sure that there can be other situations that a service object to persist another object would be preferable. That being said, I tend to have my objects understand how to persist themselves to... read more »

  • Creating Excel Files Faster With ColdFusion And POI Custom Tag Updates

    Posted on Aug 1, 2008 at 1:55 PM

    Nice work. A very useful utility, and now even better! :)... read more »

  • Writing AJAX Return Value Logic On The Server

    Posted on Apr 17, 2008 at 6:25 PM

    It kind of depends on the application in question. I know that a lot of stuff I do I use ExtJS for Javascript interface design. All of that requires JSON data coming back to populate interface elements such as a combo box. If you aren't using that kind of thing though, returning HTML is certainly ... read more »

  • Writing AJAX Return Value Logic On The Server

    Posted on Apr 17, 2008 at 4:52 PM

    And that's cool. In the end it is simply a matter of what accomplishes the job, with a healthy balance of cost of development, future maintenance cost, and delivery time. Like I said, I've done the same before. :)... read more »

  • Writing AJAX Return Value Logic On The Server

    Posted on Apr 17, 2008 at 3:56 PM

    The biggest reason I am not a fan of method #2 (which is how I have done in the past) is due to the fact that now that the updating of information in the view is being generated in the business logic side of things, forcing high coupling. Typically it is a good practice to reduce the knowledge that... read more »

  • How Many HTML Elements Can You Name in 5 Minutes?

    Posted on Nov 20, 2007 at 9:25 AM

    Haha. That's cool. I only got 41 elements. A couple I missed that I know I use, but the rest I just never use. Fun link!... read more »

  • Building Java Arrays In ColdFusion Using Reflection

    Posted on Nov 12, 2007 at 8:06 PM

    You are correct about the casting. The function uses the basics of polymorphism as it expects to copy into an array of Objects. The String class is based off Object, and therefore meets the requirements and will cast up. It's cool what you can do with the java side of CF. :)... read more »

  • Building Java Arrays In ColdFusion Using Reflection

    Posted on Nov 12, 2007 at 9:28 AM

    Very nice that CF8 added that ability. I did notice that you opted to copy the CF vector-based array to the actual java value array manually. Most all Java data structures offer the ability to export as an array. In fact, you can call ".toArray()" on the vector class and get an array of objects. If ... read more »

  • Exercise List: Designing The Database Schema

    Posted on Oct 22, 2007 at 6:19 PM

    The notation that Sana is referring to reminds me very strongly of the old C-style Hungarian notation, in which all variables are prefixed with their data type. That methodology was somewhat useful for strongly typed languaged. Yes, SQL is strongly typed, but ColdFusion is not (at least not at it's ... read more »

  • Ben Forta Talking About ColdFusion Scorpio In New York City Tonight

    Posted on May 15, 2007 at 12:46 PM

    I watched his presentation on Scorpio in Dallas, and it was pretty cool.... read more »

  • CFSetting RequestTimeout Updates Timeouts, It Does Not Set Them

    Posted on Apr 4, 2007 at 8:21 PM

    I cannot say with any authority, however I have spent a little time writing my own language interpreters, and found that when assembling my page into my output buffer anytime I found a command that would modify program execution settings, I would put those into my script's environment settings, and ... read more »

  • CFSetting RequestTimeout Updates Timeouts, It Does Not Set Them

    Posted on Apr 4, 2007 at 4:51 PM

    This would make sense, Ben, as ColdFusion uses output buffering by default, and you must explicitly tell it to flush the contents of the buffer. This is unlike language like PHP, for example, which flush content out as it is processed, and you must explicitly tell it to buffer output if you wish for... read more »

  • Does Anyone Else Get Confused By A Purposefully Slow RIAs?

    Posted on Dec 21, 2006 at 12:15 PM

    I agree. Many developers getting into the whole "web 2.0" (gah... buzzwords) do alot of these things due to "cool-factor", and not necessarily for the benefit of user experience or even usability.... read more »

  • My Own Hello World Java Class For ColdFusion

    Posted on Oct 9, 2006 at 5:03 PM

    Yes, I realized the same after writing some date/time, timezone, and locale classes at my work for our ColdFusion devs.... read more »

  • Am I The Only One Who Likes White Space In My ColdFusion Code?

    Posted on Oct 9, 2006 at 5:00 PM

    Although I don't use quite the same whitespace rules as you, I am certainly as... "anal". I find myself unconciously tabbing someone elses code quite frequently. lol... 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