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 () {
...
}
Maybe it's readable and great, but I have a
yes andre, and in addition.. i have found the 'underscore' becomes a
handy delimiter character in certain cases. it's really helpful in
auto-loading and in calling user functions and in magic calls.
so, this is another reason to avoid 'underscore' in variable names.
code looks prettier and clean.
On 27 July 2010 13:04, viraj kali...@gmail.com 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
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:
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
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 lowercase, such as:
6 matches
Mail list logo