CamelCase: Difference between revisions

Everything About Fiction You Never Wanted to Know.
Content added Content deleted
prefix>Import Bot
(Import from TV Tropes TVT:Main.CamelCase 2012-07-01, editor history TVTH:Main.CamelCase, CC-BY-SA 3.0 Unported license)
 
(TVT->ATT)
Line 1: Line 1:
{{trope}}
{{trope}}
[[Self Demonstrating Article|aWord with embeddedCapitalisedLetters, like theHumps onTheBack of aCamel. theMainWay toMake]] [[Wiki Word|aWikiWord.]]
[[Self Demonstrating Article|aWord with embeddedCapitalisedLetters, like theHumps onTheBack of aCamel. theMainWay toMake]] [[Wiki Word|aWikiWord.]] (Not that you need to on All The Tropes...)


The first letter may or may not be capitalized depending on the context.
The first letter may or may not be capitalized depending on the context.
Line 11: Line 11:
* Used by corporations when two or more predecessor companies are merged into one new one (as well as for trademark purposes).
* Used by corporations when two or more predecessor companies are merged into one new one (as well as for trademark purposes).
* May overlap with [[Portmanteau Couple Name]], [[Portmantitle]].
* May overlap with [[Portmanteau Couple Name]], [[Portmantitle]].
* Used for [[Twitter]] hashtags containing multiple words (e.g. <nowiki>#TVTropes</nowiki>).
* Used for [[Twitter]] hashtags containing multiple words (e.g. <nowiki>#AllTheTropes</nowiki>).


{{reflist}}
{{reflist}}

Revision as of 20:42, 14 December 2013

aWord with embeddedCapitalisedLetters, like theHumps onTheBack of aCamel. theMainWay toMake aWikiWord. (Not that you need to on All The Tropes...)

The first letter may or may not be capitalized depending on the context.

  • Also used in programming as one style for defining multi-word variables.
    • This is actually useful so you can give a succinct idea of what said variable is supposed to do, instead of having to write lengthy comments about them in the function they're being used in.
    • In other languages, such as LISP, the preferred convention is caravan-case, as LISP does not use infix syntax (thus freeing the hyphen), and caravan-case is generally seen as easier to read
    • For those less familiar with the limitations of programming grammars, it's also because compilers tend to have no way of parsing two separate words as part of the same variable name.
  • Used by corporations to string together two or more common nouns in a way that can be trademarked.
  • Used by corporations when two or more predecessor companies are merged into one new one (as well as for trademark purposes).
  • May overlap with Portmanteau Couple Name, Portmantitle.
  • Used for Twitter hashtags containing multiple words (e.g. #AllTheTropes).