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
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
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
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
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
> 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
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
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
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
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
10 matches
Mail list logo