Steve Bryant
Member since Dec 11, 2008
- Profile: /members/1516-steve-bryant.htm
- URL: http://bryantwebconsulting.com
- Comments: 59
Recent Blog Comments By Steve Bryant
-
Forking Hotwire Turbo To Make It ColdFusion Compatible
Posted on Apr 15, 2024 at 1:14 PM
@Ben Nadel, Yeah, I love using hx- attributes with regular ones for progressive enhancement. I use hx-boost pretty rarely, really, and use that approach the rest of the time. I really like the flexibility of that over the "boost" approach that Turbo seems to take. Like you for ht... read more »
-
Forking Hotwire Turbo To Make It ColdFusion Compatible
Posted on Apr 12, 2024 at 7:13 PM
That's funny. I keep hearing people say that Turbo handles progressive enhancement better than htmx, but I like the way htmx handles it. I strongly suspect that means that I just don't appreciate something basic about Turbo. In htmx, I can use a <form action="page.cfm"> o... read more »
-
Various Ways To Get ColdFusion Data Into An Alpine.js Component
Posted on Mar 13, 2024 at 3:51 PM
@Ben, I definitely hear you about how verbose Stimulus.js is. We'll see if that bothers me over time. I have found that I have the controller create the "data-action" attribute itself if that is obvious from the nature of the controller, but the long attribute names can be a bit ... read more »
-
Various Ways To Get ColdFusion Data Into An Alpine.js Component
Posted on Mar 11, 2024 at 6:35 PM
I can't speak to Chris's experiences, but I've started using htmx recently myself and I really like it. It has the sort of intuitive use of ColdFusion. For my part, I typically have a URL to the parent page and then an "hx-" attribute pointing to a URL with just the part of the p... read more »
-
Wrapping Database Gateways In A Retriable Proxy For Lock Timeouts In ColdFusion And MySQL
Posted on Aug 1, 2017 at 4:11 PM
Ben, I like your solution, especially the increasing back-off duration. In his book, "Release It!" (despite the upbeat title, basically a book of programming horror stories), Michael Nygard argues against retrying queries that have timed out based on the idea that they are unlikely to su... read more »
-
Exceptions Are For Exceptional Circumstances Is Not A Value-Add Answer
Posted on Nov 3, 2014 at 10:03 AM
Ben, Why do you think that feels "leaky"? It sounds like a good solution to me.... read more »
-
Exceptions Are For Exceptional Circumstances Is Not A Value-Add Answer
Posted on Nov 3, 2014 at 9:37 AM
Sorry I guess I expressed myself badly. I wasn't trying to criticize the tone (though I do find it a bit frustrating) so much as I was trying to understand the nature of the disagreement. It seems like we are all saying that it is helpful to have exceptions return enough information for us to debug... read more »
-
Exceptions Are For Exceptional Circumstances Is Not A Value-Add Answer
Posted on Nov 1, 2014 at 3:03 PM
It seems to me that we are all in agreement that exceptions shouldn't make it all the way to the user and that our applications shouldn't crash. Yet the word "stupid" has made it into the conversation and the tone no longer seem friendly. I'm confused by how so much agreement seems to be ... read more »
-
Exceptions Are For Exceptional Circumstances Is Not A Value-Add Answer
Posted on Oct 31, 2014 at 2:34 PM
I really like this definition! One thing I notice a lot is methods that return a boolean for "success". I can understand how this might be needed in a REST API or something but the rest of the time I would rather have my methods return a meaningful value or nothing at all. I assume it wil... read more »
-
ColdFusion 10 - XmlSearch() And XmlTransform() Now Support XPath 2.0
Posted on Feb 28, 2012 at 4:05 PM
That is disappointing omission. Still, I guess some regular expression support is a major improvement over no regular expression support at all.... read more »
-
ColdFusion 10 - XmlSearch() And XmlTransform() Now Support XPath 2.0
Posted on Feb 28, 2012 at 9:59 AM
It all looked good until you added the part about regular expression support. That really put it over the edge to greatness!... read more »
-
Storing Your ColdFusion Scheduled Tasks In The Database
Posted on Aug 7, 2011 at 10:43 PM
I have separate tables for tasks and actions (each time any task gets run) and use variables to track things in process as well (an advantage of using a persistent-scoped CFC). This solves a lot of concurrency and error-trapping problems. It also allows for nice reporting on run times and errors an... read more »
-
Storing Your ColdFusion Scheduled Tasks In The Database
Posted on Aug 5, 2011 at 12:32 PM
Ben, I do something pretty similar, actually with my Scheduler.cfc component. It doesn't run tasks in parallel, but does ensure that tasks can't be running more than once at the same time an provide pretty good information about exceptions and such. http://www.bryantwebconsulting.com/blog/index.cf... read more »
-
Branching Logic vs. Guard Logic When It Comes To Function Control Flow
Posted on May 17, 2011 at 1:00 PM
Ben, Like Seb, I have used both styles - probably without quite enough thought going into it. I tend to prefer the "branching" style based on the philosophy that a method should have one and only one exit point. Then I will use the "guard" style only when the branching leads to... read more »
-
Aggregating XML Node Text In A ColdFusion XML Document
Posted on May 6, 2011 at 3:14 PM
This is really nice! I ran into this problem a while back and totally missed xmlNodes. I bet that would have made things much easier!... read more »
-
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
Posted on Mar 10, 2011 at 11:33 AM
That is excellent! I *just* ran into a need for that very syntax.... read more »
-
Seven Languages In Seven Weeks: Haskell - Day 1
Posted on Jan 27, 2011 at 2:56 PM
Ben, I think Barney said you could use it to implement any language that is included in the JVM. I haven't tried it yet (really should make it a point to do that), though, so I am not sure I understood everything correctly.... read more »
-
Seven Languages In Seven Weeks: Haskell - Day 1
Posted on Jan 27, 2011 at 11:20 AM
Darren, Absolutely! ColdFusion is great for general-purpose web development. As Ben alluded, the hard part is figuring out when and how to take advantage of other languages (as well as what we can learn from them and apply to ColdFusion or other languages). I certainly haven't solved the when, bu... read more »
-
Seven Languages In Seven Weeks: Haskell - Day 1
Posted on Jan 26, 2011 at 12:18 PM
Darren, I love ColdFusion as much as the next guy. I think it is *the* best language for web development, but I bet for certain kinds of problems Haskell would be much easier and more concise. In fact, ColdFusion could really benefit from a few of the fundamental functions popular in Functional pr... read more »
-
What ColdFusion Teaches Us About The Ultimate "Roll Your Own" Solution
Posted on Sep 8, 2010 at 11:03 AM
Ben, I absolutely agree. One of the nice things about this strategy is that it allows you to change our your underlying libraries if you ever need to do so. ColdFusion, for example, has done this (though not completely transparently) by opening up the option to have CFSEARCH use Solr instead of Ve... read more »