As discussed with Chris and others on IRC we'd like to use a new variable naming convention in AppDB code.
The proposed scheme is the following ("hungarian notation"):
handles: $hSomeHandle integer: $iSomeInteger objects: $oSomeObject arrays: $aSomeArray strings: $sSomeString and so on.
constants will still be uppercase without prefix.
Do someone object this ?
Jonathan
Hey,
On Tue, 28 Dec 2004 00:42:11 +0100, Jonathan Ernst Jonathan@ernstfamily.ch wrote:
constants will still be uppercase without prefix.
Do someone object this ?
If we really have to. And if you both think it's a good idea I'll use it. It's better than the original idea ($str_foo). And no one doing if($sFoo) instead of if(isset($sFoo)) anymore.
But what to do with conversions of types we often do. Do we have to rename on the fly?
Paul
What type of conversion do we need if we don't use strings and integer as booleans but rather use if(isset($variable)) instead ?
The only implicit conversion I see is when we do:
echo "There are $iSomeInteger maintainers";
but that's not a problem I think.
Le mardi 28 décembre 2004 à 11:54 +0100, Paul van Schayck a écrit :
Hey,
On Tue, 28 Dec 2004 00:42:11 +0100, Jonathan Ernst Jonathan@ernstfamily.ch wrote:
constants will still be uppercase without prefix.
Do someone object this ?
If we really have to. And if you both think it's a good idea I'll use it. It's better than the original idea ($str_foo). And no one doing if($sFoo) instead of if(isset($sFoo)) anymore.
But what to do with conversions of types we often do. Do we have to rename on the fly?
Paul