Brad Wood
Member since Dec 11, 2008
- Profile: /members/1640-brad-wood.htm
- URL: http://www.codersrevolution.com
- Comments: 21
Recent Blog Comments By Brad Wood
-
Reading Environment Variables In ColdFusion
Posted on May 27, 2015 at 9:45 AM
@Ben, that was actually Matt Gifford in the day-1 keynote who made that funny reference. His slides (which were mostly animated Gif memes) showed a screenshot of all the tickets Adam has submitted. Speaking of Lucee, I think the latest version actually incorporates the environment variables into ... read more »
-
CFFinally Tag Will Execute Even After An Abort In ColdFusion
Posted on Jul 19, 2014 at 12:48 PM
That's the point of finally tags-- they always, always, ALWAYS execute. In lower level languages like Java, that behavior is imperative. Otherwise you'd end up with file and socket streams left open, etc. It is interesting that the finally location executes. It must mean that CF somehow queues u... read more »
-
Using ObjectSave() And ObjectLoad() With Non-ColdFusion-Component Data Types
Posted on Feb 13, 2014 at 10:23 PM
For deserializeJSON() to give you queries back, you have to set the "strictMapping" parameter to false. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_43.html I've never understood why that wasn't the default since I would expect to get back what I put ... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Apr 5, 2013 at 4:59 PM
Does anyone ave recent bug base links from the above comment thread? Now, that the Flex version of the bugbase isn't used, all those links are dead, and it's bloody impossible to search the new bugbase for the original bug id.... read more »
-
OOP Getters() And Setters() - A New Programmer's Frustration
Posted on Jan 25, 2010 at 3:33 PM
I beleive the gist is this-- You should ask objects to do things for you. You shouldn't ask an object for a bunch of information and then do something with it. Google "anemic domain model" I'm not saying it's bad to have gets and sets, but if that is ALL your objects ever have then where is your ... read more »
-
Creating Globally Accessible User Defined Functions In ColdFusion (Safer Version)
Posted on Dec 13, 2009 at 5:51 PM
"create a base Component that all of the other CFC's extend" ColdFusion already has a base component that all components extend. Its called located here: WEB-INF/cftags/component.cfc :)... read more »
-
Creating Globally Accessible User Defined Functions In ColdFusion (Safer Version)
Posted on Dec 8, 2009 at 6:56 PM
"All to say, we really need a native way to do this (ala Railo)" FWIW, at one time Adobe listed a feature of CF10 (codename Link) as "Pluggable Architecture". http://www.codersrevolution.com/index.cfm/2008/9/17/A-Look-Into-ColdFusions-Future-Centaur-Sully-Link Sadly though, the latest version o... read more »
-
Thoroughly Document Your Use Of ColdFusion's CFHTMLHead Tag
Posted on Oct 12, 2009 at 3:04 PM
@David: What version of ColdFusion did you test that with? I am on 8.0.1 and the getCFHtmlHead function errors on the line with local.out.getClass().getDeclaredField("headerBuffer"). It appears that my version of ColdFusion doesn't have a headerBuffer field in the NeoBodyContext class, but insead ... read more »
-
Passing A Function To jQuery's Attr() Method For Implicit Iteration
Posted on Oct 7, 2009 at 12:35 PM
@Steven: Around line 1855 in my v1.3.3pre of jQuery are the following bits: jQuery.fn.extend({ attr: function( name, value ) { This is what code runs when you call the attr() method of a jQuery object. You will see the first line is this: var elem, options, isFunction = jQuery.isFunction(value... read more »
-
Passing A Function To jQuery's Attr() Method For Implicit Iteration
Posted on Oct 7, 2009 at 11:47 AM
I'm sure it wouldn't make much of a difference unless you were doing it thousands of time. And if you are, I bet the FireBug profiler would give you some good stats on which one was faster.... read more »
-
Learning ColdFusion 9: A Bug With File-Based Object Caching
Posted on Jul 22, 2009 at 7:00 PM
Ben, what happens when you turn on trusted cache? What if the temp file contained a cfcomponent tag and you created and cached an instance of that component instead of just a reference to the UDF?... read more »
-
OOP Getters() And Setters() - A New Programmer's Frustration
Posted on Oct 14, 2008 at 11:17 AM
@Ronny: "using OOP methods and practices in a language that doesn't really support real OOP." How do you define "real" OOP? The way Java does it? If you are suggesting CF isn't OO I would disagree, but I would admit that do to the structure of the language (dynamically typed) and some drawbacks ... read more »
-
OOPhoto: VARIABLES vs. VARIABLES.Instance - When And Why?
Posted on Sep 13, 2008 at 4:31 PM
Ok, so now that you have explained how you separate out the variables, can you tell me why? If you as the writer of the component know the difference between the object's data, what benefit do you get from placing it in a different place? Is that in case you forget later, or do you have some dyn... read more »
-
OOPhoto - What Is An Idealized Object?
Posted on Aug 20, 2008 at 12:22 PM
Good thoughts here Ben. My first thought about the related articles was kind of like Gareth's, but I don't know if I am a fan of the whole service thing yet. I asked myself "what object contains or better yet, 'knows' about your articles?" I would be tempted to have a blog object or site object... read more »
-
OOPhoto - Another Attempt At Learning Object Oriented Programming (OOP) In ColdFusion
Posted on Jul 1, 2008 at 10:58 AM
Cool Ben, I can't wait to see the project take shape! ~Brad... read more »