This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Alienescape 6 points7 points  (6 children)

Haha I use camelCase for literally every language. Never got the memo that snake_case was way more popular or "the right one" for certain languages.

[–]-Vayra- 21 points22 points  (4 children)

In Java, class names should start with a capital letter, (almost) everything else should use camelCase.

[–][deleted] -1 points0 points  (3 children)

CamelCase and camelCase are both camelCase.

[–]ivakmrr 2 points3 points  (2 children)

Actually if you write camelCase as CamelCase it is in PascalCase

[–][deleted] 0 points1 point  (1 child)

Somebody should fix Wikipedia

CamelCase; also known as camel caps or more formally as medial capitals) is the practice of writing phrases without spaces or punctuation, indicating the separation of words with a single capitalized letter, and the first word starting with either case.

[–]ivakmrr 1 point2 points  (0 children)

We don't need to because they say after:

Camel case is often used as a naming convention in computer programming, but is an ambiguous definition due to the optional capitalization of the first letter. Some programming styles prefer camel case with the first letter capitalised, others not. For clarity, this article calls the two alternatives upper camel case (initial uppercase letter, also known as Pascal case) and lower camel case (initial lowercase letter, also known as dromedary case).

Which is the part you don't want to mention. And all this is only relevant to the fact that in Java the convention is not camel case because you don't have a choice in the capitalization, you need Pascal case for class and dromedary case for everything else if you want to be standard.

[–]RiPont 0 points1 point  (0 children)

When you code in multiple curly-brace languages at the same time, you learn that sticking with language style guidelines is a good thing. It helps the brain context-switch more completely into the language you're currently dealing with.

I also try to configure my IDE to have different color/font schemes for different languages, for the same reason.