Skip to content

Latest commit

History

History
10 lines (7 loc) 路 569 Bytes

CONVENTIONS-OF-CODE.md

File metadata and controls

10 lines (7 loc) 路 569 Bytes

Additional Code Conventions

Notice: The following rules may change as the project develops.

The main function of Flare is very simple, and the operating scenarios it is designed for are relatively harsh, so we are very concerned about performance.

  • Comparing receivers and object orientation, use simple function and procedure orientation.
  • Avoid using golang receiver pointer, consider concurrency safety.
  • Minimize unnecessary memory reallocation.
  • First define the model, and then submit the code; first define the test, and then implement the function.