CamelCase

Everything About Fiction You Never Wanted to Know.
Jump to navigation Jump to search


  • Main
  • Wikipedia
  • All Subpages
  • Create New
    /wiki/CamelCasework

    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. Strictly speaking, true CamelCase with the first letter capitalized is called "BiCapitalization"; "true" camelCase is also called "lowerCamelCase".

    May overlap with Portmanteau Couple Name, Portmantitle.

    Examples of CamelCase include:

    Advertising

    • Used by corporations to string together two or more common nouns in a way that can be trademarked.

    New Media

    • Used for Twitter hashtags containing multiple words (e.g. #AllTheTropes).

    Real Life

    • 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. So if you want them readable, it's either CamelCase or With_underscore, now that it's in standard layouts - depending mostly on whether your editor recognizes either as word boundary and whether you're used to typing it this way or that.
    • Used by corporations when two or more predecessor companies are merged into one new one (as well as for trademark purposes).