Code conventions - rzfvansuijdam/Project_Kaiju GitHub Wiki
Naming conventions
β’ Namespaces: PascalCase.
β’ Classes & Methods: PascalCase.
β’ Fields: camelCase.
β’ Static Fields: PascalCase.
β’ Properties: PascalCase.
β’ Parameters: camelCase.
β’ βOnβ prefix for events and actions.
Best practices
β’ Always use access level modifiers (e.g., private, public).
β’ Use single declaration per line.
β’ Declare only one class/interface per source file.
β’ Preface interfaces with an "I."
β’ Use spacing to organize code.
β’ Use proper brace style: braces on their own line.
β’ Use Single-Line if-statements where possible
β’ Avoid nesting with returns
β’ Be cautious with public fields, prefer properties.