Naming Convention choice

2002-07-05 Thread Michael Dinowitz
>From a post that predates the current archives (I'll add the older ones in later). I basically use a three tiered system that allows people to choose what they want based on the complexity of the data. Tier 1 (complex data types) s-Structures (sStructure) a-Array (aArray) o-Object (oObject) q

OT: Naming Convention choice

2002-07-05 Thread Paul Giesenhagen
Curious as to which one people prefer. OR Also, out of curiosity these too: (all caps) Or Thanks Paul Giesenhagen QuillDesign __ This list and all House of Fusion resources hosted by CFHosting.com. The place for depe

RE: Naming Convention choice

2002-07-05 Thread Erika L. Walker
I use this: Erika >>| -Original Message- >>| From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] >>| Sent: Friday, July 05, 2002 3:14 PM >>| To: CF-Talk >>| Subject: OT: Naming Convention choi

RE: Naming Convention choice

2002-07-05 Thread Ryan Pieszak
I tend to use this format... CF specific tags in caps, var names spaced and capitalized. -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 10:14 AM To: CF-Talk Subject: OT: Naming Convention choice Curious as to which one people prefer

RE: Naming Convention choice

2002-07-05 Thread Jim Vosika
I do: mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 9:19 AM To: CF-Talk Subject: RE: Naming Convention choice I use this: Erika >>| -Original Message- >>| From: Paul Giesenhagen [mailto:[EMAIL PROTECTED

RE: Naming Convention choice

2002-07-05 Thread Mark A. Kruger - CFG
cally evaluated variable extensions in the form scope (_date, _number etc.). This can cause a ticklish error that is difficult to troubleshoot. Mark -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 9:14 AM To: CF-Talk Subject: OT: Naming Conve

Re: Naming Convention choice

2002-07-05 Thread Charlie
- Original Message - From: "Paul Giesenhagen" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, July 05, 2002 10:13 AM Subject: OT: Naming Convention choice > Curious as to which one people prefer. > > > > OR >

RE: Naming Convention choice

2002-07-05 Thread Matt Robertson
PROTECTED]] Sent: Friday, July 05, 2002 7:14 AM To: CF-Talk Subject: OT: Naming Convention choice Curious as to which one people prefer. OR Also, out of curiosity these too: (all caps) Or Thanks Paul Giesenhagen QuillDesign

Re: Naming Convention choice

2002-07-05 Thread Paul Giesenhagen
"> > Head hurts, vision blurry... Happy 5th of July ;D" I understand ... question, does Europe and other countries have a 4th of July too? Paul Giesenhagen QuillDesign (Or do they go from the 3rd to the 5th USA Humor) __

RE: Naming Convention choice

2002-07-05 Thread Shawn McKee
Yes, they just don't celebrate it as US Independence day. ;-) Shawn McKee -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 11:30 AM To: CF-Talk Subject: Re: Naming Convention choice "> > Head hurts, vision blurry... Happ

RE: Naming Convention choice

2002-07-05 Thread Jeffry Houser
ssage- >From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] >Sent: Friday, July 05, 2002 7:14 AM >To: CF-Talk >Subject: OT: Naming Convention choice > > >Curious as to which one people prefer. > > > >OR > > > >Also, out of

RE: Naming Convention choice

2002-07-05 Thread Erika L. Walker
I second this ... Just like we all hate people who type in caps all the time, reading code that's all uppercased make me feel like I have a hangover! The only thing we uppercase is our TABLE NAMES and FIELD NAMES, so they stick out when we're doing forms, which is almost all we ever do. Though so

RE: Naming Convention choice

2002-07-05 Thread Dave Carabetta
> I would recommend lowercasing CF tags. This will make it consistent >with >XHTML. > For more information, look here > I also (personally) think that all lowercase words are easier to read >than words in all uppercase. While I agree that all lower cas

Re: Naming Convention choice

2002-07-05 Thread Yves Arsenault
OTECTED]> Sent: Friday, July 05, 2002 2:00 PM Subject: RE: Naming Convention choice > I second this ... Just like we all hate people who type in caps all the > time, reading code that's all uppercased make me feel like I have a > hangover! The only thing we uppercase is our TAB

RE: Naming Convention choice

2002-07-05 Thread Matt Robertson
Of course not... Cheers, --Matt-- -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 9:30 AM To: CF-Talk Subject: Re: Naming Convention choice "> > Head hurts, vision blurry... Happy 5th of July ;D" I understand ..

RE: Naming Convention choice

2002-07-05 Thread Neil Clark - =TMM=
Macromedia http://www.macromedia.com/go/team Announcing Macromedia MX!! http://www.macromedia.com/software/trial/ -Original Message- From: Erika L. Walker [mailto:[EMAIL PROTECTED]] Sent: 05 July 2002 18:00 To: CF-Talk Subject: RE: Naming Convention choice I second this ... Just like we all

