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

[email protected] (Peter Lind)
Newsgroups php.general
Message-ID <[email protected]>
On 27 July 2010 13:04, viraj <[email protected]> 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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.