Skip to main content
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with: Blain Smith
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with: Blain Smith

Boyan Kostadinov's cfSnippetExecutor For ColdFusion Testing

By
Published Comments (5)

You might remember Boyan Kostadinov from such places as my blog where he makes a habit of dropping awesome suggestions on me. This guy's like an idea-machine. Well, he's just come up with a new, very interesting idea: cfSnippetExecutor. Like me, Boyan suffers from a massive code testing directory (he, in fact, has a whole virtual site for it). This is due to the fact that every time we come across something that looks cool, we want to try it out ourselves. This requires messing with the ColdFusion server and the creation of a ton of test files.

Well, what if we didn't need to create a test file every time? What if we has the equivalent of a run-time Javascript evaluator? That's pretty much what cfSnippetExecutor is, except for ColdFusion. The idea here is you put your test code into a TextArea, AJAX shoots it off to the server, the server executes it as a dynamic file, and then returns the output result in the AJAX response.

My only concern would be that this, of course, opens you up to all kind of potential malicious problems (since you pretty much can't lock down things like CFFile or CreateObject() cause, well, what would be the point?). But, Boyan's thinking on this was that it is NOT a public script. You put it on your machine where you and you alone have access to it. This makes it only as dangerous as you want to be to yourself.

Now, there is plenty of testing that requires more than one page, but as far as seeing something on someone else's blog and having that "oh that's cool, let me try" desire, this could be very cool. I will be interested to see what other people think.

Reader Comments

52 Comments

Great Idea! I would really like to try out my new screen cast software as well, maybe I will throw 1 together if I can find a mic.

15,841 Comments

@Dan,

I use HomeSite 5.5 still. I have tried to use Eclipse a number of times and I can never seem to get my scribble pad to work. Something about the configuration of it always seems to go horribly wrong.

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel