To maintain consistency and clarity in your Git repository, it's a good idea to follow a naming convention that reflects the structure of the 42 curriculum while ensuring the folders are easily identifiable and ordered logically. Since the Piscine (C Piscine) is a foundational step before the Rings (like Ring 0, Ring 1, etc.), you should name it in a way that indicates it precedes the Rings.
Here are some suggestions for naming the Piscine-C project folder:
Option 1: Use a Prefix to Indicate Pre-Ring Status
You can use a prefix like -1- to indicate that the Piscine comes before Ring 0. For example:
-1-Piscine-C
This ensures that the folder appears before 0-Libf in alphabetical sorting, visually representing the curriculum progression.
Option 2: Use a Descriptive Prefix
If you prefer a more descriptive name, you could use something like Pre-Ring- or Piscine- to clearly indicate its role. For example:
Piscine-C
or
Pre-Ring-Piscine-C
The Piscine-C option is simple and clear, but it might not sort before 0-Libf in alphabetical order unless you add a numerical or symbolic prefix.
Option 3: Use a Zero-Padded Number
To ensure proper sorting and consistency with your existing naming convention (0-Libf, 1-Born2beRoot), you could use a zero-padded number lower than 0, such as 00- or 000-. For example:
00-Piscine-C
This ensures the folder appears before 0-Libf in alphabetical order while maintaining a clean and consistent naming pattern.
Recommendation
Based on your current naming convention (0-Libf, 1-Born2beRoot), the most consistent and visually appealing option would be Option 1 or Option 3. Here's a breakdown of why:
- Option 1 (
-1-Piscine-C): This is intuitive because it uses a negative number to indicate "before Ring 0," which aligns with the curriculum's progression. It also sorts correctly in alphabetical order.
- Option 3 (
00-Piscine-C): This is a good alternative if you prefer to stick to non-negative numbers and want to maintain a purely numerical sorting order.
Final Suggestion
I recommend naming the folder -1-Piscine-C because:
- It clearly indicates that the Piscine comes before Ring 0.
- It sorts correctly in alphabetical order (before
0-Libf).
- It aligns with the logical progression of the 42 curriculum.
Your folder structure would then look like this:
-1-Piscine-C
0-Libf
1-Born2beRoot
Additional Notes
- If you plan to add other Piscine-like projects (e.g., Piscine Shell, Piscine PHP, etc.), you could extend this convention by naming them
-1-Piscine-Shell, -1-Piscine-PHP, etc.
- Ensure that your naming convention is consistent across all projects to avoid confusion in the future.