Search results
Results from the WOW.Com Content Network
The built-in JavaScript libraries use the same naming conventions as Java. Data types and constructor functions use upper camel case (RegExp, TypeError, XMLHttpRequest, DOMObject) and methods use lower camel case (getElementById, getElementsByTagNameNS, createCDATASection).
Similarly, lower camel case (also known as dromedary case) requires an initial lowercase letter. Some people and organizations, notably Microsoft, use the term camel case only for lower camel case, designating Pascal case for the upper camel case. [4] Some programming styles prefer camel case with the first letter capitalized, others not.
Camel case trademarks are common, and one should be used in a company article title when it is strongly dominant in the independent source material for that entity: EquaTerra, not Equaterra or Equa Terra. Do not impose camel case on a name that does not conventionally use it: Craigslist not CraigsList (much less Craig's List).
Reducing the cost of software maintenance is the most often cited reason for following coding conventions. In the introductory section on code conventions for the Java programming language, Sun Microsystems offers the following reasoning: [2]
The exceptions to this rule are that case is preserved within strings and when letters in identifiers are preceded by an exclamation mark (!). Hence, it is conventional to use snake-case (e.g. long_name) rather than camel-case (e.g. longName) for REDUCE identifiers, because camel-case gets lost without also using exclamation marks.
However, the "underscore" or "dash" characters are often used as stand-ins for the "space" character when its use would be invalid and their use would not be. As another example, so-called camel case—in which the first letter of each word is capitalized—has become part of the culture of many computer programming languages.
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
In some applications multipart names are written with spaces, in others joined together, often in camel case. They are usually matched insensitive of case and the X Server source code contains spaced aliases for most entries; this article uses spaces and uppercase initials except where variants with spaces are not specified in the actual code.