1
General discussions / New naming convention
« on: January 11, 2012, 07:08:58 pm »Quote from: "Laurent"
Quote* It breaks ALL existing code. This could have been justified better if only SFML 2.0-dev hadn't been being recommended over SFDML 1.x in the past years.
This is not an argument against the camelCase notation, it's an argument against breaking the current convention. Although it is very important, let's keep it for later, as it will most likely be the final question to ask before doing something (or nothing at all).
Guess I was skipping too much after the browser swallowed my post twice. The reasoning of the quotation of mine was very simple in logic:
Since the current notation != camelCase, switching to camelCase -> breaking the current convention.
Code: [Select]
// If that's not clear enough, then in a code example:
void foo(Notation newNotation) {
if (newNotation != currentNotation) ChangeNotationAndBreakAllCode(newNotaion);
}
//...
Quote from: "Laurent"
Quote* Some people really hate javaStyle.
No matter what I do, some people will still hate it. It's definitely not an argument in favor of one notation or another.
Oh, I failed to figure out that you consider personal preference irrelevant to this matter. Nonetheless, I think it's a great step forward - That would mean that whether you didn't like the previous conventions anymore shouldn't have been taken into account. Feel free to correct me if I am wrong on this.
Quote from: "Laurent"
Quote* It unEmphasizes the first sematical element of the function name. (Read carefully!)
I think it does emphasizes the first word, since it's the only one that begins with a lower case.
To me there's more emphasize in verbSomeOtherNouns than in VerbSomeOtherNouns.
If that is personal preference again...
Quote from: "Laurent"
QuoteI've worked with quite a few other big C++ libraries that use various naming conventions, but apparently none of them follow the Qt's way in function naming.
We are now talking about camelCase only, not about the "get" prefix. Please stay focused
Yes, I am talking about the very camelCase function notation which is abused in Qt which explains why some C++ users could be in favour of camelCase which seems "alien" among existing C++ projects - because of their experience in using Qt which is designed to look and feel "alien". :wink:
EDIT: Honestly, I admit that found this debate getting more and more like sophistry. But I think it's very clear now that there is no compelling reason to change the whole API at the evident cost of breaking (almost) all existing code.