On Thursday, August 15, 2002, at 01:16 , Charlie Griefer wrote:
> To a newbie, <cfif myStringVar is ""> is
> much easier to comprehend than <cfif len(trim(myStringVar))>.

Yes, which would place the former in the better = more-maintainable 
category...

> So while I do agree that teaching the 'right' way is better than having to
> unteach a 'wrong' way...remember that a big reason CF is as popular as it 
> is
> is due to the fact that its learning curve is the bunny hill.

Yes, and with that in mind, we should also remember that our code will be 
read more often than it is written - readability is important and it may 
well be a newbie who has to deal with your code in future...

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to