Variable naming conventions in C++ & Java
Posted on 2008-06-24
I have a short question. In my years of object-oriented software development, I programmed both C++ and Java. Some guys programming C++ were chaotic, using no naming conventions. Their code was difficult to read. Others used either the Hungarian or the Polish notation.
I started with Java in 2002. Nobody abides by one of these notations, but uses a so-called "Java" notation. I can remember that I quarreled with a technical project leader, who was against a member variable name that started with "m_i<VarName>", say. He said that he himself favours the this.<varName> version.
My question is: Is there a good reason for Java people not to stick to the Hungarian notation? Both developers in these languages use IDEs today with text highlighting, so the modern working environments can't be the reason for it.
Thank you for your contribution!