Re: Hungarian Notation interest with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Mihamina Rakotomandimby <mihamina@xxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux