On Mar 18, 2014, at 10:17 AM, Adam Cameron <[email protected]> wrote: > > Tag-based code is godawful anywhere other than in a view, or some other > situation in which text-processing is needed. Which does not describe an > awful lot of CFML code out there. > > That Macromedia/Adobe pushed the tag side of CFML over the script side is > probably the worst strategic move they ever made.
Agree, now. I think at that moment in webdev history, it served a purpose, which was ease of entry in to development. Now, its a liability, seems antiquated, and is unnecessarily verbose - especially if you are coming from a different programming language. I do like wrapping an entire content block with <cfoutput> and just double escaping the pound symbols, as necessary, compared to having to deal with <?php echo $variable?> or PHP short tags <?= $variables ?>. I havent written a tag-based component in a long while though, as I can build something out faster in script - especially when Im coming back to CF after using a different language for a bit. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358020 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

