What’s a Good Way to Organize Multiple Coding Projects?
Asked by
MellowKite42
I'm looking for a practical way to organize several programming projects rather than organize the files within a single project. I have around ten projects from university, along with various personal projects, and I'd like a directory structure that makes everything easy to find and maintain. How do you usually arrange projects by category, language, version-control system, or something else?
Answers
A common setup is to organize the top level by purpose. For example, use ~/src/university for coursework, ~/src/personal for your own projects, and ~/src/oss for third-party or open-source code. Put each project in its own folder and archive old school projects when you no longer use them.
Reply to this answer
Keep it simple: create one development directory and give each project its own folder, such as ~/dev/university/project-name and ~/dev/personal/project-name. For most people, that’s enough to keep dozens of projects manageable.
Reply to this answer
Use one version-control repository per project. Keep the repository folder focused on that project, and group the repositories under broader folders like university, personal, or work if that helps. Organizing by language can be useful, but organizing by project purpose tends to stay clearer as your work grows.
Reply to this answer
I usually organize by language for small experiments, such as ~/src/c and ~/src/go, but larger projects get their own named directories under ~/src/projects. The important part is consistency rather than finding a perfect structure.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions