While we're on the topic Hal, for certain types of user events, couldn't a
naming convention help simplify the guessing game of trying to come up with
successful names for fuseactions/XFA's so that readability between
programmers/projects would be consistent?

One of the things that I've encountered is that the fuseactions themselves
tend to say what 'they' are doing (prt.getPartCatalogue), while XFA's tend
to refer to how the user is interacting with them (usr.onSubmitForm).  This
has lead me to really think about how to name files & fuseactions.  I've
been trying to name files according to their role in the event. so for one
fuseaction (clt.getClientList) the following files would be included:
1)qry_ClientList.cfm
2)dsp_ClientList.cfm
Oddly enough while writing this I realized I was refering to the query file
as qry_getClientList.cfm which is kinda redundant considering qry_files
really just get stuff anyway

I think the reason I'm struggling with this is because I would love to see
VisualMind or something similar be able to generate your XFA's based on the
context of the fuseaction.  So if I had created a products circuit in
VisualMind, there would need to be a listing page, an unique display page,
and a form page.  When the script is parsed, the case statement handling the
output of the form (prd.getProductForm) would output 3 XFA's along with the
includes (XFA.onAdd=prd.addProduct, XFA.onSave=prd.saveProduct,
XFA.onDelete=prd.deleteProduct)

All that was PURELY hypothetical in that I haven't implemented either those
strict naming conventions(though I may tomorrow) nor the integration with
mind mapping software...I'm just on a role tonight and can't resist blabbin
away...

Peace,
Emilio
-----Original Message-----
From: Hal Helms [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 7:13 PM
To: Fusebox
Subject: RE: XFA's


Some of them (navigation XFAs for example) are almost constants and I
sometimes put those in myGlobals.cfm. But most of them need to be set in the
cfcase statement. For example, XFA.onSubmitForm will vary from case to case.

Hal Helms
Team Allaire
[ See www.halhelms.com <http://www.halhelms.com>  for info on training
classes ]


-----Original Message-----
From: Toby Tremayne [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 9:41 PM
To: Fusebox
Subject: XFA's


just curious, do most of you tend to code your XFA's in a big block at the
top of index.cfm or individually for each fuse, within the cfcase statement?


Toby Tremayne
Code Poet and Zen Master of the Heavy Sleep
Show Ads Interactive
359 Plummer St
Port Melbourne
VIC 3207
P +61 3 9245 1247
F +61 3 9646 9814
ICQ UIN  13107913
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to