Archive for the 'CFML' Category

ColdFusion compiler is broken

Tuesday, September 22nd, 2009

Following on a tweet from Sean Corfield, I couldn’t believe it is possible to create a function called if, else, while and so on as well as declare variable called var. Here is the code that may hurt your head:

<cffunction name="if">
<cfargument name="val1" />
<cfargument name="val2" />
<cfif val1 eq val2>
<cfreturn true />
</cfif>
<cfreturn false />
</cffunction>
<cffunction name="hello">
<cfset var var [...]

ColdFusion to Flex serializer needs better error messages

Wednesday, September 2nd, 2009

I’m using Flex with ColdFusion for a long time now but sometimes I really can’t stand these two products together. I’m sending nested CFCs through the remote object back to Flex so ColdFusion has to serialize them to the form that may be understood by Flex. But I’ve got an error, somewhere I have an [...]

Railo, BlazeDS and CFC instances

Monday, April 20th, 2009

There is a lot of buzz recently around Railo since version 3.1 finally went open source and many well known CF developers joined the project. This gave me the motivation to finally see how Railo really works. I decided to give it a shot on one of already running applications. The choice was made, I [...]

Local function variables and parameters in ColdFusion and Railo

Thursday, April 16th, 2009

Today I was doing some heavy refactoring on a project I am working for quite a long time. Moving methods, changing arguments, removing unnecessary CFCs. We are using PDF and XML merging so the project utilizes Adobe ColdFusion. Now, I am using Adobe CF for like 7 years now, I thought I know it well. [...]