- Use commonly known abbreviations for long words.
E.g.
idx
instead of index
, props
instead of properties
, etc.
- Organize the file top-down, with leaf functions in the call graph lower than their callers.
In other words, try to always put the function definition after all its usages.
- Prefer flat filesystem structure for source files. Avoid deeply nested directories.
- Prefer functions over classes.