Creating a good directory structure
This may be a silly question, but I am still learning. I have read several books on building an application and creating a good directory structure. When people talk about creating a directory structure, they mean the folders you make in the solution explorer (the folders you actually find inside the .sln file), or they mean setting up and creating folders that are in the same folder as yours. sln or your compiled application (.exe). I figured the solution explorer folders are different from the typical Windows folder because the folders I create inside my .sln file cannot be found on my Windows system.
a source to share
Visual Studio has a weird way of working with "folders" in solutions. The Solutions Folder is not really a physical folder, but rather a virtual folder managed by Visual Studio. Your files may end up in the root directory, but VS will treat them as if they were in a "folder". This is configured and managed in VS.sln or project file.
I'm not a fan of how this works in Visual Studio, I don't understand why they don't just put files in physical folders. It's up to you if you want to fight VS and try to keep your files in physical folders, or if you just want to let VS manage it, but in the end it really doesn't matter.
a source to share
With C ++ in Visual Studio, your solution directories don't have to match the filesystem, but they can.
Usually people refer to the directory structure as the layout of the project filesystem.
For typical visual studio directories called headers and source, you might not be able to lay out your project the way it did on your filesystem.
Visual Studio directories are not only virtual folders, but they can contain filtering rules, so when you add a file to your project, it is automatically added to the correct filtered folder. They can also specify if the folder should be under version control or not. And whether they should be analyzed for automatic completion or not.
Usually on the file system, I create 1 folder for each project and rarely create subfolders inside a separate project. But in Solution Explorer I will create top-level folders where I put projects (ex: Server Components and Client Components), as well as project folders to logically combine things (ex: Config, GUI, Controllers, ... ) so I can find what I'm looking for faster.
a source to share