Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Camel case

From Wikipedia, the free encyclopedia
(Redirected fromCamel case (programming))
Writing words with internal uppercase letters

Camel case is named after the hump of its protruding capital letter, similar to the hump of commoncamels.

The writing formatcamel case (sometimes stylizedautologically ascamelCase orCamelCase, also known ascamel caps or more formally asmedial capitals) is the practice of writing phrases without spaces or punctuation and withcapitalized words. The format indicates the first word starting with either case, then the following words having an initial uppercase letter. Common examples includeYouTube,[1]PowerPoint,HarperCollins,FedEx,iPhone,eBay,[2] andLaGuardia.[3] Camel case is often used as anaming convention in computer programming. It is also sometimes used in online usernames such asJohnSmith, and to make multi-worddomain names more legible, for example in promotingEasyWidgetCompany.com.

The more specific termsPascal case andupper camel case refer to a joined phrase where the first letter of each word is capitalized, including the initial letter of the first word. Similarly,lower camel case (also known asdromedary case) requires an initial lowercase letter. Some people and organizations, notablyMicrosoft, use the termcamel 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.[5][4][6] For clarity, this article leaves the definition of camel case ambiguous with respect to capitalization, and uses the more specific terms when necessary.

Camel case is distinct from several other styles:title case, which capitalizes all words but retains the spaces between them;Tall Man lettering, which uses capitals to emphasize the differences between similar-looking product names such aspredniSONE andpredniSOLONE; andsnake case, which usesunderscores interspersed with lowercase letters (sometimes with the first letter capitalized). A combination of snake and camel case (identifiersWritten_Like_This) is recommended in theAda 95 style guide.[7]

Variations and synonyms

[edit]

The practice has various names, including:

History

[edit]

The earliest known occurrence of the term "InterCaps" on Usenet is in an April 1990 post to the groupalt.folklore.computers by Avi Rappoport.[22] The earliest use of the name "Camel Case" occurs in 1995, in a post by Newton Love.[23] 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."[24] The term "Pascal Case" was coined in design discussions for the.NET Framework, first released in 2002.[25]

Traditional use in natural language

[edit]

In word combinations

[edit]

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 likenon ho trovato il tempo di risponderLe ("I have not found time to answer you" – whereLe means "to you").

In German, many nouns denoting people lack a gender-neutral form, which is why often, especially colloquially, the male form of a noun is used generically to address everyone, regardless of their gender (this is calledgenerisches Maskulinum in German). Another, more recent approach is using the medial capital letterI, calledBinnen-I, in written text for words likeStudentInnen ("students") to indicate that bothStudenten ("male students") andStudentinnen ("female students") are referred to simultaneously. However, mid-word capitalization does not conform to theGerman orthography prescribed by theRat für deutsche Rechtschreibung (Council for German Orthography) apart from proper names likeMcDonald. In order to adhere to orthography, the introductory “students” example could be corrected usingparentheses toStudent(inn)en, which is analogous to writing "congress(wo)men" in English.[26]

InIrish, camel case is used when an inflectional prefix is attached to a proper noun, for examplei nGaillimh ("inGalway"), fromGaillimh ("Galway");an tAlbanach ("the Scottish person"), fromAlbanach ("Scottish person"); andgo hÉirinn ("to Ireland"), fromÉire ("Ireland"). In recentScottish Gaelic orthography, a hyphen has been inserted:an t-Albannach.

This convention of inflectional prefix is also used by several writtenBantu languages (e.g.isiZulu, "Zulu language") and several indigenouslanguages of Mexico (e.g.Nahuatl,Totonacan,Mixe–Zoque, and someOto-Manguean languages).

InDutch, when capitalizing the digraphij, both the letterI and the letterJ are capitalized, for example in the country nameIJsland ("Iceland").

InChinesepinyin, camel case is sometimes used for place names so that readers can more easily pick out the different parts of the name. For example, places like Beijing (北京), Qinhuangdao (秦皇岛), and Daxing'anling (大兴安岭) can be written asBeiJing,QinHuangDao, andDaXingAnLing respectively, with the number of capital letters equaling the number ofChinese characters. Writing word compounds only by the initial letter of each character is also acceptable in some cases, so Beijing can be written asBJ, Qinghuangdao asQHD, and Daxing'anling as DXAL.

