Camel case Contents Variations and synonyms Traditional use in natural language History of modern technical...
CapitalizationNaming conventionsTypography
capital letteriPhoneeBaydomain namesMicrosoftTitle CaseTall Man letteringsnake caseunderscoresunderscoresmedia studiesgrammarsAvi RappoportGermanIGerman orthographyparenthesesIrishGalwayIrelandScots Gaelic orthographyBantu languagesSwahili languageZulu languagelanguages of MexicoNahuatlTotonacanMixe–ZoqueOto-Manguean languagesDutchH. W.F. G. Fowlercompound wordshyphensHebrewTibetantoneChechenMedieval defensive towersChecheniaIngushetiaphonemePhDBScFederal Constitutional CourtCompany with Limited LiabilityOuLiPoDShKCyrillicJacob BerzeliusUueEtamino acidproteinscorporatetrademarksnaming conventionidentifiersprogramming languagesSpeedcodingChristopher StracheyGPMparseddelimiterstokensLispCOBOLhyphencommand lineFORTRANALGOLpunched cardASCIIunderscoreCPerlPythonwhitespaceCharles SimonyiXerox PARCHungarian NotationMesa programming languageXerox AltoNiklaus WirthPascalModulaSmalltalkpersonal computertrade namesdot-com bubbleelectronicInternetinformationintelligentAppleiMaceBoxamidophosphoribosyltransferaseHeLacoding styleMesaPascalModulaJavaMicrosoft.NETvariablesrecord fieldsmethodsprocedurestypesstatic analysisHungarian notationacronyms and initialismswiki markup languageswikiWard Cunninghamwiki softwareWikiWikiWebTiddlyWikiTracPmWikipluginWikipediasquare bracketsAboutUsNIEMXMLcommand-line interfacesscriptingMicrobloggingsocial networkingHashtagspercent-encodedhuman readablesnake case
Camel case
Jump to navigation
Jump to search
Camel case (stylized as camelCase; also known as camel caps or more formally as medial capitals) is the practice of writing phrases such that each word or abbreviation in the middle of the phrase begins with a capital letter, with no intervening spaces or punctuation. Common examples include "iPhone" and "eBay". It is also sometimes used in online usernames such as "johnSmith", and to make multi-word domain names more legible, for example in advertisements.
Camel case is often used for variable names in computer programming. Some programming styles prefer camel case with the first letter capitalised, others not.[1][2][3] For clarity, this article calls the two alternatives upper camel case (initial uppercase letter, also known as Pascal case) and lower camel case (initial lowercase letter, also known as Dromedary case[4]). Some people and organizations, notably Microsoft,[2] use the term camel case only for lower camel case. Pascal case means only upper camel case.
Camel case is distinct from Title Case, which capitalises all words but retains the spaces between them, and from Tall Man lettering, which uses capitals to emphasize the differences between similar-looking words such as "predniSONE" and "predniSOLONE". Camel case is also distinct from snake case, which uses underscores interspersed with lowercase letters (sometimes with the first letter capitalized). The combination of "upper camel case" and "snake case" is known as "Darwin case". Darwin case uses underscores between words with initial uppercase letters, as in "Sample_Type".[citation needed]
Contents
1 Variations and synonyms
2 Traditional use in natural language
2.1 In word combinations
2.2 In transliterations
2.3 In abbreviations
3 History of modern technical use
3.1 Chemical formulae
3.2 Early use in trademarks
3.3 Computer programming
3.4 Computer companies and products
3.5 Spread to mainstream usage
4 Current usage in computing
4.1 Programming and coding
4.2 Wiki link markup
4.3 Other uses
5 Readability studies
6 See also
7 References
8 External links
Variations and synonyms
The original name of the practice, used in media studies, grammars and the Oxford English Dictionary, was "medial capitals". Other synonyms include:
|
|
The earliest known occurrence of the term "InterCaps" on Usenet is in an April 1990 post to the group alt.folklore.computers by Avi Rappoport.[9] The earliest use of the name "CamelCase" occurs in 1995, in a post by Newton Love.[19] Love has since said, "With the advent of programming languages having these sorts of constructs, the humpiness of the style made me call it HumpyCase at first, before I settled on CamelCase. I had been calling it CamelCase for years. ... The citation above was just the first time I had used the name on USENET."[20]
Traditional use in natural language
In word combinations
The use of medial capitals as a convention in the regular spelling of everyday texts is rare, but is used in some languages as a solution to particular problems which arise when two words or segments are combined.
In Italian, pronouns can be suffixed to verbs, and because the honorific form of second-person pronouns is capitalized, this can produce a sentence like non ho trovato il tempo di risponderLe ("I have not found time to answer you" – where Le means "to you").
In German, the medial capital letter I, called Binnen-I, is sometimes used in a word like StudentInnen ("students") to indicate that both Studenten ("male students") and Studentinnen ("female students") are intended simultaneously. However, mid-word capitalisation does not conform to German orthography; the previous example could be correctly written using parentheses as Student(inn)en, analogous to "congress(wo)man" in English.[21]
In Irish, camelcase is used when an inflectional prefix is attached to a proper noun, for example i nGaillimh ("in Galway"), from Gaillimh ("Galway"); an tAlbanach ("the Scottish person"), from Albanach ("Scottish person"); and go hÉirinn ("to Ireland"), from Éire ("Ireland"). In recent Scots Gaelic orthography, a hyphen has been inserted: an t-Albannach.
This convention is also used by several written Bantu languages (e.g., kiSwahili, "Swahili language"; isiZulu, "Zulu language") and several indigenous languages of Mexico (e.g. Nahuatl, Totonacan, Mixe–Zoque, and some Oto-Manguean languages).
In Dutch, when capitalizing the digraph ij, both the letter I and the letter J are capitalized, for example in the countryname IJsland.
In English, medial capitals are usually only found in Scottish or Irish "Mac-" or "Mc-" names, where for example MacDonald, McDonald, and Macdonald are common spelling variants of the same name, and in Anglo-Norman "Fitz-" names, where for example both FitzGerald and Fitzgerald are found.
In their English style guide The King's English, first published in 1906, H. W. and F. G. Fowler suggested that medial capitals could be used in triple compound words where hyphens would cause ambiguity—the examples they give are KingMark-like (as against King Mark-like) and Anglo-SouthAmerican (as against Anglo-South American). However, they described the system as "too hopelessly contrary to use at present."[22]
In transliterations
In the scholarly transliteration of languages written in other scripts, medial capitals are used in similar situations. For example, in transliterated Hebrew, ha'Ivri means "the Hebrew person" or "the Jew" and b'Yerushalayim means "in Jerusalem". In Tibetan proper names like rLobsang, the "r" stands for a prefix glyph in the original script that functions as tone marker rather than a normal letter. Another example is tsIurku, a Latin transcription of the Chechen term for the capping stone of the characteristic Medieval defensive towers of Chechenia and Ingushetia; the capital letter "I" here denoting a phoneme distinct from the one transcribed as "i".
In abbreviations
Medial capitals are traditionally used in abbreviations to reflect the capitalization that the words would have when written out in full, for example in the academic titles PhD or BSc. In German, the names of statutes are abbreviated using embedded capitals, e.g. StGB (Strafgesetzbuch) for Criminal Code, PatG (Patentgesetz) for Patent Act, BVerfG (Bundesverfassungsgericht) for Federal Constitutional Court, or the very common GmbH (Gesellschaft mit beschränkter Haftung) for Company with Limited Liability. In this context, there can even be three or more "CamelCase" capitals, e.g. in TzBfG for Teilzeit- und Befristungsgesetz (Act on Part-Time and Limited Term Occupations). In French, camel case acronyms such as OuLiPo (1960) were favored for a time as alternatives to initialisms.
Camel case is often used to transliterate initialisms into alphabets where two letters may be required to represent a single character of the original alphabet, e.g., DShK from Cyrillic ДШК.
History of modern technical use
Chemical formulae
The first systematic and widespread use of medial capitals for technical purposes was the notation for chemical formulae invented by the Swedish chemist Jacob Berzelius in 1813. To replace the multitude of naming and symbol conventions used by chemists until that time, he proposed to indicate each chemical element by a symbol of one or two letters, the first one being capitalized. The capitalization allowed formulae like "NaCl" to be written without spaces and still be parsed without ambiguity.[23][24]
Berzelius' system continues to be used, augmented with three-letter symbols such as "Uue" for unconfirmed or unknown elements and abbreviations for some common substituents (especially in the field of organic chemistry, for instance "Et" for "ethyl-"). This has been further extended to describe the amino acid sequences of proteins and other similar domains.
Early use in trademarks
Since the early 20th century, medial capitals have occasionally been used for corporate names and product trademarks, such as
DryIce Corporation (1925) marketed the solid form of carbon dioxide (CO2) as "Dry Ice", thus leading to its common name.[25]
CinemaScope and VistaVision, rival widescreen movie formats (1953)
ShopKo (1962), retail stores, later renamed Shopko
MisteRogers, the Canadian (1962) version of Mister Rogers' Neighborhood[26]
- ChemGrass (1965), later renamed AstroTurf (1967)
ConAgra (1971), formerly Consolidated Mills
MasterCraft (1968), a sports boat manufacturer
AeroVironment (1971)
PolyGram (1972), formerly Grammophon-Philips Group.
United HealthCare (1977)[27]
MasterCard (1979), formerly Master Charge
SportsCenter (1979)
Computer programming
In the 1970s and 1980s, medial capitals were adopted as a standard or alternative naming convention for multi-word identifiers in several programming languages. The precise origin of the convention in computer programming has not yet been settled. A 1954 conference proceedings[28] occasionally informally referred to IBM's Speedcoding system as "SpeedCo". Christopher Strachey's paper on GPM (1965),[29] shows a program that includes some medial capital identifiers, including "NextCh
" and "WriteSymbol
".
Multiple-word descriptive identifiers with embedded spaces such as end of file
or char table
cannot be used in most programming languages because the spaces between the words would be parsed as delimiters between tokens. The alternative of running the words together as in endoffile
or chartable
is difficult to understand and possibly misleading; for example, chartable
is an English word (able to be charted).
Some early programming languages, notably Lisp (1958) and COBOL (1959), addressed this problem by allowing a hyphen ("-") to be used between words of compound identifiers, as in "END-OF-FILE": Lisp because it worked well with prefix notation (a Lisp parser would not treat a hyphen in the middle of a symbol as a subtraction operator) and COBOL because its operators were individual English words. This convention remains in use in these languages, and is also common in program names entered on a command line, as in Unix.
However, this solution was not adequate for mathematically-oriented languages such as FORTRAN (1955) and ALGOL (1958), which used the hyphen as an infix subtraction operator. FORTRAN ignored blanks altogether, so programmers could use embedded spaces in variable names. However, this feature was not very useful since the early versions of the language restricted identifiers to no more than six characters.
Exacerbating the problem, common punched card character sets of the time were uppercase only and lacked other special characters. It was only in the late 1960s that the widespread adoption of the ASCII character set made both lowercase and the underscore character _
universally available. Some languages, notably C, promptly adopted underscores as word separators, and identifiers such as end_of_file
are still prevalent in C programs and libraries (as well as in later languages influenced by C, such as Perl and Python). However, some languages and programmers chose to avoid underscores—among other reasons to prevent confusing them with whitespace—and adopted camel case instead.
Charles Simonyi, who worked at Xerox PARC in the 1970s and later oversaw the creation of Microsoft's Office suite of applications, invented and taught the use of Hungarian Notation, one version of which uses the lowercase letter(s) at the start of a (capitalized) variable name to denote its type. One account[citation needed] claims that the camel case style first became popular at Xerox PARC around 1978, with the Mesa programming language developed for the Xerox Alto computer. This machine lacked an underscore key (whose place was taken by a left arrow "←"), and the hyphen and space characters were not permitted in identifiers, leaving camel case as the only viable scheme for readable multiword names. The PARC Mesa Language Manual (1979) included a coding standard with specific rules for upper and lower camel case that was strictly followed by the Mesa libraries and the Alto operating system. Niklaus Wirth, the inventor of Pascal, came to appreciate camel case during a sabbatical at PARC and used it in Modula, his next programming language.[30]
The Smalltalk language, which was developed originally on the Alto, also uses camel case instead of underscores. This language became quite popular in the early 1980s, and thus may also have been instrumental in spreading the style outside PARC.
Computer companies and products
Whatever its origins in the computing field, the convention was used in the names of computer companies and their commercial brands, since the late 1970s — a trend that continues to this day:
- (1977) CompuServe
- (1978) WordStar
- (1979) VisiCalc
- (1982) MicroProse, WordPerfect
- (1983) NetWare
- (1984) LaserJet, MacWorks, PostScript
- (1985) PageMaker
- (1987) ClarisWorks, HyperCard, PowerPoint
- (1990) WorldWideWeb, later renamed Nexus
Spread to mainstream usage
In the 1980s and 1990s, after the advent of the personal computer exposed hacker culture to the world, camel case then became fashionable for corporate trade names in non-computer fields as well. Mainstream usage was well established by 1990:
- (1980) EchoStar
- (1984) BellSouth
- (1985) EastEnders
- (1986) SpaceCamp
- (1990) HarperCollins, SeaTac
- (1998) PricewaterhouseCoopers, merger of Price Waterhouse and Coopers
During the dot-com bubble of the late 1990s, the lowercase prefixes "e" (for "electronic") and "i" (for "Internet",[31] "information", "intelligent", etc.) became quite common, giving rise to names like Apple's iMac and the eBox software platform.
In 1998, Dave Yost suggested that chemists use medial capitals to aid readability of long chemical names, e.g. write AmidoPhosphoRibosylTransferase instead of amidophosphoribosyltransferase.[32] This usage was not widely adopted.
Camelcase is sometimes used for abbreviated names of certain neighborhoods, e.g. New York City neighborhoods SoHo (South of Houston Street) and TriBeCa (Triangle Below Canal Street) and San Francisco's SoMa (South of Market). Such usages erode quickly, so the neighborhoods are now typically rendered as Soho, Tribeca, and Soma.
Internal capitalization has also been used for other technical codes like HeLa (1983).
Current usage in computing
Programming and coding
The use of medial caps for compound identifiers is recommended by the coding style guidelines of many organizations or software projects. For some languages (such as Mesa, Pascal, Modula, Java and Microsoft's .NET) this practice is recommended by the language developers or by authoritative manuals and has therefore become part of the language's "culture".
Style guidelines often distinguish between upper and lower camel case, typically specifying which variety should be used for specific kinds of entities: variables, record fields, methods, procedures, types, etc. These rules are sometimes supported by static analysis tools that check source code for adherence.
The original Hungarian notation for programming, for example, specifies that a lowercase abbreviation for the "usage type" (not data type) should prefix all variable names, with the remainder of the name in upper camel case; as such it is a form of lower camel case.
Programming identifiers often need to contain acronyms and initialisms that are already in uppercase, such as "old HTML file". By analogy with the title case rules, the natural camel case rendering would have the abbreviation all in uppercase, namely "oldHTMLFile". However, this approach is problematic when two acronyms occur together (e.g., "parse DBM XML" would become "parseDBMXML") or when the standard mandates lower camel case but the name begins with an abbreviation (e.g. "SQL server" would become "sQLServer"). For this reason, some programmers prefer to treat abbreviations as if they were lowercase words and write "oldHtmlFile", "parseDbmXml" or "sqlServer". However, this can make it harder to recognise that a given word is intended as an acronym.[33]
Wiki link markup
Camel case is used in some wiki markup languages for terms that should be automatically linked to other wiki pages. This convention was originally used in Ward Cunningham's original wiki software, WikiWikiWeb, and can be activated in most other wikis. Some wiki engines such as TiddlyWiki, Trac and PmWiki make use of it in the default settings, but usually also provide a configuration mechanism or plugin to disable it. Wikipedia formerly used camel case linking as well, but switched to explicit link markup using square brackets and many other wiki sites have done the same. Some wikis that do not use camel case linking may still use the camel case as a naming convention, such as AboutUs.
Other uses
The NIEM registry requires that XML data elements use upper camel case and XML attributes use lower camel case.
Most popular command-line interfaces and scripting languages cannot easily handle file names that contain embedded spaces (usually requiring the name to be put in quotes). Therefore, users of those systems often resort to camel case (or underscores, hyphens and other "safe" characters) for compound file names like MyJobResume.pdf.
Microblogging and social networking sites that limit the number of characters in a message are potential outlets for medial capitals. Using camel case between words reduces the number of spaces, and thus the number of characters, in a given message, allowing more content to fit into the limited space. Hashtags, especially long ones, often use camel case to maintain readability (e.g. #CollegeStudentProblems is easier to read than #collegestudentproblems).
In website URLs, spaces are percent-encoded as "%20", making the address longer and less human readable. By omitting spaces, camel case does not have this problem.
Readability studies
Camel case has been criticised as negatively impacting readability due to the removal of spaces and uppercasing of every word.[34]
A 2009 study comparing snake case to camel case found that camel case identifiers could be recognised with higher accuracy among both programmers and non-programmers, and that programmers already trained in camel case were able to recognise those identifiers faster than underscored snake-case identifiers.[35]
A 2010 follow-up study, under the same conditions but using an improved measurement method with use of eye-tracking equipment, indicates: "While results indicate no difference in accuracy between the two styles, subjects recognize identifiers in the underscore style more quickly."[36]
See also
- All caps
- Capitalization
- Caps lock
- Shift key
- Small caps
- Unicase
References
^ "Naming Conventions". Scala. Retrieved 5 December 2012..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}
^ ab "Capitalization Styles - .NET Framework 1.1". Retrieved 5 December 2012.
^ "Camel Case". Retrieved 10 March 2016.
^ "dromedary case". Urban Dictionary. Retrieved 18 January 2019.
^ abc Hayes, Brian (July – August 2006). "The Semicolon Wars". American Scientist Online: The Magazine of Sigma XI. The Scientific Research Society. art. pg. 2.
^ C# Coding Standards and Guidelines Archived 11 April 2008 at the Wayback Machine at Purdue University College of Technology
^ "CamelCase@Everything2.com". Everything2.com. Retrieved 4 June 2010.
^ ab Style Guide for Python Code at www.python.org
^ ab "compoundName". 29 March 1990. See discussion thread at alt.folklore.computers
^ "[#APF-1088] If class name has embedded capitals, AppGen code fails UI tests and generated hyperlinks are incorrect. – AppFuse JIRA". Issues.appfuse.org. Archived from the original on 25 June 2017. Retrieved 4 June 2010.
^ ASP Naming Conventions, by Nannette Thacker (05/01/1999)
^ Iverson, Cheryl; Christiansen, Stacy; Flanagin, Annette; Fontanarosa, Phil B.; Glass, Richard M.; Gregoline, Brenda; Lurie, Stephen J.; Meyer, Harriet S.; Winker, Margaret A.; Young, Rozanne K., eds. (2007). AMA Manual of Style (10th ed.). Oxford, Oxfordshire: Oxford University Press. ISBN 978-0-19-517633-9.
^ Hult, Christine A.; Huckin, Thomas N. "The Brief New Century Handbook – Rules for internal capitalization". Pearson Education. Archived from the original on 7 April 2012.
^ "Brad Abrams: History around Pascal Casing and Camel Casing". Blogs.msdn.com. 3 February 2004. Retrieved 4 January 2014.
^ "Pascal Case". C2.com. 27 September 2012. Retrieved 4 January 2014.
^ "NET Framework General Reference Capitalization Styles". MSDN2.microsoft.com. Retrieved 4 January 2014.
^ "WikiWord". Twiki.org. Retrieved 4 June 2010.
^ "Wiki Case". C2.com. 8 February 2010. Retrieved 4 June 2010.
^ Newton Love (12 September 1995). "I'm happy again! – comp.os.os2.advocacy | Google Groups". Groups.google.com. Retrieved 23 May 2009.
^ Newton Love[dead link]
^ Richtiges und gutes Deutsch: Das Wörterbuch der sprachlichen Zweifelsfälle. Duden (in German). 9 (7th ed.). Mannheim: Bibliographisches Institut. 2011. p. 418. ISBN 978-3411040971.
^
Fowler, Henry W.; Fowler, Francis G. (1908). "Chapter IV. Punctuation – Hyphens". The King's English (2nd ed.). Oxford. Retrieved 19 December 2009.
^ Jöns Jacob Berzelius (1813). Essay on the Cause of Chemical Proportions and on Some Circumstances Relating to Them: Together with a Short and Easy Method of Expressing Them. Annals of Philosophy 2, 443-454, 3, 51-52; (1814) 93-106, 244-255, 353-364.
^ Henry M. Leicester & Herbert S. Klickstein, eds. 1952, A Source Book in Chemistry, 1400-1900 (Cambridge, MA: Harvard)
^ The Trade-mark Reporter. United States Trademark Association. 1930. ISBN 1-59888-091-8.
^ ""MisteRogers" (1962)". Imdb.com. Retrieved 4 January 2014.
^ "Our History". unitedhealthgroup.com. Retrieved 15 May 2019.
^ ""Resume of Session 8". Digital Computers: Advanced Coding Techniques. Summer Session 1954, Massachusetts Institute of Technology" (PDF). 1954. p. 8–6. Retrieved 4 January 2014.
^ Strachey, Christopher (October 1965). "A General Purpose Macrogenerator". Computer Journal. 8 (3): 225–241. doi:10.1093/comjnl/8.3.225.
^ Niklaus Wirth (2007). "Modula-2 and Oberon". Proc. 3rd Conf. History of Programming Languages. San Diego: 3–1–3–10. CiteSeerX 10.1.1.91.1447. doi:10.1145/1238844.1238847. ISBN 9781595937667.
^ Farhad Manjoo (30 April 2002). "Grads Want to Study on EMacs, Too". Wired.com. Retrieved 4 June 2010.
^ Feedback, 20 June 1998 Vol 158 No 2139 New Scientist 20 June 1998
^ Dave Binkley; Marcia Davis; Dawn Lawrie; Christopher Morrell (2009). "To CamelCase or Under_score". IEEE 17th International Conference on Program Comprehension, 2009. ICPC '09. IEEE: 158–167. CiteSeerX 10.1.1.158.9499.In terms of camel-cased identifiers, this has a greater impact on identifiers that include short words and especially acronyms. For example, consider the acronym ID found in the identifier kIOuterIIDPath. Because of the run of uppercase letters, the task of reading kIOuterIIDPath, in particular the identification of the word ID, is more difficult.
^ Caleb Crain (23 November 2009). "Against Camel Case". New York Times.
^ Dave Binkley; Marcia Davis; Dawn Lawrie; Christopher Morrell (2009). "To CamelCase or Under_score". IEEE 17th International Conference on Program Comprehension, 2009. ICPC '09. IEEE: 158–167. CiteSeerX 10.1.1.158.9499.The experiment builds on past work of others who study how readers of natural language perform such tasks. Results indicate that camel casing leads to higher accuracy among all subjects regardless of training, and those trained in camel casing are able to recognize identifiers in the camel case style faster than identifiers in the underscore style.
^ Bonita Sharif; Jonathan I. Maletic (2010). "An Eye Tracking Study on camelCase and under_score Identifier Styles". IEEE 18th International Conference on Program Comprehension, 20010. ICPC '10. IEEE: 196–205. doi:10.1109/ICPC.2010.41. ISBN 978-1-4244-7604-6. (download PDF).An empirical study to determine if identifier-naming conventions (i.e., camelCase and under_score) affect code comprehension is presented. An eye tracker is used to capture quantitative data from human subjects during an experiment. The intent of this study is to replicate a previous study published at ICPC 2009 (Binkley et al.) that used a timed response test method to acquire data. The use of eye-tracking equipment gives additional insight and overcomes some limitations of traditional data gathering techniques. Similarities and differences between the two studies are discussed. One main difference is that subjects were trained mainly in the underscore style and were all programmers. While results indicate no difference in accuracy between the two styles, subjects recognize identifiers in the underscore style more quickly.
External links
Wikimedia Commons has media related to Camel case. |
Look up camel case in Wiktionary, the free dictionary. |
Examples and history of CamelCase, also WordsSmashedTogetherLikeSo
- .NET Framework General Reference Capitalization Styles
What's in a nAME(cq)?, by Bill Walsh, at The Slot
The Science of Word Recognition, by Kevin Larson, Advanced Reading Technology, Microsoft Corporation- Convert text
- Convert text to CamelCase
- OASIS Cover Pages: CamelCase for Naming XML-Related Components
- Convert text to CamelCase, Title Case, Uppercase and lowercase
Categories:
- Capitalization
- Naming conventions
- Typography
(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.728","walltime":"0.956","ppvisitednodes":{"value":2581,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":95864,"limit":2097152},"templateargumentsize":{"value":2315,"limit":2097152},"expansiondepth":{"value":15,"limit":40},"expensivefunctioncount":{"value":7,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":91217,"limit":5000000},"entityaccesscount":{"value":3,"limit":400},"timingprofile":["100.00% 822.880 1 -total"," 42.97% 353.590 1 Template:Reflist"," 20.35% 167.449 18 Template:Cite_web"," 19.89% 163.702 8 Template:Lang"," 9.42% 77.504 5 Template:Cite_journal"," 7.39% 60.786 3 Template:Fix"," 7.15% 58.810 2 Template:Citation_needed"," 6.37% 52.446 3 Template:Navbox"," 6.23% 51.288 1 Template:Typography_terms"," 5.88% 48.412 1 Template:Commons_category"]},"scribunto":{"limitreport-timeusage":{"value":"0.428","limit":"10.000"},"limitreport-memusage":{"value":18030917,"limit":52428800}},"cachereport":{"origin":"mw1278","timestamp":"20190819143035","ttl":2592000,"transientcontent":false}}});});{"@context":"https://schema.org","@type":"Article","name":"Camel case","url":"https://en.wikipedia.org/wiki/Camel_case","sameAs":"http://www.wikidata.org/entity/Q18710","mainEntity":"http://www.wikidata.org/entity/Q18710","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https://www.wikimedia.org/static/images/wmf-hor-googpub.png"}},"datePublished":"2001-10-11T19:58:54Z","dateModified":"2019-08-19T14:30:36Z","image":"https://upload.wikimedia.org/wikipedia/commons/c/c8/CamelCase_new.svg","headline":"special manner to write using capital (uppercase) letters inside words between lowercase letters for particular purposes (for example to make word boundaries visible after merging several words to one string)"}(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":90,"wgHostname":"mw1328"});});