Hello, :hello:
I've seen that many advanced projects, including samples from the Orbiter SDK like Atlantis, use quite a lot of different .cpp and .h files.
When I work on a project, I make only one .h file and one .cpp file. It seems it doesn't cause problems.
So I wonder what are the benefits of multiple files, and what's the general purpose. The obvious one I can guess is organization. With a single file, you quickly have thousands of lines of code, which is not fun to browse, even with bookmarks (hence a loss of time and efficiency). But there is to be something else.
Thanks for sharing your thoughts / experience :tiphat:
I've seen that many advanced projects, including samples from the Orbiter SDK like Atlantis, use quite a lot of different .cpp and .h files.
When I work on a project, I make only one .h file and one .cpp file. It seems it doesn't cause problems.
So I wonder what are the benefits of multiple files, and what's the general purpose. The obvious one I can guess is organization. With a single file, you quickly have thousands of lines of code, which is not fun to browse, even with bookmarks (hence a loss of time and efficiency). But there is to be something else.
Thanks for sharing your thoughts / experience :tiphat: