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

2010-07-27 Thread Micky Hulse
Some style guides you might find interesting (the Code Igniter style guide might be the most relevant to this discussion): Django: Coding style ExpressionEngine: General Style and Syntax Flex: SDK coding conventions and best practices

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

2010-07-27 Thread Jordan
On 7/27/2010 12:38 PM, Andre Polykanine wrote: Hello viraj, As for classes, it's suggested to start a class name with a capital: class MyBestClass { ... } As for functions and class methods, there are lots of people who name them like this: function the_greatest_function_in_the_world () { ...

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

2010-07-27 Thread Bob McConnell
From: tedd > At 1:38 PM +0300 7/27/10, Andre Polykanine wrote: >>Hello viraj, >> >>As for classes, it's suggested to start a class name with a capital: >>class MyBestClass { >>... >>} > > In some languages (I can't remember if it is Java, or Javascript, or > both) the first letter should be lowe

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

2010-07-27 Thread Joshua Kehn
Tedd- Java has classes listed with an Uppercase. It could be JS you're thinking of but I'm not sure. Functions (except constructors) and variables have the lowerUpperCamelCase notation. Regards, -Josh On Jul 27, 2010, at 12:55 PM, tedd wrote: > At 1:38 PM +0300 7/27/10, Andre Polykanine wrot

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

2010-07-27 Thread tedd
At 1:38 PM +0300 7/27/10, Andre Polykanine wrote: Hello viraj, As for classes, it's suggested to start a class name with a capital: class MyBestClass { ... } In some languages (I can't remember if it is Java, or Javascript, or both) the first letter should be lowercase, such as: myBestClass

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

2010-07-27 Thread tedd
At 3:12 PM +0530 7/27/10, viraj wrote: $firstName is the most readable.. for variables. does anybody have negative thoughts on using the same naming format for method/function and for class names? i guess it's worth sharing! many thanks! ~viraj I like using $first_name. I don't have any pr

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

2010-07-27 Thread Peter Lind
On 27 July 2010 13:04, viraj 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 meani

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

2010-07-27 Thread viraj
- Original message ----- > From: viraj > To: a...@ashleysheridan.co.uk > Date: Tuesday, July 27, 2010, 12:42:36 PM > Subject: [PHP] Do you have some standard for defined the variable in  program > language? > > $firstName is the most readable.. for variables. > > d

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

2010-07-27 Thread Andre Polykanine
n't use any screenreading software for developing. -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule - Original message - From: viraj To: a...@ashleysheridan.co.uk Date: Tuesday, July 27, 2010, 12:42:36 PM Subject: [PHP] Do you have

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

2010-07-27 Thread Pete Ford
On 27/07/10 10:42, viraj wrote: $firstName is the most readable.. for variables. does anybody have negative thoughts on using the same naming format for method/function and for class names? i guess it's worth sharing! many thanks! ~viraj I like to use $firstName, and function firstName(), b

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

2010-07-27 Thread viraj
$firstName is the most readable.. for variables. does anybody have negative thoughts on using the same naming format for method/function and for class names? i guess it's worth sharing! many thanks! ~viraj On Tue, Jul 27, 2010 at 3:02 PM, Ashley Sheridan wrote: > On Tue, 2010-07-27 at 10:10 +0

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

2010-07-27 Thread Ashley Sheridan
On Tue, 2010-07-27 at 10:10 +0200, Jordan Jovanov wrote: > Hello Everybody > > I start to write PHP script and all veritable a defined without some > rules. I want to ask to you somebody know how is correct do different > some variable. > Like from next three variable who is correct: > $first

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

2010-07-27 Thread Jordan Jovanov
Hello Everybody I start to write PHP script and all veritable a defined without some rules. I want to ask to you somebody know how is correct do different some variable. Like from next three variable who is correct: $firstname $FirstName $firstName $first_name etc. I know that from this var