Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

Brad Wood

Member since Dec 11, 2008

Recent Blog Comments By Brad Wood

  • Exploring Tag Islands (Tags In CFScript) In Lucee CFML 5.3.1.13

    Posted on Feb 24, 2020 at 10:32 PM

    Funny, three of your main examples were sending mail, queries, and HTTP requests in script: There's a "box" for that :) https://www.forgebox.io/view/cbmailservices https://www.forgebox.io/view/qb https://www.forgebox.io/view/hyper... read more »

  • Exploring The Triple Equals (===) Operator In Lucee CFML 5.3.4.77

    Posted on Feb 21, 2020 at 5:36 PM

    Yep, it's pretty frustrating that it was implemented in a confusing manner. I had a long discussion with Micha in Slack prior to entering that ticket 3 years ago and he disagreed with me at the time that there was anything wrong with Lucee's implementation. I'm like you, I literally see n... read more »

  • Exploring The Triple Equals (===) Operator In Lucee CFML 5.3.4.77

    Posted on Feb 21, 2020 at 2:10 PM

    An update, I don't think your examples showing the number and string type comparisons are actually working the way you think. Like I said above, I believe they only return true in your tests because the Lucee compiler is smart enough to re-use the same object in memory behind the scenes. L... read more »

  • Exploring The Triple Equals (===) Operator In Lucee CFML 5.3.4.77

    Posted on Feb 21, 2020 at 1:37 PM

    I actually hate how Lucee implemented === because they followed how Java works, not how JS works. In Lucee, the === operator is only checking to see if both operands are the same object on heap, not if they are the same type. I put this ticket years ago because I think most people misunder... read more »

  • Wrapping The FusionReactor API (FRAPI) For Safe Consumption In Lucee CFML 5.2.9.40

    Posted on Jan 28, 2020 at 9:17 AM

    Nice post, the FRAPI does a heck of a lot of stuff and most people don't know about it. I've found the actual Java API to be pretty well built and I don't even feel like it needs a wrapper to be honest. That said, my FRAPI integration I did with CommandBox uses it and I did create a separat... read more »

  • Strange MongoDB Error When Incrementing A Document Property In Lucee CFML 5.2.9.31

    Posted on Jan 14, 2020 at 4:17 PM

    The Lucee ticket tracker is located here: https://luceeserver.atlassian.net/ They use an on-demand JIRA instance and it's free and quick to sign up for an account. I would recommend keeping the ticket simple. Explain it will come in handy for anyone using MongoDB and include a very s... read more »

  • Strange MongoDB Error When Incrementing A Document Property In Lucee CFML 5.2.9.31

    Posted on Jan 14, 2020 at 12:20 PM

    Ben, did you put in a ticket for this? I just had a similar ticket this week related to Lucee not properly being able to do a for in loop over a Java "Set" because it wasn't a Lucee Collection. Micha already fixed it just yesterday. Mongo seems common enough he may be able to mak... read more »

  • Passing isArray() Decision Function Does Not Ensure Member Methods In Lucee CFML 5.3.3.62

    Posted on Jan 8, 2020 at 12:44 PM

    Oh, I totally forgot to add, my typical insurance against this sort of thing is to run them through a BIF as you suggested which will return a "real" CF object. Annoying, but generally effective so long as you don't need to go N-levels deep. myStruct = {}.append( myJavaHashMap ) ... read more »

  • Passing isArray() Decision Function Does Not Ensure Member Methods In Lucee CFML 5.3.3.62

    Posted on Jan 8, 2020 at 12:40 PM

    In short, this was not a bug in Lucee CFML I would disagree here :) What you have described has been one of the biggest screw ups in member functions IMO. Adobe and Lucee both fell into this trap and it's drove me crazy the number of times it's bitten me. The issue is, people assume that... read more »

  • Replacing ColdFusion Query-Of-Queries (QoQ) With Array Functions In Lucee CFML 5.2.9.31

    Posted on Nov 5, 2019 at 9:39 AM

    But, now that Lucee makes closures and fat-arrow syntax so easy To be fair, Adobe introduced fat arrows in 2018 update 5 and once the next Adobe updater comes out with some remaining fixes for it, it will actually work better than Lucee's fat arrows! The Adobe team was super responsive in ... read more »

  • Replacing ColdFusion Query-Of-Queries (QoQ) With Array Functions In Lucee CFML 5.2.9.31

    Posted on Nov 5, 2019 at 8:39 AM

    Great post, Ben. i have always been a fan of QofQ's but I think you have to be careful of performance with large result sets, especially if you're applying a complex filter. The only really annoying thing QofQ lacked for me was an outer join. ColdBox has a cbCommons module which has utili... read more »

  • ColdFusion Client For The Word-Finding Datamuse API

    Posted on Jul 25, 2018 at 8:49 PM

    No, the "new" keyword is nothing more than a shortcut for creating CFC instances. There is a generic way to call any tag in script, but that's a different thing entirely.... read more »

  • ColdFusion Client For The Word-Finding Datamuse API

    Posted on Jul 25, 2018 at 8:11 PM

    Charles, all the same variable scoping rules apply to cfscript the same as tags. Really no difference there. The new keyword is the same as doing createObject( 'component', 'lib.DatamuseClient' ).init()... read more »

  • ColdFusion Client For The Word-Finding Datamuse API

    Posted on Jul 25, 2018 at 5:08 PM

    Need to get your awesome API on ForgeBox to make it easier for others to install, update, and use. Would you like me to send you a pull to add the box.json to your repo? Then all you'll need to do is: forgebox login bump --major :)... read more »

  • Spiders Are Tricking My Session Management

    Posted on Oct 24, 2007 at 2:40 PM

    Can you tell if any of those "sneaky" spiders over look for robots.txt? I've always wanted to mess around with mod rewrite or something to funnel robots.txt through CF so I can better pin down requests coming from spiders. Of course, that ASSUMES they even bother looking for robots.txt. If they... read more »

  • ColdFusion 8's New Nested Query Loop Behavior (Thanks Rick Osborne)

    Posted on Jun 11, 2007 at 9:51 AM

    I think it is good that Adobe fixed that "feature" (read bug) whcih has been in CF too long. Of course, this is just the subtle type of butt biting change that can make that one important page of your site start behaving differently after you upgrade and you JUST can't figure it out... haha. Kno... read more »

  • Learning ColdFusion 8: Implicit Struct And Array Creation

    Posted on Jun 5, 2007 at 11:28 AM

    Is it "attributescollection"? I thought that was an pre-exising input to custom tags. I thought the new one was "argumentscollection". At least, that's what I wrote down in my note's from Ben Forta's presentation to my user group.... read more »

  • Learning ColdFusion 8: CFThread Part IV - Cross-Page Thread References

    Posted on Jun 5, 2007 at 11:01 AM

    So, since the application struct is only copy of the actual threads at the time of their creation I assume you wouldn't be able to view error informtion, or terminate the threads, etc. Is there no way to reference the thread directly after it has been kicked off and the request which created it has... read more »

  • Updating In-Memory (Temporary) SQL Tables With UPDATE / DELETE Clauses

    Posted on Jun 1, 2007 at 6:07 PM

    It's probably worth noting that table variables (@temp) in MS SQL are stored in RAM, as opposed to regular temp tables (#temp) are stored in the tempdb and require disk I/O. I use table variables when handling under 3000 records or so. Any larger and SQL Server will automatically start swapping da... read more »

  • Passing Arrays By Reference In ColdFusion - SWEEET!

    Posted on Sep 19, 2006 at 10:20 AM

    That IS pretty sweet. How come one of the arrays has 6 more items than the other at the end of the test? Did they not start off empty? I'm curious how this test scales. In other words, if you did 10,000 manipulations of a small array, if the difference would be as big. I assume that the norm... read more »