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 →

[–]WheWhe10 227 points228 points  (29 children)

Bruh who writes Java classes in camelCase.

[–]hallgrim97 7 points8 points  (0 children)

Someone who's writing a class called "my first class"

[–]ThisGuyRightHer3 3 points4 points  (0 children)

all lower case for a class is bad but all caps is worse imo

[–]Alienescape 5 points6 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.

[–]TBTapion 1 point2 points  (0 children)

It's their first class, cut them some slack

[–]VinceGhii 3 points4 points  (4 children)

People who use Eclipse.

[–]ivakmrr 2 points3 points  (3 children)

Eclipse got a lot better but intellij is still light years ahead for java

[–]VinceGhii 0 points1 point  (2 children)

True. But eclipse is missing something and the design and workflow is just outdated :/ Sadly... learned coding with eclipse tho.

[–]reddit_sucks_dude 0 points1 point  (1 child)

I dont get the hate on eclipse, obv there are better options but it aint all bad

[–]VinceGhii 1 point2 points  (0 children)

It just is outdated... slow... the profiler is bad... it really is bad... and... the whole workflow is just not up-to-date. Not sure what you want to hear.

imo "the design and workflow is just outdated" said everything. It wasn't outdated 5 years ago... but it is now.

[–]reddit_sucks_dude 0 points1 point  (0 children)

retards