Re: Hungarian Notation interest with PHP
| From: | Ashley Sheridan | Date: | Mon, 04 Jun 2012 14:58:10 +0000 |
| Subject: | Re: Hungarian Notation interest with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318140@lists.php.net to get a copy of this message | ||
Mihamina Rakotomandimby <mihamina@rktmb.org> wrote:
>Hi all,
>
>I have a colleague stuck with this thing named "Hungarian Notation"
>http://goo.gl/xYv8O
>
>We try to define our internal coding standards, which is very close to
>the Symfony ones http://goo.gl/f2rcO
>
>But we're in conflict because the colleague really argue about his
>"Hungarian Notation".
>
>Have you got some ressources arguing against this? I ran out of mine to
>
>convince him...
>
>--
>RMA.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
The two don't look to be mutually exclusive, but Hungarian notation doesn't make much
sense to me for php. Php is a loose typed language, and variables can (and do) change their types
often. Consider even the internal php functions which can return booleans, or arrays or strings, all
from the same function. Using Hungarian notation to give the dev a hint about the various types
doesn't make much sense, and may give the dev a false sense of security.
Thanks,
Ash
http://ashleysheridan.co.uk