Adam Cameron
Member since May 14, 2010
- Profile: /members/6030-adam-cameron.htm
- Comments: 25
Recent Blog Comments By Adam Cameron
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jul 14, 2011 at 3:40 AM
Hi Ben It's good to see that issue accumulating votes. I dunno whether Adobe actually pay attention to these things, but at least as a community, we're doing our bit to improve CF. Now... I was thinking about the mention of CFCONTENT on this thread. The more I think about it, the less I'm incline... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jul 4, 2011 at 5:16 AM
Hi David: Why don't you try it and find out! (And then maybe report back...) -- Adam... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 11:39 AM
Oh for goodness sake. It's probably due to this: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=80798 That was a dumb E/R. -- Adam... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 11:37 AM
This breaks backwards compat, so should be considered a bug, yes? Equally, the docs for CFLOCATION state that it "Stops execution of the current page", so if that's not what it does, that's a bug too. If they want to change the behaviours for these tags (I see an argument for this), then... read more »
-
Ask Ben: When To Provide Default Values In ColdFusion
Posted on Jun 14, 2011 at 3:34 AM
Hi Ben I'm afraid your example is a perfect demonstration as to what I think is wrong with setting a default-as-exception (as you put it). You're setting a variable, and then only using that value to make sure it's NOT that value before doing [some action with that variable]. This is illogical. A... read more »
-
Ask Ben: When To Provide Default Values In ColdFusion
Posted on Jun 8, 2011 at 8:49 AM
In regards to the original "When To Provide Default Values[...]?" question, my position would be that they should be specified when that default value is the value that one would use for that argument almost all the time. For example in CF's own list functions, the default delimiter is a ... read more »
-
Extending The Application.cfc ColdFusion Framework Component With CFInclude
Posted on Feb 26, 2011 at 8:12 AM
Hi Ben / Nic I'm seeing this bung variable Nic spotted too, and it's causing us grief. I've raised a bug: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=86496 And a posting on the Adobe forums: http://forums.adobe.com/message/3495207 -- Adam... read more »
-
ColdFusion Application.cfc Tutorial And Application.cfc Reference
Posted on Jan 3, 2011 at 6:06 AM
Hi Ben Can you please provide a citation for your assertions that these event handlers are single-threaded? I'm not disagreeing with you, but I cannot find anywhere that it's explicitly (and officially) stated. Or was this just based on experimentation? Cheers. -- Adam... read more »
-
ColdFusion Ordered ArgumentCollection Behavior Depends On ColdFusion Version And Invocation Context
Posted on Nov 5, 2010 at 9:08 AM
Hi Ben (and Elliott). Yeah. I don't quite see Elliott's point re this: [quote] // So now arguments is a "struct" and I can use argumentCollection // but when I first called it I had to use an array? This makes no sense. [/quote] And I hasten to add that when I say I don't see Elliott's ... read more »
-
ColdFusion Ordered ArgumentCollection Behavior Depends On ColdFusion Version And Invocation Context
Posted on Nov 5, 2010 at 4:32 AM
Hi Elliott. Whether or not Adobe did it on purpose - I don't dispute you there, and it doesn't relly surprise me - it's that they did it *that way* that is "the bug" to me as much as anything else. As you go on to point out: structs aren't ordered. So then to decide "although if you... read more »
-
Ask Ben: Converting A Parent-Child Data Table Into A Nested XML Document
Posted on Nov 2, 2010 at 4:23 AM
Richard, I will never take offence at anything anyone has to say on a blog post or any other faceless written contribution to some internet-based organ. Or indeed, in general face to face. "Taking offence" is something one has to choose to do (it simply *does not* happen automatically), ... read more »
-
Ask Ben: Converting A Parent-Child Data Table Into A Nested XML Document
Posted on Oct 29, 2010 at 9:39 AM
Oh, and to go back on topic... converting nested set data to hierarchical mark-up is a doddle. I don't have the code in front of me but it's basically this query: select left as lineNum, '<node [stuff in here]>' as myXmlNode from tree union select right as lineNum'</node>' as myXmlNode... read more »
-
Ask Ben: Converting A Parent-Child Data Table Into A Nested XML Document
Posted on Oct 29, 2010 at 9:33 AM
There's CF code that demonstrates all the processes needed for add / update / move / etc here: http://nstree.riaforge.org/ Basically a MOVE operation requires a "make some room" process to open a gap in the left/right numbering to make a hole as wide as the left/right gap of the node y... read more »
-
Ask Ben: Converting A Parent-Child Data Table Into A Nested XML Document
Posted on Oct 29, 2010 at 3:28 AM
Richard, it's easy: go to the Adobe CF forums. Or any specific "forum" website. These are intrinsically examples of a higher-than-usual ratio of writes to reads. But think about it: to get to the point where one can "write", one has to first navigate ("read") to the ... read more »
-
Ask Ben: Converting A Parent-Child Data Table Into A Nested XML Document
Posted on Oct 29, 2010 at 3:18 AM
David, *precisely*. That's why I have modified the model for my own uses to include the parentId as a tag too. So I use the left/right tags for hierarchical queries, and the parent tag for lateral ones: the best of both worlds, and not really any additional maintenance overhead. The thing is that... read more »
-
Ask Ben: Converting A Parent-Child Data Table Into A Nested XML Document
Posted on Oct 28, 2010 at 8:09 PM
Hi Ben I only know one person who looked at a diagram of how nested sets worked and went "oh yeah, makes sense" the first time he saw it. It took me a few hours of drawing circles with numbers in them, and lines and arrows and working through the CRUD algorithms on bits of paper before I ... read more »
-
Ask Ben: Converting A Parent-Child Data Table Into A Nested XML Document
Posted on Oct 28, 2010 at 8:06 PM
Hi Richard I think you'll find that slashdot, whilst getting comparatively a lot of "write" traffic is still getting far far far more "read" traffic. Think about it... a "busy" slashdot article has a few hundred comments on it. But the "slashdot effect" - wh... read more »
-
ColdFusion Ordered ArgumentCollection Behavior Depends On ColdFusion Version And Invocation Context
Posted on Oct 28, 2010 at 7:48 PM
Right. Sorry, we're speaking @ cross-purposes (slightly), and it's my fault. The code I was running before (since reused for something else... my reply to your other blog post, so I don't have it now) was a close variation on yours in which I got: numeric arg names: function notation - struct 1: ... read more »
-
Ask Ben: Converting A Parent-Child Data Table Into A Nested XML Document
Posted on Oct 28, 2010 at 7:02 PM
The best approach to this challenge is to simply not use the parent/child model to represent a hierarchy: it's a fairly leaden approach to effecting such things. It's easy to understand, and easy to update, but it's terribly inefficient to read: this whole recursion thing you mention. A far superi... read more »
-
ColdFusion Ordered ArgumentCollection Behavior Depends On ColdFusion Version And Invocation Context
Posted on Oct 28, 2010 at 6:26 PM
Hi Ben I'm sorry, but I have to disagree with pretty much everything you've posted here, right from the set-up. When you create a *struct* and load it with keys "1" and "2", passing it into your test function, you are not passing "ordered arguments", you are passing na... read more »