Charles Robertson
Member since Oct 5, 2014
- Profile: /members/12331-charles-robertson.htm
- Comments: 462
Recent Blog Comments By Charles Robertson
-
Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Posted on Feb 23, 2025 at 4:11 PM
@Ben Nadel, Yes. Functional React seems like a reaction to me. It's like trying to place a square peg into a round hole. Class component based React made far more sense, to me, and this is borne out by the amount of hooks, the core team has had to build, to patch all the problems t... read more »
-
Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Posted on Feb 21, 2025 at 9:48 PM
@Ben Nadel, Hmmmm. Now you've got me. 🤩 I mean I use destructuring mainly, in JavaScript, to extract key/value pairs into individual variables. This kind of thing was used in React , a lot when using hooks , like: import { useState } from 'react' function Example() { // Declare... read more »
-
Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Posted on Feb 21, 2025 at 11:36 AM
@Ben Nadel, This is fabulous information. 🙂 I never realised that Coldfusion had destructuring , either. I actually really like destructuring , which I use a lot, when writing JavaScript . It's a little surprising that Lucee doesn't contain these kinds of constructs, considering L... read more »
-
Rest Operator Doesn't Work With Only One Argument In Adobe ColdFusion
Posted on Feb 20, 2025 at 11:04 PM
@BenNadel Hey Ben This is very interesting. I actually never knew that Coldfusion had a rest operator. Does Lucee have this, as well? And why would you use this, over the arguments struct ? Maybe, if you want to guarantee the order of the arguments , which an array will do and a... read more »
-
Using The XOR Operator To Assert Connascence Of Existence In ColdFusion
Posted on Feb 11, 2025 at 2:06 PM
@Ben Nadel So what happens if you have more than two values to test like ( 0 XOR -1 XOR 1 ) Does it just test: ( 0 XOR -1) == true And then: ( -1 XOR 1 ) == false But which bool value takes precedence? The truthy or falsey one? As far as I know, the OR operator, wi... read more »
-
Using The XOR Operator To Assert Connascence Of Existence In ColdFusion
Posted on Feb 11, 2025 at 12:47 PM
@Ben Nadel, So: ( 0 XOR -1 ) == true As, I understand the only number that is falsey is zero?... read more »
-
Using The XOR Operator To Assert Connascence Of Existence In ColdFusion
Posted on Feb 10, 2025 at 10:53 PM
@Ben Nadel I have also never used XOR , but I actually find it very easy to understand. So, am I right in thinking that if one part of the statement is TRUE and the other part is FALSE, then the whole statement is TRUE? I really hope my understanding is correct, otherwise I will look like ... read more »
-
Collocating My .gitignore Configuration Files With The Omitted Files
Posted on Jan 13, 2025 at 11:15 AM
@Ben Nadel, That makes me feel a lot better 🤩... read more »
-
Collocating My .gitignore Configuration Files With The Omitted Files
Posted on Jan 13, 2025 at 10:52 AM
@Ben Nadel, Phew. I didn't make a fool of myself there. 🤩 Glad my suggestion is actually a reality, for some businesses. Yes. I agree we can't always have exact replicas of prod on our local machines. The last company I worked for, used pure Linux in production and I was using Windows wi... read more »
-
Collocating My .gitignore Configuration Files With The Omitted Files
Posted on Jan 13, 2025 at 10:11 AM
So, to begin with, I was thinking that I'm not too happy about having an empty folder called /scribble on production , but then I started to warm to the idea. This could be a good place to add a small bit of test code, for bugs that only crop up in production . Maybe stuff you can't test... read more »
-
Collocating My .gitignore Configuration Files With The Omitted Files
Posted on Jan 13, 2025 at 9:14 AM
Hi Ben I just find it mad that there isn't a pattern, that you can place in the root gitignore , which ignores the files in a folder, but not the folder, itself? But there maybe a pattern that does this, using git/info/exclude I think the reason maybe because you can't commit empty fo... read more »
-
Considering The Aesthetics And Ergonomics Of Post-Back URLs In ColdFusion
Posted on Dec 27, 2024 at 9:26 PM
@Angel Gonzalez, I am kind of talking about cflocation , using the PRG pattern? I think Coldbox & FW1 encourage the use of redirect() at the end of controller methods , which emulates PRG. I guess, if this is used at the end of a call chain, then hopefully there shouldn't be a... read more »
-
Considering The Aesthetics And Ergonomics Of Post-Back URLs In ColdFusion
Posted on Dec 27, 2024 at 4:46 PM
Hi Ben I think this is the approach that Coldbox [controller rc scope] & FW1 [controller rc scope]. In Coldbox, the prc scope stands for private request context scope, which refers to variables created inside a controller method, like the local scope. The rc scope is a pas... read more »
-
Ask Ben: Sorting Quasi-Numeric Values Like 4K And 3M In ColdFusion
Posted on Dec 6, 2024 at 12:50 AM
I love Coldfusion more everyday! The simplicity and power is demonstrated perfectly by this little demo. Thanks for this, Ben. 🙏... read more »
-
High Performance SQLite Video Course By Aaron Francis
Posted on Oct 30, 2024 at 7:35 AM
Hi Ben I used to use SQLite as an objective-c developer, when I was building iOS apps for about 10 years. Although I liked the super portability of the DB, I found that its ability to handle data types, pretty limiting. As I remember, it only had about 3 different data types? But maybe t... read more »
-
Running Memory Leak Detection After Every ColdFusion Request
Posted on Oct 21, 2024 at 7:36 PM
@Harry Klein, Thanks for this information. Interesting. 🤔... read more »
-
Running Memory Leak Detection After Every ColdFusion Request
Posted on Oct 21, 2024 at 12:25 PM
@Ben Nadel, Sorry, I am a little lost, here 😬 Where does: local.implicitAccess Come from? And does this work with ACF? I had a look for an equivalent of: /opt/lucee/tomcat/lucee-server/context/context/admin/debug/Contens.cfc ACF2023: \\wsl.localhost\Debian\opt\ColdFusio... read more »
-
Running Memory Leak Detection After Every ColdFusion Request
Posted on Oct 18, 2024 at 9:45 PM
I have been looking at the fw1 framework folder with all the core components. It's really impressive stuff. I then came across this interesting method, in framework/beanProxy : https://github.com/framework-one/fw1/blob/develop/framework/beanProxy.cfc getTargetBeanMetadata() ... read more »
-
Running Memory Leak Detection After Every ColdFusion Request
Posted on Oct 18, 2024 at 10:05 AM
@Ben Nadel, With FW/1, if there's no setter function, I believe that the FW/1 will just skip the injection for a given property Thanks for this tip. 💪 I know that FW1 is being updated again: https://github.com/framework-one/fw1 By Mr Springle. I may see if I can add thi... read more »
-
Running Memory Leak Detection After Every ColdFusion Request
Posted on Oct 17, 2024 at 9:08 PM
@Ben Nadel, The one thing I do remember is that in FW1 , controllers/services are singletons , so are probably accessible via the application scope. I presume that means they are cached, in some way? I think you can do something like: userController = application[ variables.frame... read more »