13 lines
2.4 KiB
HTML
13 lines
2.4 KiB
HTML
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>camelCase</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../C.html" title="C"/><link rel="previous" href="Camel-Book.html" title="Camel Book"/><link rel="next" href="camelCasing.html" title="camelCasing"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">camelCase</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="Camel-Book.html">Prev</a> </td><th width="60%" align="center">C</th><td width="20%" align="right"> <a accesskey="n" href="camelCasing.html">Next</a></td></tr></table><hr/></div><dt><a id="camelCase"/><dt xmlns="" id="camelCase"><b>camelCase</b></dt></dt><dd><p>A variable in a programming language is sait to be camelCased when
|
||
all words but the first are capitalized. This practice contrasts with the
|
||
C tradition of either running syllables together or marking syllable breaks
|
||
with underscores; thus, where a C programmer would write
|
||
<span class="symbol">thisverylongname</span> or <span class="symbol">this_very_long_name</span>,
|
||
the camelCased version would be <span class="symbol">thisVeryLongName</span>. This
|
||
practice is common in certain language communities (formerly Pascal; today
|
||
Java and Visual Basic) and tends to be associated with object-oriented
|
||
programming.</p><p>Compare <a href="../B/BiCapitalization.html"><i class="glossterm">BiCapitalization</i></a>; but where that
|
||
practice is primarily associated with marketing, camelCasing is not aimed
|
||
at impressing anybody, and hackers consider it respectable.</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="Camel-Book.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../C.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="camelCasing.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Camel Book </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> camelCasing</td></tr></table></div></body></html>
|