RE: Naming Convention choice

2002-07-05 Thread Jeffry Houser
At 01:18 PM 7/5/2002 -0400, you wrote: > > I would recommend lowercasing CF tags. This will make it consistent > >with > >XHTML. > > For more information, look here > > I also (personally) think that all lowercase words are easier to read > >than words i

RE: Naming Convention choice

2002-07-05 Thread Matt Robertson
ysecretbase.com -Original Message- From: Neil Clark - =TMM= [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 10:33 AM To: CF-Talk Subject: RE: Naming Convention choice Here is a very interesting doc by Sean Corfield : http://www.corfield.org/coldfusion/codingStandards.htm it is a pretty

Re: Naming Convention choice

2002-07-05 Thread Michael Dinowitz
uly 05, 2002 1:50 PM Subject: RE: Naming Convention choice > Great resource. Thx for posting. > > I can't seem to find the CF Style guide linked from HOF's home page. It > goes to an old FusionAuthority weekly, but for some reason I can't find > the link from there.

RE: Naming Convention choice

2002-07-05 Thread Neil Clark - =TMM=
Both are good links :-p the link I posted is MM approved AFAIK : Ray Camden had a hand in it. -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] Sent: 05 July 2002 19:07 To: CF-Talk Subject: Re: Naming Convention choice http://www.fusionauthority.com

Re: OT: Naming Convention choice

2002-07-05 Thread Tony Schreiber
Personally, I type all my tags in UPPERCASE. My attribute values, querynames and variables are usually lowercase or "javascript" style (queryName). > > > OR > > > > Also, out of curiosity these too: > > (all caps) > > Or > > > > Thanks > Paul Giesenhagen > QuillDesign > > ___

Re: OT: Naming Convention choice

2002-07-05 Thread Mike Townend
I tend to capitialise all the CFTags, lowercase the HTML tags and the Mix case Function and Variable names... #UCase(sMyName)# tis just how ive always done it i think its more of a personal choice unless a com

Re: OT: Naming Convention choice

2002-07-05 Thread Jochem van Dieten
Paul Giesenhagen wrote: > Curious as to which one people prefer. I prefer to treat CFML like it is XHTML. Jochem __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldf

Re: OT: Naming Convention choice

2002-07-05 Thread Rizal Firmansyah
I use "Hungarian" style for naming convention, that is using prefix such as: i for integer -> iQuantity str for string -> strName fl for float -> flPrice qry for query -> qryProducts etc... and i lower case every tags (thanks to CF studio) Rizal At 09:13 PM 7/5/2002, you wrote: >Curious as to w

Re: OT: Naming Convention choice

2002-07-05 Thread Jacob
I tend to cap all HTML tags and lowercase all cftags. At 03:24 PM 7/5/2002 +0100, you wrote: >I tend to capitialise all the CFTags, lowercase the HTML tags and the Mix >case Function and Variable names... > > > > > > > #UCase(sMyName)# >

RE: OT: Naming Convention choice

2002-07-05 Thread Dave Watts
> > Curious as to which one people prefer. > > I prefer to treat CFML like it is XHTML. Really? Do you do this: Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Structure

RE: OT: Naming Convention choice

2002-07-05 Thread Erika L. Walker
I have seen a lot of code like this ... Especially 's Studio does it automatically for you as well ... Erika >>| -Original Message- >>| From: Dave Watts [mailto:[EMAIL PROTECTED]] >>| >>| Really? Do you do this: >>| >>|

Re: OT: Naming Convention choice

2002-07-05 Thread Dick Applebaum
"Hungarian style", Buci? On Friday, July 5, 2002, at 08:05 AM, Rizal Firmansyah wrote: > I use "Hungarian" style for naming convention, > that is using prefix such as: > i for integer -> iQuantity > str for string -> strName > fl for float -> flPrice > qry for query -> qryProducts > etc... >

RE: OT: Naming Convention choice

2002-07-05 Thread Dave Watts
> "Hungarian style", Buci? It's called "Hungarian notation", actually: http://web.umr.edu/~cpp/common/hungarian.html It uses prefixes within variable names to make clear the datatype of the variable. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797

RE: OT: Naming Convention choice

2002-07-05 Thread Dave Watts
> > Really? Do you do this: > > > > > > I have seen a lot of code like this ... Especially 's > > Studio does it automatically for you as well ... Well, that's a little different. If you want to write HTML that will comply with XHTML, you have to close every tag, even BR and HR tags which wo

RE: OT: Naming Convention choice

2002-07-05 Thread todd
And the way around to prevent it from executing twice is to: ... your code here within the customTag. Didn't I just see this on Corfield's blog or something? I swore I saw this somewhere, I can't find the reference to it now. ~Todd On Fri, 5 Jul 2002, Dave Watts wrote: > > > Really? D

