Recent Activity
Recent Heroes of the BenNadel.com Community
-
Posted 204 comments since October 23, 2012
-
Posted 5 comments since March 9, 2024
-
Posted 4 comments since November 1, 2021
-
Posted 3 comments since March 17, 2024
-
Posted 57 comments since December 11, 2008
-
Posted 20 comments since May 27, 2015
-
Posted 4 comments since April 15, 2020
-
Posted 29 comments since December 11, 2008
-
Posted 2 comments since December 11, 2008
-
Posted 4 comments since December 11, 2008
-
Posted 9 comments since December 11, 2008
-
Posted 9 comments since February 29, 2012
-
Posted 3 comments since October 26, 2023
-
Posted 1 comment since March 7, 2024
-
Posted 1 comment since March 22, 2024
Recent Comments
Ben Nadel replied to a post Using CFModule To Render Templates With Isolation In ColdFusion
Comment posted March 29, 2024
One other thing that might be worth mentioning is that you can use this technique from with the Application onRequest() event handler as well. The onRequest() event handler gives you a chance to override which ColdFusion script is being executed for a given request. Normally, it might be coded like ... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using CFModule To Render Templates With Isolation In ColdFusion
Comment posted March 28, 2024
@Will, I think with frameworks that render Views inside components (which I think is how it's mostly done these days), there's likely very little need to use cfmodule. In my particular case, it's all nested switch/include statements. So, without cfmodule, it's just variables all the way down 😆 Esse... read entire comment from Ben Nadel.
Will B. replied to a post Using CFModule To Render Templates With Isolation In ColdFusion
Comment posted March 28, 2024
Interesting. SORT of like the "args" scope that Coldbox provides when using renderView(view: "/views/view.cfm", args: {val: 1}). The args are only available to that view. But it is definitely NOT a protected context like the one CF offers through CFModule. I wonder, though, how would CFModule be bet... read entire comment from Will B..
Ben Nadel replied to a post Feature Flags Book: Life Without Automated Testing
Comment posted March 27, 2024
@Justin, To be fair, the company that you reference is going to be closed at the end of 2024 😭 Though, this unfortunate end has nothing to do with testing and everything to do with a long line of unfortunate choices. It is what it is—I try not to think too much about what could have been (other tha... read entire comment from Ben Nadel.
Justin Treher replied to a post Feature Flags Book: Life Without Automated Testing
Comment posted March 27, 2024
Ben, This chapter is just wild. However, I realized that Facebook is (was?) well known for not using QA and not writing any unit tests. They mitigated risk by dogfooding via the internal Facebook for work platform and insane metrics that came out of lower environments and alerted every baseline chan... read entire comment from Justin Treher.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 27, 2024
TESTING: A quick test via Reply.... read entire comment from Ben Nadel.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 27, 2024
TESTING: A quick test after patch 13 update.... read entire comment from Ben Nadel.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 26, 2024
TESTING: Some more IoC updates 🎉... read entire comment from Ben Nadel.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 25, 2024
TESTING: One more test for additional IoC updates.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Code Kata: Parsing Time Spans In ColdFusion
Comment posted March 24, 2024
@Chris, Yeah, I didn't dig too much into the Lucee class that is created under the hood. But, when I dumped-out the getMetadata(timespan), it did seem to have methods like .getMinutes() and .getHours(). So, it does seem to expose the original arguments.... read entire comment from Ben Nadel.
Chris G replied to a post Code Kata: Parsing Time Spans In ColdFusion
Comment posted March 24, 2024
This was fun! My first thought was that createTimeSpan(0, 36, 0, 0) would parse to createTimeSpan(1, 12, 0, 0) in both, but in Lucee you could actually get the original input configuration rather than just the logical one.... read entire comment from Chris G.
Ben Nadel replied to a post Code Kata: Alpine.js Calendar Component
Comment posted March 24, 2024
Ahhh, I think I see what's happening. The x-ref directive has a higher priority (than x-data). However, under the hood, it's attaching itself to the closestRoot(), which is looking for the closest element with the x-data attribute. As such, it finds itself, even though the x-data directive hasn't be... read entire comment from Ben Nadel.
Ben Nadel replied to a post Code Kata: Alpine.js Calendar Component
Comment posted March 24, 2024
In my post, I mentioned that I couldn't use x-ref to get a reference to the calendar since the ref was being stored on the calendar itself and not on the app's $refs. However, looking at the Alpine.js source code, the ref directive has a higher priority than the data attribute. As such, I believe th... read entire comment from Ben Nadel.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 23, 2024
Testing comments after some IoC updates.... read entire comment from Ben Nadel.
Ben Nadel replied to a post HTML Templates Can Be Mutated Just Like Any Other DOM
Comment posted March 22, 2024
@Chris, Great question. I assume all that means is that you can't directly overwrite the .content property itself. So, you couldn't, for example, progammatically call document.createFragment() and then try to assign it to a template element. But, I'm just shooting from the hip here 😆... read entire comment from Ben Nadel.
Chris G replied to a post HTML Templates Can Be Mutated Just Like Any Other DOM
Comment posted March 22, 2024
@Ben Nadel, Thanks for that reference (and the link), which I've checked out. But now that just leaves me with another question. It specifically says it's "read-only" and yet, you were able to mutate within. Maybe because it's a sub-element within the contents? IDK, but from the documentation alone.... read entire comment from Chris G.
Ben Nadel replied to a post HTML Templates Can Be Mutated Just Like Any Other DOM
Comment posted March 22, 2024
@Chris, Yeah, this is where I just don't have the good words to explain it properly; which is partly because I don't understand it 100%. The .content property (as described by MDN) says: A read-only DocumentFragment which contains the DOM subtree representing the <template> element's template conten... read entire comment from Ben Nadel.
Ben Nadel replied to a post Reading Element Attributes Collection In JavaScript
Comment posted March 22, 2024
@Julian, I think it's very framework specific. For example, Stimulus.js and Alpine.js both use MutationObserver to do exactly what you're saying. But, Angular.js (and modern Angular) neither use a mutation observer nor a virtual DOM (but rather an in internal collection of "watch" expressions). But,... read entire comment from Ben Nadel.
Julian Knight (TotallyInformation) replied to a post Reading Element Attributes Collection In JavaScript
Comment posted March 22, 2024
While custom attributes can be useful in detail, frameworks generally rely on having a copy of the DOM (virtual dom) and processing the entire thing don't they? Achieving the same effect with a non-framework requires use of the DOM Mutation Observer API. This lets you spot new/changed elements in th... read entire comment from Julian Knight (TotallyInformation).
Chris G replied to a post HTML Templates Can Be Mutated Just Like Any Other DOM
Comment posted March 22, 2024
"depending on how hard you squint" made me laugh 🤣 Weird (and interesting) you have to go through the .content property though. Wonder why 🤔... read entire comment from Chris G.
Ben Nadel replied to a post Caveat When Using Umbrella JS With Template Elements In JavaScript
Comment posted March 22, 2024
On a slightly related note, I just realized that you could mutate the contents of a <template> element the same way you can mutate any other DOM element: https://www.bennadel.com/blog/4619-html-templates-can-be-mutated-just-like-any-other-dom.htm And, any changes you make to a template's .content wi... read entire comment from Ben Nadel.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 20, 2024
TESTING: Very cool.... read entire comment from Ben Nadel.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 20, 2024
TESTING: Just testing some IoC updates (and some edit updates).... read entire comment from Ben Nadel.
Ben Nadel replied to a post Error "Type" Isn't Always A String In Adobe ColdFusion
Comment posted March 20, 2024
It's probably what Einstein was talking about when he referred to "spooky action at a distance." 😉 Anyway, bug filed: CF-4221198.... read entire comment from Ben Nadel.
Adam Cameron replied to a post Error "Type" Isn't Always A String In Adobe ColdFusion
Comment posted March 20, 2024
I can't believe your non-existent tests didn't catch this! Weird... read entire comment from Adam Cameron.
Ben Nadel replied to a post Error "Type" Isn't Always A String In Adobe ColdFusion
Comment posted March 20, 2024
@Adam, "well actually" (adjusts glasses) you were never subscribed in the first place due to a bug in my code (apparently the unit tests that I don't have never caught the logic problem in my update). I don't think I did file a bug - I got distracted. Will do so now and post ticket.... read entire comment from Ben Nadel.
Adam Cameron replied to a post Error "Type" Isn't Always A String In Adobe ColdFusion
Comment posted March 20, 2024
You just re-subscribed me to this article because reasons. So... did you raise the ticket with Adobe?... read entire comment from Adam Cameron.
Ben Nadel replied to a post The RegEx Of Everyday Things
Comment posted March 20, 2024
@Chris, sorry to hear about your situation. It must be hard. I know that my job is ending in Dec 2024; and, I'm very anxious about what comes after that. But, in the face of the unknown, you've certainly been one of the constants. It is seen and appreciated! 🙌 @Dmitriy, yeah, sorry about that. I th... read entire comment from Ben Nadel.
Dmitriy Goltseker replied to a post The RegEx Of Everyday Things
Comment posted March 20, 2024
Man, it's been ages. I forgot about this thread... read entire comment from Dmitriy Goltseker.
Ben Nadel replied to a post Feature Flags Book: I Eat, I Sleep, I Feature Flag
Comment posted March 19, 2024
@Mike, Thank you for the kind words! I'm so thrilled that you enjoyed it. If you ever have any questions about it, never hesitate to ask. And keep on loving your code!... read entire comment from Ben Nadel.
Mike Savoy replied to a post Feature Flags Book: I Eat, I Sleep, I Feature Flag
Comment posted March 19, 2024
Hi Ben, Today i bought your book Thanks for writing such nice book. I did really like to read it and your book make me think more deeply about what and why I love to do coding )) Great Job !! Sorry for my bad english Mike from Canada... read entire comment from Mike Savoy.
Chris G replied to a post The RegEx Of Everyday Things
Comment posted March 19, 2024
@Ben Nadel, I've recently been laid off (as of last Friday), so no more company sponsored copilot access for me unfortunately...but I 💯 suggest giving it a try. It gets in the way as much as it's helpful, but still... pretty good stuff. It feels good to be noticed (re my blog participation). Yours ... read entire comment from Chris G.
Ben Nadel replied to a post The RegEx Of Everyday Things
Comment posted March 19, 2024
@Chris, my pleasure. And, thank you so much -- you probably participate more on this blog than anyone else; and, knowing that you weren't getting comment emails - it's all the more impressive (and appreciated). I really need to try out Copilot one of these days. I'm so lazy about it.... read entire comment from Ben Nadel.
Chris G replied to a post The RegEx Of Everyday Things
Comment posted March 19, 2024
Thanks for resubscribing me! I had missed the most recent updates. Now days, I reach for copilot to take a first stab at complex REGEX. It's done a pretty good job so far and is also an education to interpret the results. It's lazy, but I'm ok with that... Especially when it's a one-off need.... read entire comment from Chris G.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 19, 2024
TESTING: One more comment change test to "vendor" stuff.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 18, 2024
Woot! 🎉 🎊 💥 💯 Thank you for confirming. I can't believe this has been broken since like last February (2023).... read entire comment from Ben Nadel.
Stuart replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 18, 2024
Got it 😊... read entire comment from Stuart.
Ben Nadel replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 18, 2024
@Stuart, Yeaahhhh, sorry about that. Over the weekend I realized that I actually broke comment emails for the last year 😱 😱 😱 Very embarrassing. But, I'm hoping that you get this email notification!... read entire comment from Ben Nadel.
Stuart replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 18, 2024
@Ben Thanks so much for the quick reply, and sorry it took so long for mine (not sure if I should have, but I didn't get an email saying you replied)! Yeah, this is the first time I've come across this buffer issue, and I had the same thought as to why this should work when the amount of data should... read entire comment from Stuart.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 18, 2024
TESTING: One more test for comment content update.... read entire comment from Ben Nadel.
Other Ben replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: I just added the One-Click unsubscribe SMTP header. Seeing if it shows up.... read entire comment from Other Ben.
Other Ben replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: Yes, I did not get previous notification. But, by leaving this comment, I will be automatically re-subscribed to the post.... read entire comment from Other Ben.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: Ok, Other Me got the notification. But, has now unsubscribed. They should not receive this notification.... read entire comment from Ben Nadel.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: One more test from Me to Other Me.... read entire comment from Ben Nadel.
Other Ben replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: As other me, I will also get new notifications (until I unsubscribe).... read entire comment from Other Ben.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: As ME, I will automatically get all new notifications.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 17, 2024
My pleasure! The <template-root> thing is frustrating. And, it uses display:contents (to remove it from the document box model), which does have some issues. I'm not too familiar with the scope of the issues, but I believe they mostly relate to ARIA / accessibility stuff. If you look at CanIUse.com,... read entire comment from Ben Nadel.
Angelez replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 16, 2024
Hey, I also wanted thank you for writing this. I'm not a great "front ender", your template-root trick is awesome. I was using divs everywhere!... read entire comment from Angelez.
Ben Nadel replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 16, 2024
@Angelez, Exactly - I don't love the flashing. But, I'm OK with the flashing if it means simpler code :)... read entire comment from Ben Nadel.
Angelez replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 15, 2024
I honestly like your solution more than mine. Yours is simple and when you're nuking the whole tree, who wouldn't expect to have some flashing?... read entire comment from Angelez.