bennadel.com bennadel.com

The Power Of Cascading Tag Attributes In Lucee CFML 5.3.7.43

The other week, when I was looking at using Postmark Tags to group related transactional emails in Lucee CFML, I used a ColdFusion Struct to apply common CFMail tag attributes to all of my outbound emails. This attributeCollection feature has been around in ColdFusion since forever. However, in more modern times, ColdFusion has also allowed us to define any tag's base attributes right within the Application.cfc file. Cascading tag...

bennadel.com bennadel.com

Using Closures To Encapsulate FileReadLine() Operations In Lucee CFML 5.3.6.61

In Episode 75 of the Modernize-or-Die podcast, Brad Wood talked about the fact that the fileReadLine() function in Lucee CFML was thread-safe; but, that you must remember to call fileClose() once you are done otherwise the files can remain locked. These days, whenever I hear "you have to remember" in a programming context, I think to myself, let's wrap that in a ColdFusion Closure so that I don't have to remember anything....