Jared Rypka-Hauer - CMG, LLC wrote:

I'm on board with the style-critics here... although I think an
artistic CF coder can make a CF page into a work of art... balancing
cfscript and indents and using line breaks in long tags... I enjoy
making my code tidy, even pretty, as much as I do watching it run.

But, I've got a pet peeve about mixing text and vars inside pound signs... like:
"someValue#someVariable#"


I agree icky looking. Maybe it's the musician in me - I'm a classically trained musician in my undergraduate degree and my wife is a professional musician. I used to do a lot of music engraving (transcribing hand written music into electronic commercial type manuscripts)...there are always many ways to engrave something - some are just plain easier for the musician to sight read. It's all about translation here in the end...music or CF code.

I used it for a while, and then immediately dropped it. It's UGLY...
especially when you have nice, tight, clean lines like
someValue[someVariable] instead... or the concat operator...
"someValue" & someVariable


Yes, better - at least to me. You know how many times I get passed some other person's code and it's full of hashes?

Lately I've realized it makes for more readable, straightforward code
than things mashed together with hashes inside long strings inside
quotes. It's cleaner and doesn't use hashes at all. If I can find a
way to write a routine without them, I will, because they're messy
clutter. Like Sean says about evaluate(), there's far to many times
where they're used when they don't need to be. The only place we need
a hash anymore is in tag attributes


Yes, read the Ben Forta article about using hashes - now if I could just find the link.... ;-) The article helped me out a couple of years ago - nailing down the "to be or not to be" question in regards to hashes...


-- Peter J. Farrell :: Maestro Publishing

blog    :: http://blog.maestropublishing.com
email   :: [EMAIL PROTECTED]
phone   :: 651-204-0513

Old Computer programmers never die, they just decompile.
--





----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]



Reply via email to