I would generally agree that cfscript is "prettier" and "easier to
read" and we should be able to do everything in cfscript. I would
more likely use it for component development where output is not
typical, and the ability to build whole cfcs in cfscript is cool.
Rick
~~
Faster to read and type when working with blocks of code.
vs
var = '';
The other thing I like is that it enforces more of a MVC approach. Less
variable declaration nested inside of your output tags and you'll find yourself
writing logic outside of the HTML output.
One of the reasons that Adobe have quoted is to ease migration from other
languages. Attracting more developers being the goal.
Personally, my eyes prefer cfscript stylee unless I'm outputting html / xml.
Dominic
2009/10/5 Mike Kear
>
> I've been trying to see what's the benefit of enhancing
> Isn't a
>
> cfloop from=x to =y index=i step=z
>
> a counter loop?
Yes, it is. The difference is that the implementation is slightly less
flexible than the script version, but only slightly so, and only
noticeably so in edge cases that most of us will never see or touch or
even hear about.
Isn't a
cfloop from=x to =y index=i step=z
a counter loop?
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/10/5 Barney Boisvert :
>
> You can't express a true counter (for) loop with CFLOOP, only a
> condition loop (while). So that's one reason. Probabl
You can't express a true counter (for) loop with CFLOOP, only a
condition loop (while). So that's one reason. Probably the reason I
use it most often, even over reducing verbosity.
Beyond verbosity and a couple edge cases, I think it's pretty much
entirely personal preference.
cheers,
ba
I've been trying to see what's the benefit of enhancing CFScript.
There are a couple of reasons I can think of, but am I missing
something? Are there more significant reasons for enhancing CFScript
than I have here? Like for example performance issues?
[A] "I like to code using a javascrip
7 matches
Mail list logo