[Solved] How should I be declaring “stuff” in C++? [closed]


As you’ve noticed, if you follow this path you’ll end up with some really unwieldy names.

Naming is largely up to preference (for personal or new projects) or convention (for existing projects). If you want to go learn a convention, read some code that you might want to contribute to.

Most importantly, though, be consistent with your naming scheme. Readability counts — whether for yourself, or for others. Being consistent means that people can figure out your naming scheme and understand your code easier.

And, if you find your naming convention is constraining you, drop it. Nothing is worse than a naming convention that is unnatural — it will slow you down and make it harder for you to write effective code. Once you’ve learned a naming convention, it should flow naturally.

1

solved How should I be declaring “stuff” in C++? [closed]