Ben Nadel
Member since Dec 11, 2008
- Profile: /members/1-ben-nadel.htm
- URL: https://www.bennadel.com
- Twitter: @bennadel
- FaceBook: http://www.facebook.com/bennadel
- Comments: 15,377
Recent Blog Comments By Ben Nadel
-
Dynamically Instrumenting ColdFusion Component Methods With GetTickCount() To Locate Performance Bottlenecks
Posted on Jan 16, 2023 at 8:34 PM
@Paolo, It looks like Lucee CFML gives the template times and the variable access counts, but not the execution times. I'll see if I can get Adobe ColdFusion's debugging enabled.... read more »
-
Dynamically Instrumenting ColdFusion Component Methods With GetTickCount() To Locate Performance Bottlenecks
Posted on Jan 16, 2023 at 8:23 PM
@Paolo, Because I literally 100% forgot that ColdFusion had any debugging capabilities ๐คฃ ๐คฃ ๐คฃ Let me see if I can get that turned on.... read more »
-
Why I've Been Merging Microservices Back Into The Monolith At InVision
Posted on Jan 16, 2023 at 2:37 PM
@Pravin, It's such a strange time. I see a lot of people walking back the idea of microservices. Even most of the big advocates are pushing that you should stick with a "modular monolith" until you really really need microservices. But, at the same time, there's a cohort of... read more »
-
CUID2 For ColdFusion / CFML
Posted on Jan 16, 2023 at 2:32 PM
I've been trying to look at the low-level performance of the Cuid2.cfc - using some reflection , I'm dynamically instrumenting the methods to see how long they execute during the generation of 1M CUID tokens: https://www.bennadel.com/blog/4390-dynamically-instrumenting-coldfusion-comp... read more »
-
Overriding Form Submission Properties Using Button Attributes In Native HTML
Posted on Jan 16, 2023 at 10:36 AM
@Chris, Dude, I often feel the same way! This is especially true for methods on the DOM nodes - I feel like there's so many I never heard about. Every now and then, I'll scroll through You Might Not Need jQuery , which is a sobering reminder that there are methods I never user and never... read more »
-
CUID2 For ColdFusion / CFML
Posted on Jan 14, 2023 at 8:08 PM
Here's an article that Eric Elliott wrote about his new Cuid2 approach (and why his previous approach was insufficient from a security standpoint): Identity Crisis: How Modern Applications Generate Unique Ids . It goes into a lot of depth (though much of what is there is also on the Cuid2... read more »
-
Working Code Podcast - Episode 109: Best Of 2022
Posted on Jan 14, 2023 at 7:40 PM
@Serhii, Thank you, my friend! Glad you are enjoying it ๐... read more »
-
Testing Performance Overhead Of Creating Java Classes In Lucee CFML
Posted on Jan 13, 2023 at 5:29 PM
After I posted this, several people over on Twitter (Brad Wood, Michael Born, James Moberg) pointed out that if you are loading Java classes from a 3rd-party JAR file , then calling createObject() can have a more significant impact. Classloading from OSGI bundles is 27,000 times... read more »
-
Code Kata: Flattening An Array In Lucee CFML
Posted on Jan 13, 2023 at 2:26 PM
@Adam, This might sound silly, but I've been using member methods for so long now, I literally forgot that the built-in function, arrayReduce() , even existed ๐ Speaking to your point about doing array-reduction instead of struct-reduction. To that point, I also forgot that ColdFusio... read more »
-
Code Kata: Flattening An Array In Lucee CFML
Posted on Jan 8, 2023 at 11:51 AM
As another fast-follow, I wanted to look at recursively flattening a deeply nested array: https://www.bennadel.com/blog/4384-code-kata-recursively-flattening-a-deep-array-in-lucee-cfml.htm In the recursive version, I'm passing in a values argument instead of using a variadic, which ... read more »
-
Iterating Over Function Arguments Using CFLoop In Lucee CFML
Posted on Jan 7, 2023 at 4:14 PM
@Will, I go back and forth on this idea of differentiating function signatures. I think there are definitely times when it would be great. But, then, I'll go and look through the Lucee CFML code (written in Java) and there's like 8 different versions of the call() method all with diffe... read more »
-
Code Kata: Flattening An Array In Lucee CFML
Posted on Jan 7, 2023 at 2:58 PM
As a quick follow-up post, I wanted to take a look at iterating over the arguments scope as either an Array or a Struct via CFLoop : https://www.bennadel.com/blog/4383-iterating-over-function-arguments-using-cfloop-in-lucee-cfml.htm The CFLoop tag and the arguments scope are both... read more »
-
RequestTimeout Setting Affects CFThread Execution In Lucee CFML 5.3.6.61
Posted on Jan 7, 2023 at 10:59 AM
I finally went back and fixed the code / writing in this post (removed the createTimeSpan() call in the CFSetting tag that was incorrect).... read more »
-
People Don't Mind Being Used As Long As They Aren't Forgotten
Posted on Jan 5, 2023 at 8:00 PM
@Lu-Lu, Thanks, sweet child, you're the best! ๐ฅฐ... read more »
-
In Life, Things Suffer More From Disuse Than From Overuse
Posted on Jan 3, 2023 at 3:30 PM
@Chris, Thanks! I hope some cool stuff comes of it. I've just been feeling to "stale" lately. Especially with all the podcasts that I listen to doing "year in review" kind of shows and they are all talking about lots of stuff that I don't have any experience with. Not t... read more »
-
In Life, Things Suffer More From Disuse Than From Overuse
Posted on Jan 3, 2023 at 1:43 PM
@JC, He was a bit of a crazy person ๐คฃ But touched a lot of lives. Let's make 2023 a good one!... read more »
-
Using LATERAL Derived Tables To Gather Row-Specific Aggregations In MySQL 8.0.14
Posted on Dec 31, 2022 at 9:24 PM
@All, So, in the past, when I've performed a LATERAL join, I've always done it as an INNER JOIN , as in: INNER JOIN LATERAL According to the MySQL docs, the LATERAL join should support LEFT OUTER as well; but, when I went to use it, it would throw an error telling me that th... read more »
-
Showing An Error Message In The OnError() Method In Application.cfc In CFML
Posted on Dec 30, 2022 at 7:11 PM
This is kind of beyond the scope of this article, but it might be worth mentioning that an error that occurs in the CFThread tag does not get caught by the onError() handler in the Application.cfc . According to Zac Spitzer, thread errors get logged to the thread.log file; but, th... read more »
-
Showing An Error Message In The OnError() Method In Application.cfc In CFML
Posted on Dec 30, 2022 at 6:39 PM
@Chris, 1000% I've been doing this a long time and I still don't have an approach that I truly love. Every time I start something new, I feel like I'm continuing to poke and rethink the way error handling happens. Seems so odd that this is so challenging ๐ฐ not sure if that's just intrinsi... read more »
-
Working Code Podcast - Episode 107: Through The Wormhole
Posted on Dec 29, 2022 at 10:39 AM
@Danilo, I've seen that (similar) hotdog demo before - it's pretty mind-blowing at how fast it works! ๐ฑ Something like that would make me feel more comfortable for sure! But, seems like I'd still want to baby-step towards a big saw like that. Re: Spry, I'm pretty sure Ray Camden went thro... read more »