There is a discussion right now in CF-Jobs-Talk called "Indian Code".  It says 
"I mentioned to the client that the code looked like it was done by a first 
month CF programmer. You know the type, pound signs everywhere, lots of CFIFs, 
etc. Didn't say the code sucked or anything, just that it looked amaturish."  I 
tend to agree with this statement.  Somehow beginners tends to use more CFIFs 
than the experts.  Have you attend any of Hal Helm's or some of the experts' 
presentations?  Their code seems to have a lot less CFIFs and more CFSET.  They 
just seem to organize things better.  I don't want to turn this into a big 
discussion here.  If you have some tricks or tips to help me code better, make 
good/better code, I'll greatly appreciate it.

Johnny


>> From: Johnny Le [mailto:[EMAIL PROTECTED] 
>> I shouldn't have given that specific example.  My reason for 
>> bringing this whole issue up is that people say beginners' 
>> code has a lot of CFIF statements.  I am using Fusebox now.  
>> So it elimates a lot of CFIF statement already, but I still 
>> feel that I have too many CFIF in my code.  I am just looking 
>> for alternative, better, and more efficient methods to handle 
>> all of those conditional statements.
>
>Who says beginners code has a lot of cfif statements? Why are they bad if
>they are needed. I have worked on a lot of applications where a good number
>of if statements were needed all over the place... why is this bad? How does
>fusebox eliminate the need for conditional logic? Are you using FB4?
>FB4.1?... <if condition=""></if> = <cfif></cfif>???? Sometimes a case/switch
>structure is a better choice over cfif/cfelseif/cfelse/cfif; usually when
>there would be more than one (1) cfelseif, otherwise they perform the same.
>
>Mike

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192166
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to