Brad Wood
Member since Aug 16, 2019
- Profile: /members/14012-brad-wood.htm
- URL: http://www.codersrevolution.com
- Comments: 15
Recent Blog Comments By Brad Wood
-
Reflecting On Natural Language Operators In ColdFusion
Posted on Nov 30, 2023 at 12:22 AM
Would adding "string".startsWith() to the CFML spec itself be a problem? Sadly yes, because a lot of code and even frameworks today rely on that calling the Java method which is case sensitive, so adding a CFML version would be a breaking change. This is one of the issues w... read more »
-
Reflecting On Natural Language Operators In ColdFusion
Posted on Nov 29, 2023 at 4:15 PM
Great, now ChatGPT is going to parse your blog and it won't be long before GitHub CoPilot is suggesting your fake operators to everyone! 😁 I had the same mental association with GTE , LT , etc as the "second-class" operators I had to use in tags back in the day due to parsing ... read more »
-
SQL "Join Tables" Are Just "Entity Tables" With Hard-To-Name Concepts
Posted on May 19, 2022 at 2:08 PM
I always called them "xref" or "cross" tables (naming is hard, lol) but my rule of thumb was they didn't deserve to be a separate entity unless they contained at least one column that wasn't just the two foreign keys being associated. (excepting "standard" colu... read more »
-
ArraySlice() Has An Exponential Performance Overhead In Lucee CFML 5.3.8.201
Posted on Apr 26, 2022 at 6:28 PM
Lol, yep, that's exactly what you'd do. Now, the million dollar question is whether copying the items over to a new array undoes the performance gain of using a sublist in the first place!... read more »
-
ArraySlice() Has An Exponential Performance Overhead In Lucee CFML 5.3.8.201
Posted on Apr 26, 2022 at 6:20 PM
Pothys rightly pointed out in the Lucee ticket tracker that an ArrayList$SubList instance is not a copy of the original items, but is just a wrapper that points to the original array. As such, any changes made to the original array or the sublist will be reflected in both places . ... read more »
-
ArraySlice() Has An Exponential Performance Overhead In Lucee CFML 5.3.8.201
Posted on Apr 22, 2022 at 3:54 PM
Ben, is there a reason you didn't just use the .subList() method of Java List s which is what powers a CFML array. https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#subList(int,%20int) It's WAY faster on Adobe and Lucee, and honestly it's what they should both be u... read more »
-
Fundamental Differences In Elvis Operator Between Adobe ColdFusion And Lucee CFML
Posted on Mar 21, 2022 at 5:33 PM
that you'll only ever have Null or Struct Correct, if you know for sure the variable would be a complex value (struct, array, object, etc) then the behavior could be depended on. It's for simple value where the dragons lie. Unfortunately, given the complete lack of precedence and widesprea... read more »
-
Fundamental Differences In Elvis Operator Between Adobe ColdFusion And Lucee CFML
Posted on Mar 17, 2022 at 3:54 PM
Yep, I love Elvis and use it all the time in Lucee, but in Adobe it's a mash up abomination that has rendered it unusable. The current behavior leaves it completely unreliable because you don't know what it's going to do! Imagine a simple method in a library such as function validateConfi... read more »
-
Parsing HTML Natively With htmlParse() In Lucee 5.3.2.77
Posted on Mar 16, 2022 at 5:59 PM
Whoa, look at this weird behavior I found while trying to re-parse the cleaned XML. It appears that when you use the XMLParse() BIF in Lucee to parse an XML document that has a root element of html and a nested element of head , Lucee will ADD an invalid meta tag (not self-closing) t... read more »
-
Parsing HTML Natively With htmlParse() In Lucee 5.3.2.77
Posted on Mar 16, 2022 at 5:17 PM
Excellent information. I just ran into this myself thinking, "Hey, I'll use HTMLParse() and XMLSearch() to do some quick HTML work", but then I was surprised when my xpaths didn't return any results. This would be a nice feature in Lucee to have an option to remove the namespaces ... read more »
-
Moving MySQL To A Per-Application Datasource In ColdFusion 2021
Posted on Mar 4, 2022 at 7:03 PM
I now we're a little off topic now, but I promise you if you come to ITB you won't be disappointed. Heck, we'd probably even let you give a talk on something 😉... read more »
-
Moving MySQL To A Per-Application Datasource In ColdFusion 2021
Posted on Mar 4, 2022 at 6:51 PM
I don't think it clicked that an ENV is an ENV is an ENV - it doesn't matter where it comes from Yep, that's the beauty of them. So when you use a placeholder like ${foo} in a JSON file, it can actually come from ANY of these places An actual 'real' env variable loaded into your ... read more »
-
Moving MySQL To A Per-Application Datasource In ColdFusion 2021
Posted on Mar 4, 2022 at 5:53 PM
Your comment above stole the first thing I was going to point out 😃 Lucee makes this MUCH simpler by giving you an export feature. You can export your entire Application settings from the Lucee admin UI or you can just edit a single datasource in the Lucee admin, scroll to the bottom, and ... read more »
-
Goodbye GROUP_CONCAT(), Hello JSON_ARRAYAGG() And JSON_OBJECTAGG() In MySQL 5.7.32
Posted on Mar 2, 2022 at 7:20 PM
This gave me an idea for a new QoQ feature in Lucee. It would be pretty easy to make Lucee's native QoQ do this sort of thing. https://luceeserver.atlassian.net/browse/LDEV-3895... read more »
-
Installing User Defined Functions (UDF) As An Extension For Built-In Functions (BIF) In Lucee 5.3.2.77
Posted on Aug 16, 2019 at 10:45 AM
Nice experiment. Here's a related Lucee ticket I put in that suggested better (or at least different) truthy/false evaluation in CFML: https://luceeserver.atlassian.net/browse/LDEV-449 Your next post needs to be publishing your extension to ForgeBox! It's really just a couple more step... read more »