Re: Re[2]: Do you have some standard for defined the variable in program language?

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

 



On 27 July 2010 13:04, viraj <kalinga@xxxxxxxxx> wrote:
> so, this is another reason to avoid 'underscore' in variable names.
> code looks prettier and clean.

That's all in the eye of the viewer: underscores are much prettier to
me in variables. That's all just a roundabout way of saying "it's
prettier" has no meaning on an objective level.

> classes - MyBestClass
> functions - TheGreatestFunctionInTheWorld

That confuses classes and functions - I prefer a naming convention
where classes and functions are named using different styles.
Personally I go for mixed-case for classes and camelcase for
functions, e.g. MyClass and myFunction(). Still, that's really just
personal taste and whatever makes you happy is the thing to go with.

Regards
Peter

-- 
<hype>
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
</hype>

-- 
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