What logic should be in a controller? (and a wee bit of testing commentary)
G'day:This topic has come up for me twice from different directtions in the last week or so, so I'm gonna dump some thoughts. I've actually discussed this before in "I actively consider what I think...
View ArticleAnother thought on controllers and where the buck should stop
G'day:I just wrote an article on what a controller ought to limit itself to: "What logic should be in a controller? (and a wee bit of testing commentary)". But then I read an old question from Mingo on...
View ArticleFactories, static methods, Law of Demeter and never letting Sean see my code
G'day:I'm absolutely kidding about one of those things, btw.Right so yesterday I wrote a coupla articles about what code should and should not go into a controller:What logic should be in a controller?...
View ArticleSwitch refactoring on the road to polymorphism
G'day:A while back I wrote an article "Code smells: a look at a switch statement". That deals with a specific case which was pretty tidy to start with, and wasn't completely clear as to whether the...
View ArticleCFML: static methods and properties
G'day:ContextIn Lucee 5.0 (so: ages ago) and ColdFusion 2021 (so: you know… just now), support for static properties and methods was added to CFML. This isn't a feature that you'd use very often, but...
View ArticleTest coverage: it's not about lines of code
G'dayA coupla days ago someone shared this Twitter status with me:I'll just repeat the text here for google & copy-n-paste-ability:My personal opinion: Having 100% test coverage doesn't make your...
View ArticleTesting: reasoning over "testing implementation detail" vs "testing features"
G'day:I can't see how this article will be a very long one, as it only really dwells on one concept I had to reason through before I decided I wasn't talking horseshit.I'm helping some community...
View ArticleUnit testing back-fill question: how thorough to be?
G'day:I'm extracting this from a thread I started on the CFML Slack channel (it's not a CFML-specific question, before you browse-away from here ;-), because it's a chunk of text/content that possibly...
View ArticleTDD: writing a micro testing framework, using the framework to test itself as...
G'day:Being back in CFML land, I spend a lot of time using trycf.com to write sample code. Sometimes I just want to see how ColdFusion and Lucee behave differently in a given situation. Sometimes I'm...
View ArticleA question about the overhead of OOP in CFML
G'day:A question cropped up on the CFML Slack channel the other day. My answer was fairly long-winded so I decided to post it here as well. I asked the original questioner, and they are OK with me...
View ArticleA question about DAO testing, abstraction, and mocking
G'day:This is another "low-hanging fruit" kinda exercise (see also previous article: "A question about the overhead of OOP in CFML"). I'm extracting this one from the conversation in the CFML Slack...
View ArticleWork with me here
G'dayI mean literally: come work with me. Here.We're expanding our dev team, and I'm looking for a new dev to join us.This could be a really good opportunity for someone doing CFML development who...
View ArticleReading "It's probably time to stop recommending Clean Code"
G'day:Slightly lazy article, this one. This is basically some thoughts I jotted down in the Working Code PodcastDiscord channel. Then I decided there was almost enough there to make an article, so why...
View ArticleIf your company (or yourself) makes money using Lucee… you should throw them...
G'day:A few weeks back, right in the thick of the crap about all these Log4J vulnerabilities, I was talking to a few people about the necessity and the effort involved in Lucee getting their situation...
View ArticleCFML: revisit import aliasing
G'day:I'm writing this here cos it's getting a bit long for a comment on the CFML Slack channel, and perhaps it might get a different set of eyes on it here anyhow.I wanna revisit the discussion about...
View ArticleCFML: implementing dependency injection in a CFWheels web site
G'day:Recently I wanted to abstract some logic out of one of our CFWheels model classes, into its own representation. Code had grown organically over time, with logic being inlined in functions, making...
View ArticleA day in the life of trying to write a blog article in the CFML ecosystem
G'day:This is not the article I intended to write today. That article was gonna be titled "CFML: Adding a LogBox logger to a CFWheels app via dependency injection", but I'll need to get to that another...
View ArticleCFML: Adding a LogBox logger to a CFWheels app via dependency injection
G'day:This follows on from CFML: implementing dependency injection in a CFWheels web site. In that article I got the DI working, but only with a test scenario. For the sake of completeness, I'm gonna...
View ArticleCFML: with Lucee, true isn't necessarily the same as true
G'day:Yesterday I decided to improve my "Tiny Test Framework". I wrote an article about developing the first iterationof this as a TDD exercise six or so months ago: "TDD: writing a micro testing...
View ArticleWork with me here - revisited
G'dayBack in Jan I posted "Work with me here". Once again we are growing our team, and the equivalent job has opened again (this is in addition to the successful hire we made after the January round,...
View Article