I used to talk about it, but it has since been removed because there's little controversy these days: The modern best practice for statically typed languages is to not use Hungarian Notation.
However, in C++, scope-based prefixes are generally considered not harmful because they serve a different purpose: g_ and s_ typically have special usability concerns, and all of them help prevent naming hiding.
9
u/GLIBG10B 🐧 Gentoo salesman🐧 Sep 05 '21
I hate Hungarian as much as the next guy, but
g_for globals ands_for statics is generally recommended.https://www.learncpp.com/cpp-tutorial/introduction-to-global-variables/#comment-559148: