Re: variables... to prefix or not to prefix

2004-12-13 Thread Charlie Griefer
Hadn't thought about the reserved words issue. Very good point! On Mon, 13 Dec 2004 12:57:22 -0500, Jerry Barnes <[EMAIL PROTECTED]> wrote: > I prefix my variables. It helps with reading the code and debugging, > especially when someone who didn't write the code is doing the reading > or debugg

Re: variables... to prefix or not to prefix

2004-12-13 Thread Jason Lemahieu
I generally do this when I'm working with arrays of structures and crap, like: arrMonth[31] = structDay; Way back in college, (6 months ago), we used to do it for everything - but it mattered a lot more when we were using very strictly typed languages. ~

RE: variables... to prefix or not to prefix

2004-12-13 Thread Michael Dinowitz
I take it a step further and prefix all my internal var variables within a function with $ so there's never a question of where the variable belongs. Its internal only. ($ has been allowed as in variables and as the prefix for variables since MX shipped) I also use single letter prefixes for all

RE: variables... to prefix or not to prefix

2004-12-13 Thread Jerry Barnes
I prefix my variables. It helps with reading the code and debugging, especially when someone who didn't write the code is doing the reading or debugging. I even prefix parameters for custom tags with p_ (attributes.p_blnDebug for example). Different strokes for different folks I guess. Anyway,

RE: variables... to prefix or not to prefix

2004-12-13 Thread Murat Demirci
We never use prefixes in our codes for simple values since CF is typeless. We usually don't use prefixes for complex values too. Follow the most popular coding guidelines: http://livedocs.macromedia.com/wtg/public/coding_standards/ Murat. > -Original Message- > From: Tangorre, Michael [ma

RE: variables... to prefix or not to prefix

2004-12-13 Thread kola.oyedeji
Mike For CF I've never been much of a fan of prefixes (although I did prefix variables back in my *cough* ASP days) what happens if you change the data-type of the variable... you need to then change the name/prefix of the variable involving a search and replace. Kola -Original Message- F

Re: variables... to prefix or not to prefix

2004-12-13 Thread Joe Rinehart
I tend to prefix only complex types: qQuery sStruct aArray oObjectInstance -joe On Mon, 13 Dec 2004 10:02:39 -0500, Tangorre, Michael <[EMAIL PROTECTED]> wrote: > Just out of curiosity, who prefixes their variables with a data type > abbreviation... > > integer - intVariableName > numeric - nu

Re: variables... to prefix or not to prefix

2004-12-13 Thread Charlie Griefer
I don't normally preface the vars...but I do try to be descriptive enough in the var name that it's evident what the var is. For arrays and structs in particular, i'll do something like "empArray" or "empStruct". But as far as explicitly identifying strings, ints, etc...not really. empName is