BlogCFC Code Formatting Not Thread Safe (With Example)

I found an interesting little bug in the BlogCFC implementation of ColdFISH today. ColdFISH is a ColdFusion code formatting component that is instantiated once and cached as a singleton in the application scope in BlogCFC. The problem is, ColdFISH looks like it wasn't intended to be used as a singleton. It makes use of the variables scope to store the Java StringBuffer class it uses to gather up your formatted code as well as a number of other variables used to parse the code it is formatting. This means when two or more people hit a BlogCFC entry with larger code samples, race conditions exists.

[More]

MVC Question: What Should The Controller Pass The View?

I think the bane of development planning can be those conversations where you personify your framework and start debating about what a service should "know", whose "job" a particular operation is, or what the handler should "care" about. This is one of those sort of questions, but I'll keep it brief since I'm more interested in your opinions than my ramblings.

[More]

CFML Advisory Committee Update and ColdBox

Just a couple things I wanted to mention... The first is that the CFML Advisory Committee has been at work drafting their first version of the CFML language spec. Also, while looking through www.opencfml.org I noticed they are using CodexWiki which runs on ColdBox which is pretty cool. Speaking of ColdBox...

[More]

Add Your Own Custom Tools To CF Administrator- How Did I Miss This?

This is a really cool feature of ColdFusion 8 that I had totally missed but I stumbled across an article on Ray Camden's blog today. (Thanks Ray!) Basically, you can modify your ColdFusion Administrator menus to include custom tools of your own choosing. Several pre-built ones out there including SpoolMail, a nifty util to re-copy your undeliverable mail back into the spool folder; and Cache Clearer, an easy way to clear out specific folders of trusted cache.

[More]

ColdBox 2.6.2 Bug: Log File Paths

Here's a quick note concerning a quirk in the newly released ColdBox 2.6.2 that has a small chance at affecting you. We installed the latest version on our dev server yesterday and upon initializing the framework for the first time were greeted with an odd error while attempting to create the ColdBox logging directory.

[More]

ColdBox 2.6.2 Released

Last week Luis announced the release of ColdBox 2.6.2. They've got a pretty impressive list of fixes and enhancements in this release. The reason I was excited to see it though is because a bug I found was fixed in it. It's kind of cool to have had an impact (small as it may be) on a community product.

[More]

LightWire, Constructor Injection, And Inheritance

As we push ahead with our app using ColdBox and LightWire, we have been configuring our Dependency Injection as we go. DI is one of those things I'm pretty certain I see the benefit to, but I'm not sure how sold on it I am. At this point, we may only have 50 to 60 CFCs so perhaps we're just not deep enough in to see the real profit yet. The only real advantage I've seen to date is having all of our dependencies spelled out in one configuration file (with the exception of the stuff you are auto-wiring). Other than that, I don't know that I have really saved any code. That being said, I don't have any circular dependencies, and my dependency levels don't get much more than 2 or 3 levels deep right now so maybe I just need to be patient.

[More]



BlogCFC was created by Raymond Camden. This blog is running version 5.9.5. Contact Blog Owner