korpolis/code-style icon
public
Published on 8/16/2025
Code Style

Rules
  • 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.