Ben Nadel
Member since Dec 11, 2008
- Profile: /members/1851-ben-nadel.htm
- URL: http://www.bennadel.com
- Twitter: @bennadel
- FaceBook: http://www.facebook.com/bennadel
- Comments: 14,669
Recent Blog Comments By Ben Nadel
-
Custom CFParam Tag That Exposes Error Information In Lucee CFML 5.3.7.48
Posted on Mar 1, 2021 at 9:48 AM
@Peter, That's awesome to hear that 1) this is on the right track and 2) it seems to work in a real world scenario. Thanks for the feedback!... read more »
-
Divergent CALLER Scope Assignment Behavior In Adobe ColdFusion And Lucee CFML 5.3.7.48
Posted on Feb 28, 2021 at 6:50 AM
@All, This morning, I already made use of the caller.#key# concept in a code kata in which I create a cf_specify ColdFusion custom tag that wraps the native cfparam tag and exposes more error information: https://www.bennadel.com/blog/3996-custom-cfparam-tag-that-exposes-error-in... read more »
-
Divergent CALLER Scope Assignment Behavior In Adobe ColdFusion And Lucee CFML 5.3.7.48
Posted on Feb 26, 2021 at 8:19 AM
Over on Twitter, Dan G. Switzer, II mentioned that this would be a good use-case for the setVariable() function in ColdFusion. As in: <cfset target = "url.foo" /> <cfset setVariable( "caller.#target#", "bar" ) /> I haven't tested this, but it ... read more »
-
Divergent CALLER Scope Assignment Behavior In Adobe ColdFusion And Lucee CFML 5.3.7.48
Posted on Feb 26, 2021 at 6:39 AM
@All, Small update - possible work-around for consistency. If you use the <cfparam> tag to assign values into the caller scope, it works consistently across ACF and Lucee. Meaning, if you have this in a ColdFusion custom tag: <cfset target = "url.foo" /> <cfse... read more »
-
Divergent CALLER Scope Assignment Behavior In Adobe ColdFusion And Lucee CFML 5.3.7.48
Posted on Feb 26, 2021 at 5:39 AM
@All, I filed an incompatibility ticket with Lucee: https://luceeserver.atlassian.net/browse/LDEV-3309... read more »
-
Case Study: Removing Implicit Variable Access At Scale In Lucee CFML 5.3.7.47
Posted on Feb 25, 2021 at 5:41 AM
@All, When I moved development of the DSL out of CommandBox and into Docker for Mac (for my InVision hackathon project), I ran into another performance issue : https://www.bennadel.com/blog/3994-coldfusion-custom-tag-performance-differences-between-cfmodule-and-cfimport-in-lucee-cfm... read more »
-
Using ColdFusion Custom Tags To Create An HTML Email DSL In Lucee CFML 5.3.7.47
Posted on Feb 25, 2021 at 5:38 AM
@All, For my InVision hackathon project, I am trying to apply this DSL to the transactional emails as work. And, when I do work-work, I do it inside Docker for Mac . Moving into this new context surfaced a performance issue that I had not seen inside CommandBox: https://www.bennadel.c... read more »
-
Working Code Podcast - Episode 009: Testing
Posted on Feb 24, 2021 at 6:19 AM
@All, We just released Episode 11 of the show: https://www.bennadel.com/blog/3993-working-code-podcast-episode-011-listener-questions.htm In Ep11, we discuss - among other things - Adam's post a bit more in-depth.... read more »
-
Using ColdFusion Custom Tags To Create An HTML Email DSL In Lucee CFML 5.3.7.47, Part VII
Posted on Feb 23, 2021 at 6:53 AM
@All, These techniques work well when there's a thin layer between the calling context and the abstraction. However, if data needs to be defined at a high level and then exposed at a much lower level, getting the data to the right place by using tag attributes can be unnecessarily verbos... read more »
-
Using ColdFusion Custom Tags To Create An HTML Email DSL In Lucee CFML 5.3.7.47
Posted on Feb 23, 2021 at 6:50 AM
@All, As I'm starting to apply this DSL concept to real world scenarios, I'm realizing that I need a better mechanism for making data available deep into the custom tag "DOM". For this, I'm borrowing the concept of Providers from Angular: https://www.bennadel.com/blog/3992-... read more »
-
Using ColdFusion Custom Tags To Create An HTML Email DSL In Lucee CFML 5.3.7.47
Posted on Feb 23, 2021 at 5:45 AM
@All, A small follow-up post this morning about HTML entities - I wanted to see if it was safe to use them in an HTML email: https://www.bennadel.com/blog/3991-using-coldfusion-custom-tags-to-create-an-html-email-dsl-in-lucee-cfml-5-3-7-47-part-x.htm They are mostly safe . But, the... read more »
-
Replacing Blank Lines Using Multiline Mode RegEx Patterns In POSIX And Java In Lucee CFML 5.3.7.47
Posted on Feb 22, 2021 at 9:04 AM
@Charles, When it comes to RegEx flags, you just have to be careful that they aren't universally supported. So, what works in the Java RegEx engine may not work in the POSIX RegEx engine. Always be sure to test!... read more »
-
Replacing Blank Lines Using Multiline Mode RegEx Patterns In POSIX And Java In Lucee CFML 5.3.7.47
Posted on Feb 22, 2021 at 7:45 AM
@Charles, To be clear the (?) pattern is used to turn pattern flags on and off. So, in this case (?mx) is actually turning on two different flags : m - Multiline matching mode. x - Verbose / comment mode. You can also turn on: i - Case insensiti... read more »
-
Working Code Podcast - Episode 009: Testing
Posted on Feb 22, 2021 at 4:31 AM
@Andreas, Thank you for the feedback on the show - I'm / we're super happy that you're enjoying it. And, your perception on what we're trying to do is spot on: just casual conversations between people who love to program! +1 on Adam Cameron posting more about CFML :D The man is a machine w... read more »
-
Finding All Unique Paths In A Tree Structure In Lucee CFML 5.3.7.47
Posted on Feb 22, 2021 at 4:29 AM
@Akuma, Thank you :) I will keep up the good work!... read more »
-
Replacing Blank Lines Using Multiline Mode RegEx Patterns In POSIX And Java In Lucee CFML 5.3.7.47
Posted on Feb 22, 2021 at 4:29 AM
@Zac, Nice nice nice! I just love Lucee :)... read more »
-
Replacing Blank Lines Using Multiline Mode RegEx Patterns In POSIX And Java In Lucee CFML 5.3.7.47
Posted on Feb 22, 2021 at 4:28 AM
@Charles, That's not a bad idea. In my particular case, I wanted to keep the line-breaks in place because I was outputting HTML source code - and, I wanted to keep the "View Source" a bit more readable. But, yeah, I like your thinking there.... read more »
-
Finding All Unique Paths In A Tree Structure In Lucee CFML 5.3.7.47
Posted on Feb 20, 2021 at 8:44 AM
@Akuma, Sir, you don't even know how much your comment means to me :D I am so thrilled to hear that Lucee CFML is easy to ready. I totally agree; but, I've been doing it for so long, I lose sight of what is real and what is not. So, to hear you say that, it is heart-warming. Arrays startin... read more »
-
Using ColdFusion Custom Tags To Create An HTML Email DSL In Lucee CFML 5.3.7.47
Posted on Feb 19, 2021 at 6:51 AM
@All, This morning I took a stab at adding <pre> and <code> wrappers: https://www.bennadel.com/blog/3988-using-coldfusion-custom-tags-to-create-an-html-email-dsl-in-lucee-cfml-5-3-7-47-part-ix.htm The pre tag poses some interesting challenges because it defers contro... read more »
-
Using ColdFusion Custom Tags To Create An HTML Email DSL In Lucee CFML 5.3.7.47, Part VII
Posted on Feb 16, 2021 at 8:43 AM
@Charles, Ha, being excited about Windows mail rendering ... you're in good company ;)... read more »