> From: Johnny Le [mailto:[EMAIL PROTECTED] > 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."
That is a HUGE generalization. First off, if conditional logic is needed, use it; that is what it is there for. How can conditional logic be "amaturish"... what is your alternative... avoid conditional code? How does cfset relate to cfif/cfelseif/cfelse? You can't compare the two as they serve two different purposes. Compare cfif/cfelseif/cfelse with cfsitch/cfcase if you want, that would be more relevant. > I tend to agree with this statement. Why? > Somehow beginners tends to use more CFIFs than the experts. Wrong. I consider myself pretty damn good at CF and I use cfif when necessary. What is too much? What makes an expert! > 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. I don't need to see Hal's code to know how to use cfif and cfset... although I don't mind as he is a great presenter! > They just seem to organize things better. Yes they do! Fusebox and Mach-II are hihgly organized and structured which is why they are so appealing to me and many others. > 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. It seems the issue does need to be discussed if you think "a lot" of cfif constitutes "amaturish" code. 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:192169 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