In English, medial capitals are usually only found in Scottish or Irish "Mac-" or "Mc-" patronymic names, where for exampleMacDonald, McDonald, andMacdonald are common spelling variants ofMacDonald (son of Dòmhnall), and in Anglo-Norman "Fitz-" names, where for example bothFitzGerald andFitzgerald (son of Gerald) are found.

In their English style guideThe King's English, first published in 1906,H. W. andF. G. Fowler suggested that medial capitals could be used in triplecompound words wherehyphens would cause ambiguity—the examples they give areKingMark-like (as againstKing Mark-like) andAnglo-SouthAmerican (as againstAnglo-South American). However, they described the system as "too hopelessly contrary to use at present".[27]

Some French names also uses CamelCase names, such asLeBeau (surname),LaRue,DeMordaunt, and Italian namesDeRose/DeRosa.

In transliterations

[edit]

In the scholarly transliteration of languages written in other scripts, medial capitals are used in similar situations. For example, in transliteratedHebrew,haIvri means "the Hebrew person" or "the Jew" andb'Yerushalayim means "in Jerusalem". InTibetan proper names likerLobsang, the "r" stands for a prefix glyph in the original script that functions astone marker rather than a normal letter. Another example istsIurku, a Latin transcription of theChechen term for the capping stone of the characteristicMedieval defensive towers ofChechnya andIngushetia; the letter "I" (palochka) is not actually capital, denoting aphoneme distinct from the one transcribed as "i".

In abbreviations

