For me its primarily a felicity of style thing - I find CFSCRIPT syntax looks cleaner and more readable. I haven't noticed any particular performance differences within my apps. But I have noticed that using CFSCRIPT cuts down the ammount of my time to slap it all up and get it running. Just easier for my head to process and those few saved keystrokes. I imagine its just a personal preference though - much like inverted or standard controls on gaming consoles and that sort of thing. The true evangelists will always be able to produce a reason why one is more effective then the other... but the technical differences are really pretty negligable I think.
-----Original Message----- From: Nick Gorst [mailto:[EMAIL PROTECTED] Sent: Wednesday, 2 July 2003 9:36 AM To: CFAussie Mailing List Subject: [cfaussie] Cf Programming Style Hi. I've been wonderting for some time whether there is any benefit to using <cfscript> to embed code within a file over using cold fusion tags to perform the same functionality? An example I have recently come across used cfscript blocks to assign variables, a function that could have been implemented in <cfset> statements i.e. <cfscript> //DATABASE DETAILS datasource = "dsn"; username = "username"; password = "password" </cfscript> As opposed to <cfset datasource = "dsn"> <cfset username = "username"> <cfset Password = "Password"> Is there a reason to prefer one method over the other? I'd appreciate your thoughts. Nick Gorst Web Developer BLA Pty Ltd 45 Aquarium Avenue Hemmant, Queensland 4174 Australia. Phone: (07)3890 1115 Fax: (07)3890 5388 Mob: 0419 901 115 www.bla.com.au **************************************************************** This e-mail, together with any attachments, is intended for the named recipient(s) only. If you have received this message in error, you are asked to inform the sender, mailto:[EMAIL PROTECTED] , as quickly as possible and delete this message and any copies of this message from your computer system network. Any form of disclosure, modification, distribution and/or publication of this e-mail message is prohibited. Unless otherwise stated, this e-mail represents only the views of the sender and not the views of the Bob Littler Agencies Pty Ltd **************************************************************** --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
