Re: NOT hungarian

From: Date: Sun, 15 Oct 2000 00:14:58 +0000
Subject: Re: NOT hungarian
References: 1 2 3 4 5  Groups: php.pear 
Request: Send a blank email to php-pear+get-377@lists.php.net to get a copy of this message
Quoting Paul DuBois <paul@snake.net>: > Consistent with other PEAR code, yes. > > I'm curious why hungarian was chosen for PEAR when all the functions > in PHP itself are written with names containing underscores. If consistency > is the goal, why not use underscore name in PEAR, too? It is NOT hungarian notation. Hungarian is the practice of prefixing variable names with an abreviation representing their type. Name methods like getWidgets() is called studlyCaps or camel notation. The argument for it, as I remember (and this is what I agree with, at least), is that it differentiates object-oriented code from other code, and even more, it differentiates user code from php built-in functions. So it's easy to see what might require a module loaded into php, and what's just a class you need to load. -chuck -- Charles Hagenbuch, <chuck@horde.org> must... find... acorns... *thud*

« previous php.pear (#377) next »