RE: OT: Naming Convention choice

2002-07-05 Thread Dave Watts
> And the way around to prevent it from executing twice is to: > > > ... your code here > > > within the customTag. Yes, that functionality is fully described in the CF documentation, I'm sure, and covered in detail in the "Advanced ColdFusion Development" course from MM. You've got all sor

RE: OT: Naming Convention choice

2002-07-05 Thread todd
> However, my point was simply that blindly following XML syntax for CFML may > have unintended consequences. > > Dave Watts, CTO, Fig Leaf Software Agreed and I was just following up with how to avoid that. :) But, I also have another question as well... if we (the developers) do take that p

RE: OT: Naming Convention choice

2002-07-05 Thread Alex
> Well, that's a little different. If you want to write HTML that will comply > with XHTML, you have to close every tag, even BR and HR tags which would > never contain anything - that's just the nature of XML. Tags that do not have closing tags only need a slash at the end. Like . _

RE: OT: Naming Convention choice

2002-07-05 Thread Rizal Firmansyah
aaah... nice link :) actually the first time I read this "Hungarian notation" (or whatever you call it) is in "Code Complete" book by McConnell - M$ press, if i'm not mistaken. That was 7 years ago... The idea of "Hungarian notation" is really good, and it's applicable in most programming langu

RE: OT: Naming Convention choice

2002-07-05 Thread Dave Watts
> But, I also have another question as well... if we (the > developers) do take that precaution to make sure that our > stuff works and nothing is executed twice, should we be > following that standard? I'm seeing that in just about > every sample / tutorial all over the place and ... Well, i

RE: OT: Naming Convention choice

2002-07-05 Thread Dave Watts
> > Well, that's a little different. If you want to write HTML > > that will comply with XHTML, you have to close every tag, > > even BR and HR tags which would never contain anything - > > that's just the nature of XML. > > Tags that do not have closing tags only need a slash at the > end. L

RE: OT: Naming Convention choice

2002-07-05 Thread todd
Ok, I get it. Thanks for the discussion! ~Todd On Fri, 5 Jul 2002, Dave Watts wrote: > > But, I also have another question as well... if we (the > > developers) do take that precaution to make sure that our > > stuff works and nothing is executed twice, should we be > > following that standa

RE: OT: Naming Convention choice

2002-07-05 Thread Ben Johnson
> By following that example, what am I gaining? being XHTML compliant? Who > cares? What if I never do XHTML? < here>> One thing that I could see being very useful in terms would be parsing through your code with another CF page. For example, if your code is XHTML compliant, you could probab

RE: OT: Naming Convention choice

2002-07-05 Thread Brad Roberts
> Also, another question. Would the following be XHTML compliant: > > > > Or would it have to be: > > You can't "comply" the CF markup language to an XML standard, it's not XML. __ Structure your ColdFusion code with Fusebo

RE: OT: Naming Convention choice

2002-07-05 Thread Ben Johnson
> You can't "comply" the CF markup language to an XML standard, it's not XML. True, it's not XML, but that doesn't mean the code that I write can't comply with XML. With the exception of blocks, I can't think of any part of ColdFusion that can't comply with XML. Anybody know of any? And now w

RE: OT: Naming Convention choice

2002-07-05 Thread todd
> now with CFMX, really isn't necessary. > > Ben Johnson Ben! Say it ain't so! :D I still use a lot! Even inside components! ~Todd -- Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ | Team Macromedia Voluntee

RE: OT: Naming Convention choice

2002-07-05 Thread Neil Clark - =TMM=
: Naming Convention choice > You can't "comply" the CF markup language to an XML standard, it's not XML. True, it's not XML, but that doesn't mean the code that I write can't comply with XML. With the exception of blocks, I can't think of any part of Cold

RE: OT: Naming Convention choice

2002-07-05 Thread Ben Johnson
> Ben! Say it ain't so! :D I still use a lot! Even inside > components! = evil.Actually, I think I just got turned off by it when it debugged with the line number of the starting tag. I know it's fixed, but I like my tag based CF code better anyway. Ben Johnson _

RE: OT: Naming Convention choice

2002-07-05 Thread Weaver, Anthony
I have been writing CF code since 3.x and have NEVER used CFScript. I have never actually found a need. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 2:56 PM To: CF-Talk Subject: RE: OT: Naming Convention choice > Ben! Say it ai

WAS:RE: OT: Naming Convention choice

