Anyway as a newcomer to this platform, and one who is just restarting out on C++ after more than 10 years hiatus, here is my two cents for what it is worth.
There is some inconsistency between some tutorials, and whether the code are split up into header and cpp files, or just in one header file which are most.
On top of that is the fact that Projucer, which newcomers might use more than more experienced developers, encourages newly added component classes to each be put into a new file, or even file pairs (header and cpp). As a matter of fact, unless I have missed something completely, Projucer does NOT have the feature to add a new component class into an existing file using the the menus, whether it be header or cpp file, unless one bypass the menus and add it manually.
I understand that for simplicity’s sake tutorials are all in one header file, but as much as I appreciate the tutorials and reference them a lot while I am getting started, I wish they were all consistent, and consistent with how Projucer works, which brings me to a feature request;
How about adding a few options to to the “Add” / “+” button?
When a user has selected a cpp or header file in the file explorer, there would then be at least one new option;
- “Add new Component class in this file”,
and if a pair of matching named files (header and cpp) are detected, then also this option;
- “Add new Component class class split between this pair of cpp and header files”
On a side note, it was not clear to me when I started, and even the most helpful “The Audio Programmer”, who has some excellent Youtube tutorials, also was unclear, that if you want to add a new Component class in existing project, you should click “Source” first or the newly created file or files, will be placed outside group of files and has to be dragged back in.
I am going to add the “feature request” part of this post to the “Feature Request” section.