Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:computer:coding_rules [2021/01/20 17:48] – external edit 127.0.0.1public:computer:coding_rules [2021/12/07 14:54] (current) – [Coding Conventions] alex
Line 48: Line 48:
  
  
 +===== Coding Conventions =====
 +
 +^  Coding Conventions  ^^^^
 +^ name  ^ description  ^ Usually used   ^ examples  ^
 +| flatcase  |   | package at Java, etc.  |   |
 +| kebab-case \\ lisp-case \\ spinal-case \\ caterpillar-case \\ dash-case \\ hyphen-case  \\ css-case  | only small cases, spread with hypens  | css,  | kebab-case, lisp-case, spinal-case  |
 +| camelCase  |    | variables at Java, C#, etc.  | let myVariable: string  |
 +| PascalCase  \\ CapitalCamelCase |    | Class  | class MyClass  |
 +| snake_case  \\ c_case |    | variables at Python, PHP, c, etc.  | snake_case  |
 +| UPPER_CASE_SNAKE_CASE (UPPER_CASE) \\ MACRO_CASE  |    |   | UPPER_CASE_SNAKE_CASE  |
 +| COBOL-CASE \\ TRAIN-CASE  |    |   | COBOL-CASE, HTTP-Header-Case  |
 +| undercore notation  | prefixed by "_" followed by camelCase  |   | _idUser |
 +| Hungarian Notation  | variable names prefixed by metadata data-types which is out-dated  | C++, MFC  | strUsername  |
 +
 +
 +  * [[https://chaseadams.io/posts/most-common-programming-case-types/|Most Common Programming Case Types]]
 +  * [[https://stackoverflow.com/questions/17326185/what-are-the-different-kinds-of-cases|What are the different kinds of cases? @stackoverflow]]
  • public/computer/coding_rules.1611132491.txt.gz
  • Last modified: 2021/01/20 17:48
  • by 127.0.0.1