Programming Case Types

Case Type
example

camelCase

programmingCaseTypes

snake_case

programming_case_types

UPPER_CASE_SNAKE_CASE

PROGRAMMING_CASE_TYPES

kebab-case

programming-case-types

PascalCase

ProgrammingCaseTypes

PHP(PSR-1 Standard)

Pascal case for classes name.
Upper case snake case for class constants name.
Camel case for methods name.
**No convention** for class properties name.

Javascript

Camel case for variables and methods.
Pascal case for types and classes in JavaScript.
Upper case snake case for constants.

React

Pascal case is used for component names and file names in React.

Ruby

Pascal case is used for classes and modules in Ruby.
Snake case for symbols, methods and variables.
Upper case snake case for constants.

Python

Snake case for method names and instance variables (PEP8).
Upper case snake case for constants.

ETC

  • kebab-case for HTTP URLs

  • snake_case for JSON Property

Last updated