mirror of
https://github.com/KeyZox71/webserv.git
synced 2026-10-03 01:20:08 +02:00
「📝」 doc(NORM.md): fixed the norm
This commit is contained in:
1 parent
4fbaed787d
commit
d7baf04e5f
1 file changed
+2
-2
@@ -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