diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-05-20 10:48:01 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-05-20 10:48:01 +1000 |
commit | c91f86bd744df6f93a93e61d030c55393fb9ef0d (patch) | |
tree | 8f8dddade96b420d36489b2f03d0b791628d44aa /docs/Contributing/naming.md | |
parent | 5e2186b753c0058253299a651e5752776b88066c (diff) | |
parent | 02e84ee4d18e705e3362be1e327fdb6f1397a032 (diff) |
Merge branch 'master' into realign
Diffstat (limited to 'docs/Contributing/naming.md')
-rw-r--r-- | docs/Contributing/naming.md | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/Contributing/naming.md b/docs/Contributing/naming.md new file mode 100644 index 0000000..518c22e --- /dev/null +++ b/docs/Contributing/naming.md @@ -0,0 +1,29 @@ +--- +title: Naming Conventions +--- + +#### 1. Prefer SOV function names + +Prefer SOV Subject Object Verb naming for functions. + +This makes it very easy to find the functions you want with autocomplete and maintain a consistent naming convention +throughout the codebase. + +e.g. + +* `renderer_frame_begin` +* `engine_tick_begin` +* `texture_data_load` + +--- + +#### 2. Long-running systems + +systems that run for the lifetime of the application or for a very long time should have: + +* `bool system_init(system_state* state)` a `init` function +* `void system_shutdown(system_state* state)` and a `shutdown` function + +--- + +#### 3. TODO
\ No newline at end of file |