[edit]

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 orBSc. A more recent example isNaNoWriMo, a contraction of National Novel Writing Month and the designation for both the annual event and the nonprofit organization that runs it. In German, the names of statutes are abbreviated using embedded capitals, e.g. StGB forStrafgesetzbuch (Criminal Code), PatG forPatentgesetz (Patent Act), BVerfG forBundesverfassungsgericht (Federal Constitutional Court), or the very common GmbH, forGesellschaft mit beschränkter Haftung (private limited company). In this context, there can even be three or more camel case capitals, e.g. in TzBfG forTeilzeit- und Befristungsgesetz (Act on Part-Time and Limited Term Occupations). In French, camel case acronyms such asOuLiPo (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 fromCyrillic ДШК.

History of modern technical use

[edit]

Chemical formulas

[edit]

The first systematic and widespread use of medial capitals for technical purposes was the notation for chemical formulas invented by the Swedish chemistJacob 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 formulas like "NaCl" to be written without spaces and still be parsed without ambiguity.[28][29]

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 theamino acid sequences ofproteins and other similar domains.

Early use in trademarks

[edit]

Since the early 20th century, medial capitals have occasionally been used forcorporate names and product trademarks, such as

Computer programming

[edit]
This sectionpossibly containsoriginal research. Pleaseimprove it byverifying the claims made and addinginline citations. Statements consisting only of original research should be removed.(May 2011) (Learn how and when to remove this message)

In the 1970s and 1980s, medial capitals were adopted as a standard or alternativenaming convention for multi-wordidentifiers in severalprogramming languages. The precise origin of the convention in computer programming has not yet been settled. A 1954 conference proceedings[33] occasionally informally referred toIBM'sSpeedcoding system as "SpeedCo".Christopher Strachey's paper onGPM (1965),[34] shows a program that includes some medial capital identifiers, including "NextCh" and "WriteSymbol" (This was most likely the influence of theCPL language, of which Strachey was one of the designers)

Multiple-word descriptive identifiers with embedded spaces such asend of file orchar table cannot be used in most programming languages because the spaces between the words would beparsed asdelimiters betweentokens. The alternative of running the words together as inendoffile orchartable is difficult to understand and possibly misleading; for example,chartable is an English word (able to be charted), whereascharTable means a table ofchars .

Some early programming languages, notablyLisp (1958) andCOBOL (1959), addressed this problem by allowing ahyphen ("-") 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 acommand line, as in Unix.

However, this solution was not adequate for mathematically oriented languages such asFORTRAN (1955) andALGOL (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, commonpunched 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 theASCII character set made both lowercase and theunderscore character_ universally available. Some languages, notablyC, promptly adopted underscores as word separators, and identifiers such asend_of_file are still prevalent in C programs and libraries (as well as in later languages influenced by C, such asPerl andPython). However, some languages and programmers chose to avoid underscores and adopted camel case instead.

Charles Simonyi, who worked atXerox PARC in the 1970s and later oversaw the creation of Microsoft's Office suite of applications, invented and taught the use ofHungarian 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 theMesa programming language developed for theXerox 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 ofPascal, came to appreciate camel case during a sabbatical at PARC and used it inModula, his next programming language.[35]

TheSmalltalk 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.

Upper camel case (or "Pascal case") is used inWolfram Language in computer algebraic systemMathematica for predefined identifiers. User defined identifiers should start with a lower case letter. This avoids the conflict between predefined and user defined identifiers both today and in all future versions.

C# variable names are recommended to follow the lower camel case convention.[36]

Computer companies and products

[edit]

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:

Spread to mainstream usage

[edit]

In the 1980s and 1990s, after the advent of the personal computer exposed hacker culture to the world, camel case then became fashionable for corporatetrade names in non-computer fields as well. Mainstream usage was well established by 1990:

During thedot-com bubble of the late 1990s, the lowercase prefixes "e" (for "electronic") and "i" (for "Internet",[37] "information", "intelligent", etc.) became quite common, giving rise to names likeApple'siMac and theeBox software platform.

In 1998, Dave Yost suggested that chemists use medial capitals to aid readability of long chemical names, e.g. write AmidoPhosphoRibosylTransferase instead ofamidophosphoribosyltransferase.[38] This usage was not widely adopted.

Camel case is sometimes used for abbreviated names of certain neighborhoods, e.g. New York City neighborhoodsSoHo (South ofHouston Street) andTriBeCa (TriangleBelowCanal Street) and San Francisco'sSoMa (South ofMarket). Such usages erode quickly, so the neighborhoods are now typically rendered asSoho,Tribeca, andSoma.

Internal capitalization has also been used for other technical codes likeHeLa (1983).

Current usage in computing

[edit]

Programming and coding

[edit]
Main article:Naming convention (programming)

The use of medial caps for compound identifiers is recommended by thecoding style guidelines of many organizations or software projects. For some languages (such asMesa,Pascal,Modula,Java andMicrosoft'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,functions,subroutines,types, etc. These rules are sometimes supported bystatic analysis tools that checksource code for adherence.

The originalHungarian 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 containacronyms 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 words and write "oldHtmlFile", "parseDbmXml" or "sqlServer".[39] However, this can make it harder to recognize that a given word is intended as an acronym.[40]

Difficulties arise when identifiers have different meaning depending only on the case, as can occur with mathematical functions or trademarks. In this situation changing the case of an identifier might not be an option and an alternative name need be chosen.

Wiki link markup

[edit]

Camel case is used in somewiki markup languages for terms that should be automatically linked to otherwiki pages. This convention was originally used inWard Cunningham's originalwiki software,WikiWikiWeb,[41] and can be activated in most other wikis. Some wiki engines such asTiddlyWiki,Trac andPmWiki make use of it in the default settings, but usually also provide a configuration mechanism orplugin to disable it. Wikipedia formerly used camel case linking as well, but switched to explicit link markup usingsquare brackets[42] and many other wiki sites have done the same.MediaWiki, for example,does not support camel case for linking. Some wikis that do not use camel case linking may still use the camel case as a naming convention, such asAboutUs.

Other uses

[edit]

TheNIEM registry requires thatXML data elements use upper camel case and XML attributes use lower camel case.

Most popularcommand-line interfaces andscripting 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 likeMyJobResume.pdf.

Social media accessibility

[edit]

Microblogging andsocial networking services 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);[43] this practice improvesaccessibility asscreen readers recognize CamelCase in parsing composite hashtags.[44]

In website URLs, spaces arepercent-encoded as "%20", making the address longer and lesshuman readable. By omitting spaces, camel case does not have this problem.

Readability studies

[edit]

Camel case has been criticized as negatively impacting readability due to the removal of spaces and uppercasing of every word.[45]

A 2009 study of 135 subjects comparingsnake case (underscored identifiers) to camel case found that camel case identifiers were recognized with higher accuracy among all subjects. Subjects recognized snake case identifiers more quickly than camel case identifiers. Training in camel case sped up camel case recognition and slowed snake case recognition, although this effect involved coefficients with highp-values. The study also conducted a subjective survey and found that non-programmers either preferred underscores or had no preference, and 38% of programmers trained in camel case stated a preference for underscores. However, these preferences had no statistical correlation to accuracy or speed when controlling for other variables.[46]

A 2010 follow-up study used a similar study design with 15 subjects consisting of expert programmers trained primarily in snake case. It used a static rather than animated stimulus and found perfect accuracy in both styles except for one incorrect camel case response. Subjects recognized identifiers in snake case more quickly than camel case. The study used eye-tracking equipment and found that the difference in speed for its subjects was primarily due to the fact that average duration offixations for camel-case was significantly higher than that of snake case for 3-part identifiers. The survey recorded a mixture of preferred identifier styles but again there was no correlation of preferred style to accuracy or speed.[47]

See also

[edit]

References

[edit]
  1. ^Fogarty, Mignon (27 October 2009).The Grammar Devotional: Daily Tips for Successful Writing from Grammar Girl. St. Martin's Publishing Group. p. 14.ISBN 978-1-4299-6440-1.
  2. ^Brown, Adam (21 September 2018).Understanding and Teaching English Spelling: A Strategic Guide. Routledge. pp. 173–174.ISBN 978-1-351-62186-1.
  3. ^Dreyer, Benjamin (4 August 2020).Dreyer's English: An Utterly Correct Guide to Clarity and Style. Random House Publishing Group. p. 228.ISBN 978-0-8129-8571-9.
  4. ^ab"Capitalization Styles - .NET Framework 1.1". 17 November 2006. Retrieved5 December 2012.
  5. ^"Naming Conventions". Scala. Retrieved5 December 2012.
  6. ^"Camel Case". Retrieved10 March 2016.
  7. ^"Ada 95 Quality and Style Guide". October 1995. Section 3.1.3. Retrieved25 January 2020.
  8. ^C# Coding Standards and GuidelinesArchived 11 April 2008 at theWayback Machine atPurdue University College of Technology
  9. ^"CamelCase@Everything2.com".Everything2.com. Retrieved4 June 2010.
  10. ^abStyle Guide for Python Code atwww.python.org
  11. ^Feldman, Ian (29 March 1990)."compoundNames".Newsgroupalt.folklore.computers.Usenet: 3230@draken.nada.kth.se.
  12. ^"[#APF-1088] If class name has embedded capitals, AppGen code fails UI tests and generated hyperlinks are incorrect. – AppFuse JIRA".Issues.appfuse.org. Archived fromthe original on 25 June 2017. Retrieved4 June 2010.
  13. ^ASP Naming ConventionsArchived 8 April 2009 at theWayback Machine, by Nannette Thacker (05/01/1999)
  14. ^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.
  15. ^Hult, Christine A.; Huckin, Thomas N."The Brief New Century Handbook – Rules for internal capitalization".Pearson Education. Archived fromthe original on 7 April 2012.
  16. ^"What is the name for a word containing two capital letters (like WordPad)?".AskOxford. Internet Archive. Archived fromthe original on 25 October 2008. Retrieved12 June 2022.
  17. ^"Brad Abrams: History around Pascal Casing and Camel Casing".learn.microsoft.com. 3 February 2004. Retrieved21 October 2024.
  18. ^"Pascal Case".C2.com. 27 September 2012. Retrieved4 January 2014.
  19. ^"NET Framework General Reference Capitalization Styles".MSDN2. 17 November 2006. Retrieved4 January 2014.
  20. ^"WikiWord".Twiki.org. Archived fromthe original on 19 June 2010. Retrieved4 June 2010.
  21. ^"Wiki Case".C2.com. 8 February 2010. Retrieved4 June 2010.
  22. ^Rappoport, Avi (3 April 1990)."compoundNames".Newsgroupalt.folklore.computers.
  23. ^Newton Love (12 September 1995)."I'm happy again! – comp.os.os2.advocacy | Google Groups".Groups.google.com. Retrieved23 May 2009.
  24. ^"Newton Love".Saint Louis Unix Users Group.[dead link]
  25. ^Abrams, Brad (3 February 2004)."History around Pascal Casing and Camel Casing".learn.microsoft.com. Retrieved1 February 2025.
  26. ^Richtiges und gutes Deutsch: Das Wörterbuch der sprachlichen Zweifelsfälle. Duden (in German). Vol. 9 (7th ed.). Mannheim: Bibliographisches Institut. 2011. p. 418.ISBN 978-3411040971.
  27. ^Fowler, Henry W.;Fowler, Francis G. (1908)."Chapter IV. Punctuation – Hyphens".The King's English (2nd ed.).Oxford. Archived fromthe original on 31 December 2009. Retrieved19 December 2009.
  28. ^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.
  29. ^Henry M. Leicester & Herbert S. Klickstein, eds. 1952,A Source Book in Chemistry, 1400-1900 (Cambridge, MA: Harvard)
  30. ^The Trade-mark Reporter.United States Trademark Association. 1930.ISBN 1-59888-091-8.{{cite book}}:ISBN / Date incompatibility (help)
  31. ^"Mister Rogers Neighborhood Season 1 (Episode 4)". Retrieved21 June 2022.
  32. ^"Our History".unitedhealthgroup.com. Archived fromthe original on 1 May 2019. Retrieved15 May 2019.
  33. ^""Resume of Session 8". Digital Computers: Advanced Coding Techniques. Summer Session 1954, Massachusetts Institute of Technology"(PDF). 1954. pp. 8–6. Archived fromthe original(PDF) on 29 February 2012. Retrieved4 January 2014.
  34. ^Strachey, Christopher (October 1965)."A General Purpose Macrogenerator".Computer Journal.8 (3):225–241.doi:10.1093/comjnl/8.3.225.
  35. ^Niklaus Wirth (2007)."Modula-2 and Oberon".Proceedings of the third ACM SIGPLAN conference on History of programming languages.HOPL III - San Diego. pp. 3-1 –3-10.CiteSeerX 10.1.1.91.1447.doi:10.1145/1238844.1238847.ISBN 9781595937667.S2CID 1918928.
  36. ^wwlpublish."Declare variables - Training".learn.microsoft.com. Retrieved29 August 2023.
  37. ^Farhad Manjoo (30 April 2002)."Grads Want to Study on EMacs, Too".Wired.com. Retrieved4 June 2010.
  38. ^Feedback, 20 June 1998 Vol 158 No 2139New Scientist 20 June 1998
  39. ^"Google Java Style Guide".google.github.io. Retrieved2 November 2022.
  40. ^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.
  41. ^Andrew Lih,The Wikipedia Revolution: How a Bunch of Nobodies Created the World's Greatest Encyclopedia (New York: Hyperion, 2009), pp. 57–58.
  42. ^Lih,The Wikipedia Revolution, pp. 62–63, 67.
  43. ^Blackwood, Jessica; Brown, Kate."Accessible Use of CamelCase and Structuring Posts".Accessible Digital Content Training. McMaster University.
  44. ^"Social Media Accessibility Guidelines". Princeton University. 2022. Archived fromthe original on 12 October 2022. Retrieved12 October 2022.
  45. ^Caleb Crain (23 November 2009)."Against Camel Case".New York Times.
  46. ^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.
  47. ^Bonita Sharif; Jonathan I. Maletic (2010). "An Eye Tracking Study on camelCase and under_score Identifier Styles".2010 IEEE 18th International Conference on Program Comprehension. IEEE. pp. 196–205.CiteSeerX 10.1.1.421.6137.doi:10.1109/ICPC.2010.41.ISBN 978-1-4244-7604-6.S2CID 14170019. (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

[edit]
Wikimedia Commons has media related toCamel case.
Look upcamel case in Wiktionary, the free dictionary.
Page
Paragraph
Character
Typeface anatomy
Capitalization
Visual distinction
Horizontal aspects
Vertical aspects
Typeface
classifications
Roman type
Blackletter type
Gaelic type
Specialist
Punctuation (List)
Typesetting
Typographic units
Digital typography
Typography in other
writing systems
Related articles
Related template
Retrieved from "https://en.wikipedia.org/w/index.php?title=Camel_case&oldid=1291468814"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp