That's why I think putting them in the variables scope makes perfect sense.
No need to put them in a scope they really don't belong in. Again, I'm not
suggesting this for basic Fusebox; I'm really thinking in terms of XFB.
Hal Helms
Team Allaire
[ See www.halhelms.com <http://www.halhelms.com> for info on training
classes ]
-----Original Message-----
From: Nat Papovich [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 2:10 PM
To: Fusebox
Subject: RE: Musings on Attributes (was Best Practices...)
You want aesthetics? Stick them in a real attributes scope if you don't like
faking a scope. Then you can loop over them and do structcount and
structfind and all kinds of goofy things (which could just as easily be
accomplished using other functions not starting with "struct"). I know Hal
and Jeff are constantly finding reasons to loop over their attributes
scope...
And about the folks who complain about the extra letters to type - have you
ever heard of snippets mapped to shortcut keys? Writing emails is about the
only time I use any single keystrokes. You gotta be like one of those court
stenographers with your coding. Extra typing is a non-issue when compared to
not scoping variables at all, and letting CF do it's own ordering (which is
a mr. yuck idea).
NAT
p.s. Mini Hal is breathing off a respirator now - still unconscious, but
will soon be awakening. And for the record - this is not my first clone-job.
> -----Original Message-----
> From: Hal Helms [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 10:31 AM
> To: Fusebox
> Subject: RE: Musings on Attributes (was Best Practices...)
>
>
> Exactly put, Jeff. When I originally said I was ready to deep six
> attributes, it was out of frustration that we have this thing that is
> undoubtedly useful but ugly as sin.
>
> Hal Helms
> Team Allaire
> [ See www.halhelms.com <http://www.halhelms.com> for info on training
> classes ]
>
>
> -----Original Message-----
> From: Jeff Peters [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 12:47 PM
> To: Fusebox
> Subject: Re: Musings on Attributes (was Best Practices...)
>
>
> On 23 Mar 2001, at 11:04, Steve Nelson wrote:
>
> > Let me bring up the question again.... What problem are we trying to
> > solve?
>
> My tests tell me there's no real performance hit with
> formurl2attributes, so
> I
> see the problem in two parts:
>
> 1. The "attributes" scope as generated by formurl2attributes isn't the
> Attributes scope, so you can't do loop operations over an attributes
> structure
> and see all form, url, and attributes variables.
>
> 2. Formurl2attributes creates copies of form and url variables, thus
> doubling
> the server memory used for those scopes in Fusebox apps. I'd much rather
> see a
> means to use a structure of pointers that would cover form-, url-, and
> attributes-scoped variables. This would accomplish the same
> goals as using
> the
> current approach, while streamlining memory use and providing a complete
> structure for accessing variables "passed into" a Fusebox module.
>
> That's the problem I'd like to solve. It's not a showstopper, but it has
> important implications.
>
> - Jeff
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists