Naming convention
- There are multiple languages used - Go/Python/Typescript/Rust. The goal is to maintain a simple universal naming scheme across all languages. For some languages this scheme is not standard, but having it be consistent across all of the code (including the shared symbol names) has its benefits in readibility and correctness.
Rules: - snake_case for languages that dont require it (everything othern than Go)
- function argument names beging with “p_” to easily indicate right away where the value is coming from (outside the function, or from internal scope).
- if values/variables are of generic type, such as string/float/int/list/map/tuple, then their names should end with a postfix with a shorthand. If its a custom/user_defined type
then there is no posftix. this practice increases readibility and acts as local documentation, for which types are involved in a particular expression, either in dynamic languages,
or in languages with type inferencers.
Type suffixes:- float - “_f”
- int - “_int”
- string - “_str”
- list - “_lst”
- map - “_map”