So I'm here in Rockville,MD doing my best to follow MAX 2006 from a distance, keeping an eye on blogs, Adobe.com, labs.adobe.com, etc...
One of the things that I'm excited about is the announcement that CF8, codenamed Scorpio, will have built in image manipulation tags. However, after looking at some of the examples on how it works, I wish that the syntax would follow a more object like approach.
For example, here you create a new image to be manipulated, say we're resizing it, using the default CF8 way:
<!--- create image --->
<cfset myImage = imageNew("foo.jpg") />
<!--- resize image - imageResize(image,width,height) --->
<cfset imageResize(myImage,"50%","50%") />
Instead, wouldn't it be nice to be able to do:
<!--- create image --->
<cfset myImage = imageNew("foo.jpg") />
<!--- resize image - imageResize(image,width,height) --->
<cfset myImage.resize("50%","50%") />
Changing the subject a bit:
Now, I know that for years we have done the same thing with Array, Struct data types. I feel the same about them as I do about the image manipulation feature. If we treat Arrays, Structs, and Images as "data types" in a more Object-Oriented manner, my opinion is that it will help CF users become more aware of Object Oriented concepts, than if we just give them a set of methods to do a particular set of functionality. "CF is not an Object-Oriented language!", I totally agree, however, if we are to market ColdFusion as an enterprise level application platform, we need to start following some sort of proven development methodologies that attract decision makers, Object-Oriented concepts have been proven in ColdFusion with the creation of CFCs, however the number of CFML developers in our community that are ready to take on such projects are lacking.