mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-03-15 10:26:49 +01:00
「📝」 doc(NORM.md): fixed the norm
This commit is contained in:
4
NORM.md
4
NORM.md
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
## File Structure
|
## File Structure
|
||||||
|
|
||||||
- Header Files (.h):
|
- Header Files (.hpp/.h):
|
||||||
- Include declarations of classes, functions, constants, and macros.
|
- Include declarations of classes, functions, constants, and macros.
|
||||||
- Use include guards or #pragma once to prevent multiple inclusions.
|
- Use include guards or #pragma once to prevent multiple inclusions.
|
||||||
- Source Files (.cpp):
|
- Source Files (.cpp):
|
||||||
- Contain the implementation of functions and classes.
|
- Contain the implementation of functions and classes.
|
||||||
|
|
||||||
## Naming Conventions
|
## Naming Conventions
|
||||||
- Variables: camelCase (e.g., int studentAge;)
|
- Variables: snake_case (e.g., int student_age;)
|
||||||
- Functions: camelCase (e.g., void calculateSum();)
|
- Functions: camelCase (e.g., void calculateSum();)
|
||||||
- Classes: PascalCase (e.g., class UserAccount {};)
|
- Classes: PascalCase (e.g., class UserAccount {};)
|
||||||
- Constants: ALL_CAPS_SNAKE_CASE (e.g., const int MAX_SIZE = 100;)
|
- Constants: ALL_CAPS_SNAKE_CASE (e.g., const int MAX_SIZE = 100;)
|
||||||
|
Reference in New Issue
Block a user