by shmerl · 12y ago · 0 comments
Why so? It's Java-ish. Java favors camel notation for some historic reason. C++ on the other hand favors snake notation which is clearly reflected in stdc++. Snake notation is also easier to read, especially if the name contains many words in it. Of course in the end it's a matter of preference, I just wonder why Google mandates camel notation.
Exactly. It's matter of preference. I can read TextLikeThis much easier than text_like_this. Granted I've been developing in C# for past few years so that's likely the reason.
I think there are more ambiguous examples, but cant think of them.
MS standards says that if shortened letter combination is longer than 2 words than it's lowered, otherwise everything is uppercase.
e.g. XmlParser, IOStream
But again, everyone can create their own standard and be happy. The only problem occurs when you work with 10 people and everyone is sticking to his own style.