zxclyric/csr icon
public
Published on 3/6/2025
Code style rule

Code style rule for the best code style

Rules
csr
- When defining functions, use ANSI style (i.e., place the opening brace on a new line). - For all other code blocks (such as if-statements, loops, etc.), use One True Brace Style (i.e., keep the opening brace on the same line). - Use snake_case for all identifiers (e.g., my_function, sample_var). - Strive for conciseness in naming: use short, clear names for small functions and code segments, while for complex blocks, longer descriptive names are acceptable as long as they remain succinct.