3
votes
How to prevent 'global variables' in a big project?
In the new bright world of C++ Core Guidelines (endorsed by no less than Bjarne Himself and current WG21 convener Herb Sutter) - there is Clang-tidy, and its avoid-non-const-global-variables option: ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
variables × 206naming × 38
python × 17
c × 17
programming-practices × 16
coding-style × 16
java × 14
coding-standards × 14
scope × 14
c# × 13
c++ × 11
functions × 11
programming-languages × 10
code-quality × 10
javascript × 9
object-oriented × 8
php × 8
terminology × 8
methods × 8
naming-standards × 7
language-agnostic × 6
data-types × 6
initialization × 6
declarations × 6
clean-code × 5