Formatting: Difference between revisions
Appearance
Created page with "== 2026 07 31 == What format do we use to name things? - Using "→*" then " * " then ": " to write comments - Method names: Upper Snake Case - Struct names: Upper Snake Case, append "_t" - Variables: Lower Snake Case - Files: - .c, .h, .txt Lowercase with underscores - .txt and .json Upper Camel Case - Folders: By vibes" |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Index]] | |||
== 2026 07 31 == | == 2026 07 31 == | ||
What format do we use to name things? | What format do we use to name things? | ||
| Line 5: | Line 7: | ||
- Struct names: Upper Snake Case, append "_t" | - Struct names: Upper Snake Case, append "_t" | ||
- Variables: Lower Snake Case | - Variables: Lower Snake Case | ||
- Constants: Upper Snake Case | |||
- Files: | - Files: | ||
- .c, .h, .txt Lowercase with underscores | - .c, .h, .txt Lowercase with underscores | ||
- .txt and .json Upper Camel Case | - .txt and .json Upper Camel Case | ||
- Folders: By vibes | - Folders: By vibes | ||
Commit formatting: | |||
- https://gist.github.com/qoomon/5dfcdf8eec66a051ecd85625518cfd13 | |||
- <type>(<optional scope>): <description> | |||
- Common Types: | |||
- feat: commits that add or adjust a feature | |||
- fix | |||
- refactor | |||
- style: formatting stuff that does not affect | |||
- test: stuff to do with unit testing | |||
- docs | |||
- build: stuff relating to build frameworks and tools | |||
- merge: | |||
Latest revision as of 16:07, 31 July 2026
2026 07 31[edit]
What format do we use to name things?
- Using "/**" then " * " then " */" to write comments
- Method names: Upper Snake Case
- Struct names: Upper Snake Case, append "_t"
- Variables: Lower Snake Case
- Constants: Upper Snake Case
- Files:
- .c, .h, .txt Lowercase with underscores
- .txt and .json Upper Camel Case
- Folders: By vibes
Commit formatting:
- https://gist.github.com/qoomon/5dfcdf8eec66a051ecd85625518cfd13 - <type>(<optional scope>): <description> - Common Types: - feat: commits that add or adjust a feature - fix - refactor - style: formatting stuff that does not affect - test: stuff to do with unit testing - docs - build: stuff relating to build frameworks and tools - merge: