Editing
Naming conventions
Jump to navigation
Jump to search
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
Note: Created with the help of Bard + ChatGPT on 2023-12-30. {| class="wikitable" |- ! name ! rules ! examples ! usage |- | 1. Camel Case (lowerCamelCase) | Starts with a lowercase letter. Subsequent words are capitalized, without spaces or separators | <code>firstName</code>, <code>calculateArea</code>, <code>isRunning</code> | variables, functions, methods in many languages (Java, Python, JavaScript, etc.) |- | 2. Pascal Case (UpperCamelCase) | All words are capitalized, without spaces or separators | <code>FullName</code>, <code>CalculateArea</code>, <code>IsRunning</code> | class names, modules, namespaces in languages like Java, C#, Python, and others |- | 3. Snake Case (snake_case) | All letters are lowercase. Words are separated by underscores (_). | <code>first_name</code>, <code>calculate_area</code>, <code>is_running</code> | variables, functions in languages like Python, Ruby, C++, and for file paths and URLs |- | 4. Kebab Case (kebab-case) | All letters are lowercase. Words are separated by hyphens (-). | <code>first-name</code>, <code>calculate-area</code>, <code>is-running</code> | command-line arguments, file names, and URLs |- | 5. Macro Case (MACRO_CASE) | All letters are uppercase. Words are separated by underscores (_). | <code>FIRST_NAME</code>, <code>CALCULATE_AREA</code>, <code>IS_RUNNING</code> | constants, macros, and environment variables |- | 6. Train Case (Train-Case) | Words are capitalized, separated by hyphens (-) | <code>First-Name</code>, <code>Calculate-Area</code>, <code>Is-Running</code> | also known as HTTP-Header-Case, file names, URLs |} ''[https://delyan.org/case.html Original page on delyan.org]''
Summary:
Please note that all contributions to Raychev Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Raychev Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
All pages
Recent changes
Random page
Article templates
Tools
What links here
Related changes
Special pages
Page information