Re: [nyphp-talk] Length of variable names

2007-07-04 Thread tedd
At 8:09 PM -0400 7/3/07, David Krings wrote: BUT...back to the original question, does the length of a variable name have any impact on performance or such? Does the length of variable names have any impact on performance? I doubt it, but it should be easy enough to prove. Just write two rout

Re: [nyphp-talk] Length of variable names

2007-07-03 Thread Дмитрий Ананьев
BUT...back to the original question, does the length of a variable name have any impact on performance or such? Hi. In older php versions it does. Variables with long names was much slower then with short names. But in php5 i am not sure if this problem exists. And it is very simple to d

Re: [nyphp-talk] Length of variable names

2007-07-03 Thread David Krings
tedd wrote: > Hey, let's watch those "old programmer" remarks, because some of us are still around. But, you are right about the i, j, k, l, m, n integer thing as a legacy from FORTRAN. Oh, those were the good old days when programming was more like adventures in key punching. Where you would

RE: [nyphp-talk] Length of variable names

2007-07-03 Thread tedd
At 1:13 PM -0400 7/3/07, Ken Robinson wrote: Quoting Andy Dirnberger <[EMAIL PROTECTED]>: As far as i goes, I've always assumed it was just shorthand for something like index or increment. Nested for loops are often then controlled with j and then k. You can use these with confidence that peo

RE: [nyphp-talk] Length of variable names

2007-07-03 Thread Andy Dirnberger
Ken, Thanks. Looks like a lot of us just learned something new today. DiRN > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Ken Robinson > Sent: Tuesday, July 03, 2007 1:13 PM > To: talk@lists.nyphp.org > Subject: RE: [nyp

RE: [nyphp-talk] Length of variable names

2007-07-03 Thread Mark Armendariz
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ken Robinson > The use of variable names like $i, $j, $k, etc for counters > is a hold over from early Fortran which declared that only > variables starting with certain letters could be integers. > The first letter was "i". I

RE: [nyphp-talk] Length of variable names

2007-07-03 Thread Ken Robinson
Quoting Andy Dirnberger <[EMAIL PROTECTED]>: As far as i goes, I've always assumed it was just shorthand for something like index or increment. Nested for loops are often then controlled with j and then k. You can use these with confidence that people will understand the meaning. But if you f

RE: [nyphp-talk] Length of variable names

2007-07-03 Thread Andy Dirnberger
I had a professor back in college who told a story about a program he received from a student in which each variable was the name of a beer. The student had done such a good job documenting it, though, that the purpose of each variable was easily understood. To get back on topic, Hungarian Notati

Re: [nyphp-talk] Length of variable names

2007-07-03 Thread Jon Baer
Should probably stick w/ Zend coding standards ... http://framework.zend.com/manual/en/coding-standard.naming- conventions.html#coding-standard.naming-conventions.variables But I think all you really need to do is answer the question, "If someone else were to takeover my code would they unde

Re: [nyphp-talk] Length of variable names

2007-07-03 Thread Brian O'Connor
Usually I like to give my variables descriptive names, but in the shortest way possible. However, with regards to $i being the counter, that's a pretty common coding practice ($i being used to increment, and usually $j being the next variable (I believe because its after i in the alphabet but if