cfml

Sean Corfield on Frameworks

It's been forever since I've posted, but I'm going to try and get back
to posting at least a couple times a week again.  First topic is Sean Corfield's
"Frameworks: Fusebox or Mach-II" talk that he gave last night at the
Seattle CFUG meeting.  I'm not sure that's the exact title, but
it's close enough.  There were about 20 [...]

Whitespace Suppression

Christian Cantrell posted a blog entry about expanding CFML whitespace suppression by leveraging CFMX's J2EE underpinnings. There seems to be a fair amount of happiness that this solution was made known (especially such a simple one). Two things I see here:

people need to stop thinking about CFMX and a CF server and start [...]

Beans, Transfer Objects, and Other Mumbo Jumbo

There was a series of interesting threads on CFCDev today about
different types of objects, and how they play together to form a
complete OO system.  Couple that with a pretty active week in the
CF blogosphere regarding objects, and I think it's pretty safe to say
that CF development is growing up.  Definitely no longer just the
quick-fix dev [...]

String Concatenation Tricks

Massive string concatenation isn't used all that often in CF, but it's sometimes needed. My most common use is probably creating text-only emails. You can do it with the output stream directly, but you usually run into problems with an extra line break here or there, because of the way your CF tags [...]

CFQUERYPARAM, Part Deux

Cfcoder made a good point about why some people (particularly novices) probably don't use CFQUERYPARAM, and that is that if you use CFQUERYPARAM, you can't use the CACHEDWITHIN or CACHEDAFTER attributes of the CFQUERY tag.
That being said, I don't think this is necessarily a valid point. In general, optimization should be the last thing [...]

CFQUERYPARAM, People

I'm amazed at the number of problems that crop up on the mailing lists that can be solved simply by using CFQUERYPARAM rather than inlining values directly. I'm also amazed at the amount of code copy and pasted into emails regarding unrelated problems that don't use CFQUERYPARAM.
CFQUERYPARAM is your friend. Use it. [...]

Loosely Typed Languages

On CF-Talk today, someone asked about these two expressions:
<cfset i = 5 />
<cfoutput>
#i GT 0 AND i LT 4#
#i GT 0 LT 4#
</cfoutput>

Obviously the first one will be false (5 is not less than 4), but the second one is true! Why, you ask? Because CF is loosely typed, which means that a [...]

CVS Authentication

As part of my cvs.fusebox.org project, I made up a little CFC that will perform authentication against a CVS passwd file. I didn't want to have to maintain two sets of credentials for all the CVS users, so this proved a very good solution. The implementation was actually pretty simple; the most difficult [...]

Neuromancer

I downloaded Neuromancer today, which is a JavaScript library for doing web service calls without page requests. It's pretty slick, though it definitely has a few quirks. However, I spent some time working with it and managed to tack on what amounts to listeners for remote actions.
To put it in English, what you [...]

JSPs vs. ColdFusion

Thank GOD for ColdFusion. After doing a bunch of JSP stuff, I can't imagine trying to be productive without the tools that CF provides. The less that elegant syntax of the JSTL is annoying, but it's the tight integration that I really miss. You don't really appreciate the CFMAIL tag (for example) [...]