On 8/26/06, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
>
> Are you serious? People... get a grip and stop being so anal. It's not my
> code so I'm allowed to be lazy and not scope it since it's basically
> pseudo.
> It showed the process of piecing the variables together regardless of what
> they were or how they were scoped. I'm sure the original poster knows what
> scopes they are in and will apply them where they need to.


I wasn't commenting on your lack of scope, Bobby. :-)

I've got some of the worst habits, so no judgement over here. 't'was a bad
joke.

Comment was more about explicit and implicit coding, and the DRY idea.

While looping over a query, does everyone do daQuery["theCol"][
daQuery.currentrow]
when they reference their fields?  Seems the only safe way of doing it,
but MAN does it make stuff hard to read.  Take this example:

someVar = ((x * y) / z) * someVar;

variables.someVar = ((theQuery["x"][theQuery.currentrow] * theQuery["y"][
theQuery.currentrow]) / theQuery["z"][theQuery.currentrow]) *
variables.someVar;

Zaphod showed the "better way" (a short "pointer"), but still, here you've
got
Adobe saying explicit scoping is best practice, yet no examples are scoped,
or, if so, it's like 1 out of 500 ;). It makes it hard for a newb to follow
best
practice when it's not really followed in the docs.

On-list, pseudo is fine and dandy, but not in livedoc examples, if ya ask
me.

That increases the divide 'tween CFers. It's like you have to already know,
to know.

But implicit and explicit is something all languages have to deal with,
which is
more of what I was getting at.  I'm not sure which is really "better", it
seems like
there are parts of both in everything. Bleh. More clarity from the denstar,
eh?

Pearls, real pearls. :-))


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251158
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to