Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at the New York ColdFusion User Group (Jan. 2008) with:

Boyan Kostadinov's cfSnippetExecutor For ColdFusion Testing

By Ben Nadel on

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

@dan: I'd be very interested in hearing more about how you use scribblepad - there I just gave you an idea for a blog post ;)

Reply to this Comment

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.

Reply to this Comment

@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.

Reply to this Comment

Post A Comment

You — Get Out Of My Dreams, Get Into My Comments
Live in the Now
Oops!
Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.