Julian Halliwell
Member since Jun 13, 2019
- Profile: /members/13977-julian-halliwell.htm
- URL: https://blog.simplicityweb.co.uk/
- Comments: 10
Recent Blog Comments By Julian Halliwell
-
Using Relative File Paths To Configure Application Mappings In Lucee CFML 5.3.8.201
Posted on Sep 3, 2021 at 4:24 PM
Hi Ben, I love the idea of simplifying mapping definitions in this way, but I'm not sure it's 100% reliable. I have a use case in which it seems not to work. See my follow-up post here: https://blog.simplicityweb.co.uk/127/defining-application-mappings-using-relative-paths-in-lucee... read more »
-
Confusion Over this.mappings And expandPath() Not Working In Lucee CFML 5.3.3.62
Posted on Oct 15, 2020 at 11:17 AM
I ran into this recently, Ben, and discovered a workaround to force the mapping physical paths to be re-evaluated without a restart. https://blog.simplicityweb.co.uk/123/forcing-lucee-to-re-check-the-physical-paths-of-application-defined-mappings-without-a-restart I've also raised a ticke... read more »
-
Trying To Find My Preferred Format For Method Annotations In Lucee 5.3.2.77
Posted on Sep 12, 2019 at 10:47 AM
In the vast majority of scenarios, I only have one annotation, output In cfscript, functions never output anything unless you explicitly call WriteOutput() or Echo() . So unless I'm missing something, this annotation is completely unnecessary. https://stackoverflow.com/questions/9780... read more »
-
Exploring Linked / Ordered Structs In Lucee 5.3.2.77
Posted on Jul 29, 2019 at 10:15 AM
I like to use ordered structs when returning API data. Sure a programmatic consumer won't care about the order, but for developers familiarizing themselves with the returned data by looking at the json I think it helps to present it in a logical way, e.g. having the id value first.... read more »
-
Understanding Struct Key-Casing Using SerializeJson() In Lucee 5.3.2.77
Posted on Jul 27, 2019 at 7:59 AM
@Ben, @Charles. Yes [ key: value ] is the way to go for maintaining key order.... read more »
-
Performance Case Study: Parallel Data Access Using Parallel Struct Iteration In Lucee 5.2.9.40
Posted on Jul 25, 2019 at 12:46 PM
Ben, thanks for setting this all out and in particular for mentioning Gert's presentation which I'd missed. It's helped crystallize my understanding: https://blog.simplicityweb.co.uk/117/using-lucees-simple-parallel-processing-appropriately... read more »
-
Dynamically Loading Java Classes From JAR Files Using CreateObject() In Lucee 5.3.2.77
Posted on Jul 8, 2019 at 5:27 PM
@steven Thanks for clarifying the OSGi aspect. Obviously having to create a bundle to achieve the isolation means the process isn't dynamic - although I wonder if it could be made so (my java knowledge is very limited). Somehow, thanks to the brilliance of Mark Mandel, JavaLoader is able... read more »
-
Dynamically Loading Java Classes From JAR Files Using CreateObject() In Lucee 5.3.2.77
Posted on Jul 8, 2019 at 11:02 AM
Nice example, Ben. I really like having this option in Lucee 5, but unfortunately "dynamic" only applies to loading jars, not updating them (i.e. reloading them with a different version). Also, you may get version clashes if you try to load a library that's already in the Lucee c... read more »
-
Keeping Prepared Statements Consistent Even With Dynamic Parameterized Queries In MySQL And ColdFusion
Posted on Jun 14, 2019 at 9:45 AM
You're right, Ben, I should have tested before posting. You can indeed use 0 as a date default but I think I'd prefer using an Elvis to an argument default: id = <cfqueryparam value="#id?:0#" sqltype="cf_sql_date" null="#isNull( id )#" /> Tested this ... read more »
-
Keeping Prepared Statements Consistent Even With Dynamic Parameterized Queries In MySQL And ColdFusion
Posted on Jun 13, 2019 at 2:45 AM
This is great, Ben. Like you I've still got a lot of query code in tags for the same reason. I think you could simplify the conditionals by replacing: <cfif isNull( id )> id = <cfqueryparam null="true" /> <cfelse> id = <cfqueryparam value="#id#" sq... read more »