2002-07-05 Thread Shawn McKee
IMHO it is a lot cleaner and easier to read. Shawn McKee -Original Message- From: Weaver, Anthony [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 2:00 PM To: CF-Talk Subject: RE: OT: Naming Convention choice I have been writing CF code since 3.x and have NEVER used CFScript

Re: OT: Naming Convention choice

2002-07-05 Thread Michael Dinowitz
CFSCRIPT still has its uses and I happen to use it all the time when it comes to large groups of simple syntax. Its definitely not dead. > > You can't "comply" the CF markup language to an XML standard, it's not > XML. > > True, it's not XML, but that doesn't mean the code that I write can't c

RE: OT: Naming Convention choice

2002-07-05 Thread Ben Johnson
> I fail to see why?! I mentioned that you could parse your code with CFXML if it was XML compliant. You'd have to do something with your HTML, but it could work. I'm not saying that parsing your CF code into an XML document will solve all the problems in the world, but there's some cool stuff y

RE: OT: Naming Convention choice

2002-07-05 Thread Brad Roberts
> Another reason to code your CF with XML compliance is that it > gets you in a > good habit. I think that's a great reason to use XML compliance in your code. However, it's pretty easy to build a habit of using certain syntax for certain tags. For instance, I'm in the habit of ending , , , etc

RE: OT: Naming Convention choice

2002-07-05 Thread Alex
On Fri, 5 Jul 2002, Dave Watts wrote: > > > Well, that's a little different. If you want to write HTML > > > that will comply with XHTML, you have to close every tag, > > > even BR and HR tags which would never contain anything - > > > that's just the nature of XML. > > > > Tags that do not have

RE: OT: Naming Convention choice

2002-07-05 Thread Dave Watts
> > > > Well, that's a little different. If you want to write HTML > > > > that will comply with XHTML, you have to close every tag, > > > > even BR and HR tags which would never contain anything - > > > > that's just the nature of XML. > > > > > > Tags that do not have closing tags only need a sl

RE: OT: Naming Convention choice

2002-07-05 Thread Ben Johnson
> Maybe I misread but this was about xhtml not xml. In xhtml you do not need > to explicitly close tags like with a . One is good > enough. XML does not need an explicit end tag either. A node works the same as . It's the same idea in both XML and XHTML. There's no "right" way. is just cl

RE: OT: Naming Convention choice

2002-07-05 Thread Alex
On Fri, 5 Jul 2002, Dave Watts wrote: > > > > > Well, that's a little different. If you want to write HTML > > > > > that will comply with XHTML, you have to close every tag, > > > > > even BR and HR tags which would never contain anything - > > > > > that's just the nature of XML. > > > > > > >

RE: OT: Naming Convention choice

2002-07-05 Thread Alex
On Fri, 5 Jul 2002, Ben Johnson wrote: > > Maybe I misread but this was about xhtml not xml. In xhtml you do not need > > to explicitly close tags like with a . One is good > > enough. > > XML does not need an explicit end tag either. A node works the same > as . It's the same idea in both X

RE: OT: Naming Convention choice

2002-07-05 Thread Dave Watts
> > > > > > Well, that's a little different. If you want to write HTML > > > > > > that will comply with XHTML, you have to close every tag, > > > > > > even BR and HR tags which would never contain anything - > > > > > > that's just the nature of XML. > > > > > > > > > > Tags that do not have clo

RE: OT: Naming Convention choice

2002-07-05 Thread Alex
On Fri, 5 Jul 2002, Dave Watts wrote: > > > > > > > Well, that's a little different. If you want to write HTML > > > > > > > that will comply with XHTML, you have to close every tag, > > > > > > > even BR and HR tags which would never contain anything - > > > > > > > that's just the nature of XML

RE: OT: Naming Convention choice

2002-07-05 Thread Brad Roberts
> I am getting at that in XHTML tags that do not have an ending tag like > and DO NOT need one. Maybe you should read these emails before > you send out you marketing blurbs. In XHTML, tags like and DO NEED an end tag. However, they can "be their own" end tag, i.e. , which is equivalent to .

RE: OT: Naming Convention choice

2002-07-05 Thread Dave Watts
> I am getting at that in XHTML tags that do not have an > ending tag like and DO NOT need one. Maybe > you should read these emails before you send out you > marketing blurbs. I hardly think you're in a position to tell me I should read these emails. I think I've read them very carefully, a

Re: OT: Naming Convention choice

2002-07-06 Thread Jochem van Dieten
Alex wrote: > > I am getting at that in XHTML tags that do not have an ending tag like > and DO NOT need one. Maybe you should read these emails before > you send out you marketing blurbs. May I suggest you write a page that way and try to run it through http://validator.w3.org/? Jochem ___

Re: OT: Naming Convention choice

2002-07-06 Thread Alex
Thanks. I just did and it worked. %% http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Untitled Hi Break Line % On Sat, 6 Jul 2002, Jochem van Dieten wrote: > Alex wrote: > > > > I am getting at that in XHTML tag