RE: Naming conventions

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

 



Hi,

> What do you use for your naming conventions for
> variables
> functions
> classes
> 
> I'm trying to tell my students what the standard is currently. Are people
> using camel case or underscores or both?

	I'm not sure there is a "standard" for naming things.  Here's how I
do it...

	classes:  CHelloWorld { ... }
	function: helloWorld() { .... }
	vars: hello_world

I guess I tend to stick to the camel style for function or class naming,
then use underscores in vars.  I also put a C before each class name.  There
is Hungarian notation that a lot of developers like to use.  You could
google that.

-Dan Joseph

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