Recent Activity
Recent Heroes of the BenNadel.com Community
-
Posted 462 comments since October 5, 2014
-
Posted 61 comments since December 11, 2008
-
Posted 259 comments since October 23, 2012
-
Posted 5 comments since August 16, 2024
-
Posted 11 comments since June 14, 2019
-
Posted 91 comments since December 11, 2008
-
Posted 14 comments since March 3, 2009
-
Posted 8 comments since June 14, 2022
-
Posted 1 comment since February 19, 2025
Recent Comments
Chris G replied to a post Exploring Variadic Function Mechanics In ColdFusion
Comment posted March 24, 2025
@Ben Nadel, HUGE undertaking and considering how much they've already accomplished (and support) I'm (very) impressed that they even found the time. Ray Camden is a solid get as their Boxlang evangelist as well. Go Ray! I love that we do, but not sure why we needed another engine. I think it must ha... read entire comment from Chris G.
Ben Nadel replied to a post Exploring Variadic Function Mechanics In ColdFusion
Comment posted March 24, 2025
@Zac, I don't think I've seen that index stuff before. The page you linked to, the example throws some sort of type casting error; but, I wasn't able to see what was actually going wrong. That said, I think I get the gist of what's happening - you can define one of the columns to be accessible by it... read entire comment from Ben Nadel.
Ben Nadel replied to a post Exploring Variadic Function Mechanics In ColdFusion
Comment posted March 24, 2025
@Chris, Yeah, it's so wild that they've created another CFML engine! Seems like such an enormous undertaking. Over on LinkedIn, Luis was saying that my error above (when trying to run a boxlang server) was because I hadn't installed the boxlang module for CommandBox; though, I tried to install it an... read entire comment from Ben Nadel.
Chris G replied to a post Exploring Variadic Function Mechanics In ColdFusion
Comment posted March 23, 2025
Impressive that Boxlang is coming out the gate so strongly!... read entire comment from Chris G.
Zachary Spitzer replied to a post Exploring Variadic Function Mechanics In ColdFusion
Comment posted March 22, 2025
Have you tried the query index stuff? https://docs.lucee.org/reference/functions/queryrowbyindex.html Let me know if you have any suggestions for further tweaks for core functions... read entire comment from Zachary Spitzer.
Ben Nadel replied to a post Exploring Variadic Function Mechanics In ColdFusion
Comment posted March 22, 2025
@Zac, ahh, much appreciated good sir! Thank you for getting that in there. Also, good to see some new core functions being added. I often have utility functions that have to build in that workflow, things like arrayIndexBy() and arrayGroupBy(). I love when stuff gets taken-in by the runtime itself. ... read entire comment from Ben Nadel.
Zachary Spitzer replied to a post Exploring Variadic Function Mechanics In ColdFusion
Comment posted March 22, 2025
We also added this in Lucee 6 ArrayToStruct: add valueAsKey, use arrayValue as structkey https://luceeserver.atlassian.net/browse/LDEV-3171... read entire comment from Zachary Spitzer.
Zachary Spitzer replied to a post Exploring Variadic Function Mechanics In ColdFusion
Comment posted March 22, 2025
Nice investigation Array slice bug filed on your behalf https://luceeserver.atlassian.net/browse/LDEV-5419... read entire comment from Zachary Spitzer.
Ben Nadel replied to a post Safe-Navigation Operator Swallows Method Errors In Adobe ColdFusion 2023
Comment posted March 20, 2025
@Paolo, To be honest, I'm not sure. But, I think I may have posted just before the 2025 beta was opened. So, it's very possible that all of the feature development had been someone planned by that point. Maybe they will get to it in a patch release?... read entire comment from Ben Nadel.
Paolo Olocco replied to a post Safe-Navigation Operator Swallows Method Errors In Adobe ColdFusion 2023
Comment posted March 20, 2025
@Ben, thanks. It work now. I see the status To Fix, but in CF2025 it Is still not solved right?... read entire comment from Paolo Olocco.
Ben Nadel replied to a post Safe-Navigation Operator Swallows Method Errors In Adobe ColdFusion 2023
Comment posted March 19, 2025
@Paolo, The link works for me, maybe the Adobe site was temporarily down? Try it again.... read entire comment from Ben Nadel.
Paolo Olocco replied to a post Safe-Navigation Operator Swallows Method Errors In Adobe ColdFusion 2023
Comment posted March 18, 2025
Hi Ben, why CF-4224186 link is not working?... read entire comment from Paolo Olocco.
Ben Nadel replied to a post Hypermedia Systems By Carson Gross
Comment posted March 9, 2025
@Bill, I think one of the things that I keep struggling with is where to draw the line between progressive enhancement vs needing JavaScript to actually run the application. One thing that's "nice" about a SPA architecture is that the decision is already made for you; so, you don't have to spend too... read entire comment from Ben Nadel.
Bill Nourse replied to a post Hypermedia Systems By Carson Gross
Comment posted March 9, 2025
Hey Ben, Yes sorry, I was being rhetorical. And yes, one should always follow standard conventions. For me following semantics is also very helpful. So if you prefer to use POST when your intention is to PATCH or DELETE, sure it works, but let's say we agree to disagree :) Back to HTMX... Yes, under... read entire comment from Bill Nourse.
Ben Nadel replied to a post Hypermedia Systems By Carson Gross
Comment posted March 9, 2025
@Bill, I would only caution about making a false equivalence here: There is no hard fast rule that says you can't use a header tag to style a footer, right? This is inherently a misleading decision (to use footer to describe header). In the HTTP world, this would be like using GET to perform mutatio... read entire comment from Ben Nadel.
Bill Nourse replied to a post Hypermedia Systems By Carson Gross
Comment posted March 9, 2025
Hey Ben, You are right, and I admit, there is no hard fast rule in applying REST principles. Using only GET and POST requests can work, no argument there. To me, it is more a matter of semantics. If my intention is to delete something, using a DELETE request instead of a POST request would at least ... read entire comment from Bill Nourse.
Ben Nadel replied to a post Hypermedia Systems By Carson Gross
Comment posted March 8, 2025
@Bill, I'm with you on wanting to drive as much logic to the server as possible. After all, there server is the source of truth; and, has to handle all of business logic and the validation anyway. So, if we can collocate more of the logic there, I think it just makes everything more simple to mainta... read entire comment from Ben Nadel.
Bill Nourse replied to a post Hypermedia Systems By Carson Gross
Comment posted March 8, 2025
Hey Ben, I'm so happy you read up on HTMX. Like Hotwire, the concept isn't a framework or library, but a way of thinking. Carson Gross and David Heinemeier Hansson have pointed out we don't need to follow Javascript framework conventions. For example with a CFML server, you don't need a Javascript f... read entire comment from Bill Nourse.
Ben Nadel replied to a post Using The FusionReactor API (FRAPI) To Add Custom Instrumentation In Lucee CFML 5.2.9.40
Comment posted March 6, 2025
I finally got around to testing what happens if you started a tracked transaction and never close it (explicitly). Example: try { tracked = frapi.createTrackedTransaction( "oops" ); } finally { // What happens if I fail to close tracked transaction? // tracked?.close(); } Based on what I'm s... read entire comment from Ben Nadel.
Ben Nadel replied to a post ColdFusion Custom Tags Can Use Dashes In Tag Names
Comment posted March 4, 2025
As an aside, I can't believe that the CFImport tag is still a compile-time directive (presumably because of some of the JSP integration stuff?). I would love to have a version of the tag, or even a new tag such as cfnamespace, that would allow me to prefix custom tags using per-application path mapp... read entire comment from Ben Nadel.
Ben Nadel replied to a post Associating Submit Buttons With Any Form Using Button Attributes In Native HTML
Comment posted March 1, 2025
@All, I was thinking more about these mechanics this week; and how moving a <button> elements outside of a <form> element can make the button much easier to style. Consider a list of actions to be performed on a data-grid row: View <-- link Edit <-- link Delete <-- button If the rendering of the "de... read entire comment from Ben Nadel.
Ben Nadel replied to a post Overriding Form Submission Properties Using Button Attributes In Native HTML
Comment posted March 1, 2025
@All, I was thinking more about these mechanics this week; and how moving a <button> elements outside of a <form> element can make the button much easier to style. Consider a list of actions to be performed on a data-grid row: View <-- link Edit <-- link Delete <-- button If the rendering of the "de... read entire comment from Ben Nadel.
Ben Nadel replied to a post Spawning Nested ColdFusion Threads With Synchronous Fallbacks
Comment posted February 27, 2025
So, 11-years later, this is still a problem in Adobe ColdFusion. I wrote and updated piece on some various techniques to see if you're currently operating in a threaded context: https://www.bennadel.com/blog/4772-checking-for-nested-cfthread-execution-in-adobe-coldfusion.htm This includes a getPageC... read entire comment from Ben Nadel.
Ben Nadel replied to a post Checking For Nested CFThread Execution In Adobe ColdFusion
Comment posted February 27, 2025
@All, I added a brute-force example to the end of the post - basically just trying to spawn a throw-away thread in order to see if an exception is raised. While this is an absurd idea, it's really the only idea that's relies on fully documented behaviors. The rest of the ideas all rely on coincident... read entire comment from Ben Nadel.
Ben Nadel replied to a post Checking For Nested CFThread Execution In Adobe ColdFusion
Comment posted February 27, 2025
@Dave, I am in strong agreement! It just makes no practical sense.... read entire comment from Ben Nadel.
Dave Quested replied to a post Checking For Nested CFThread Execution In Adobe ColdFusion
Comment posted February 27, 2025
I've asked and asked Adobe to allow child threads. Even made a request during ACF2025 beta. Fell on deaf ears. Seems like something a modern language should allow. Please Adobe remove this silly restriction! Just like you suggest Ben we have third party calls that can be spawned off and they might s... read entire comment from Dave Quested.
Ben Nadel replied to a post Checking For Nested CFThread Execution In Adobe ColdFusion
Comment posted February 27, 2025
I just opened a ticket CF-4225696 to suggest that maybe this be an Application.cfc setting, like this.childThreads = true. Just at least get a conversation started.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Checking For Nested CFThread Execution In Adobe ColdFusion
Comment posted February 27, 2025
It looks like ticket CF-4079088 was filed 10 years ago to add the isInThread() function. Looks like it's still being investigated 😄... read entire comment from Ben Nadel.
Charles Robertson replied to a post Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Comment posted February 23, 2025
@Ben Nadel, Yes. Functional React seems like a reaction to me. It's like trying to place a square peg into a round hole. Class component based React made far more sense, to me, and this is borne out by the amount of hooks, the core team has had to build, to patch all the problems that functional Rea... read entire comment from Charles Robertson.
Ben Nadel replied to a post Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Comment posted February 23, 2025
@Charles, Ah yes, I see this pattern in the use* things in React a lot. I don't know very much about that part of React; but, I've seen enough code to know this is the common pattern. I know this extremely subjective; but, the fact that React uses destructuring so often always makes me feel like it'... read entire comment from Ben Nadel.
Charles Robertson replied to a post Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Comment posted February 21, 2025
@Ben Nadel, Hmmmm. Now you've got me. 🤩 I mean I use destructuring mainly, in JavaScript, to extract key/value pairs into individual variables. This kind of thing was used in React, a lot when using hooks, like: import { useState } from 'react' function Example() { // Declare a new state variable... read entire comment from Charles Robertson.
Ben Nadel replied to a post Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Comment posted February 21, 2025
@Charles, Yeah, I know they added it at some point, but I don't remember which version :) I don't have much experience with destructuring - I'd be curious to hear where your common use-cases are.... read entire comment from Ben Nadel.
Charles Robertson replied to a post Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Comment posted February 21, 2025
@Ben Nadel, This is fabulous information. 🙂 I never realised that Coldfusion had destructuring, either. I actually really like destructuring, which I use a lot, when writing JavaScript. It's a little surprising that Lucee doesn't contain these kinds of constructs, considering Lucee is all about mod... read entire comment from Charles Robertson.
Ben Nadel replied to a post Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Comment posted February 21, 2025
@Charles, Yes, they have a spread operator as well. I don't think that Lucee CFML 5.x has either (I vaguely remember going to use it and it throwing a compilation error). Maybe it come in Lucee 6? To be honest, I rarely reach for it. ColdFusion has so much parallel functionality that I haven't reall... read entire comment from Ben Nadel.
Charles Robertson replied to a post Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Comment posted February 20, 2025
@BenNadel Hey Ben This is very interesting. I actually never knew that Coldfusion had a rest operator. Does Lucee have this, as well? And why would you use this, over the arguments struct? Maybe, if you want to guarantee the order of the arguments, which an array will do and a struct won't? And one ... read entire comment from Charles Robertson.
Ben Nadel replied to a post Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Comment posted February 20, 2025
I've submitted a bug report: CF-4225664.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Creating A Marquee Effect With CSS Animations
Comment posted February 19, 2025
My pleasure :)... read entire comment from Ben Nadel.
rothfeller replied to a post Creating A Marquee Effect With CSS Animations
Comment posted February 19, 2025
Hey! Thanks! 😀... read entire comment from rothfeller.
Ben Nadel replied to a post Sanity Checking HTTP Method Used After Location() Call In ColdFusion
Comment posted February 19, 2025
@James, I did not test anything else but browsers. Mostly I was trying to verify that sticking with 302 as "OK" to do. I'm not too familiar with curl, but looking at your output, yeah, it definitely seems like a POST is taking place at the very end there ... but, it's very possible that I'm not read... read entire comment from Ben Nadel.
James Moberg replied to a post Sanity Checking HTTP Method Used After Location() Call In ColdFusion
Comment posted February 19, 2025
Have you tested to identify how other clients handle 303 redirects? (ie, CFHTTP, CFX_HTTP5, CURL, WGET, etc?) I used CURL (on Windows) with the location flag enabled to connect to an IIS web server: curl -vv -L -X POST "https://www.mywebsite.com/redirect-test.cfm" -d "useStatus=303&submitted=true" ... read entire comment from James Moberg.
Ben Nadel replied to a post Sanity Checking HTTP Method Used After Location() Call In ColdFusion
Comment posted February 19, 2025
From the RFC for 302 , it states: Note: For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request. If this behavior is undesired, the 307 (Temporary Redirect) status code can be used instead. Presumably this would be SHOULD for any browser based c... read entire comment from Ben Nadel.
Ben Nadel replied to a post Hypermedia Systems By Carson Gross
Comment posted February 19, 2025
@Peter, Thank you for the kind words! That's cool that we wrote idiomorph. I've heard of it (I think a number of frameworks use it, or there might be a successor called ?dommorph?); but I haven't used it directly. He seems like he knows what he's doing! I'm eager to try using it on one of my project... read entire comment from Ben Nadel.
Ben Nadel replied to a post Hypermedia Systems By Carson Gross
Comment posted February 19, 2025
One thing that Carson said in the book that didn't sit right with me was is discussion about HTTP status codes. He recommended using 303 See Other instead of 302 Found (which is the default used by ColdFusion in-built location() function). His reasoning being that the 302 (and 301) status code propa... read entire comment from Ben Nadel.
Peter S replied to a post Hypermedia Systems By Carson Gross
Comment posted February 18, 2025
Ben, I always love your perspective on these things. I got into htmx after working with cfml and Hotwire. Its amazing how simple htmx makes the development paradigm. After I learned that Carson G also wrote idiomorph DOM morphing engine that rails / hotwire makes use of I thought I better check out ... read entire comment from Peter S.
Ben Nadel replied to a post Hypermedia Systems By Carson Gross
Comment posted February 18, 2025
@Chris, It also looks like the have a free version online to read, if that helps. It is really fascinating stuff. I've been dabbling with Hotwire over the last year or so, with mixed feelings. But, I think so much of that is also that Hotwire uses Stimulus which is extremely verbose an HTMX seems to... read entire comment from Ben Nadel.
Chris G replied to a post Hypermedia Systems By Carson Gross
Comment posted February 18, 2025
Firstly, I loved this .. If nothing else, it's a palette cleanser for those of us that have been dining on thick-client applications for the last 15 years. Secondly, I'm so so so curious about digging into htmx, but just haven't ever made the time. Thirdly, I love, use, and highly recommend CFWheels... read entire comment from Chris G.
Charles Robertson replied to a post Using The XOR Operator To Assert Connascence Of Existence In ColdFusion
Comment posted February 11, 2025
@Ben Nadel So what happens if you have more than two values to test like ( 0 XOR -1 XOR 1 ) Does it just test: ( 0 XOR -1) == true And then: ( -1 XOR 1 ) == false But which bool value takes precedence? The truthy or falsey one? As far as I know, the OR operator, will stop processing at the firs... read entire comment from Charles Robertson.
Ben Nadel replied to a post Using The XOR Operator To Assert Connascence Of Existence In ColdFusion
Comment posted February 11, 2025
Exactly.... read entire comment from Ben Nadel.
Charles Robertson replied to a post Using The XOR Operator To Assert Connascence Of Existence In ColdFusion
Comment posted February 11, 2025
@Ben Nadel, So: ( 0 XOR -1 ) == true As, I understand the only number that is falsey is zero?... read entire comment from Charles Robertson.
Ben Nadel replied to a post Using The XOR Operator To Assert Connascence Of Existence In ColdFusion
Comment posted February 11, 2025
@Charles, Exactly right. And, to be clear, the values simply need to be truthy and falsey. Meaning: ( 4 XOR 8 ) == false Since both 4 and 8 are truthy, the XOR is false despite the fact that the values are not equivalent.... read entire comment from Ben Nadel.