Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@melezorus34 what's a global class? Not a thing in java judging by how you called it
-
@ArcaneEye IDK man... He MAY have meant constants (in that case they would be CAPITAL_SNAKE_CASE names), but he said "classes".. so I'm confused :/
-
@AlmondSauce except for constants :) which are technically fields, not variables, so you're prolly right
-
@netikras I knew there might be someone who nit-picked over constants, so you get the prize ;-)
I've still no idea what this "global class" variable name thing is though 😂 -
@melezorus34 There are no global classes in Java. You can only change the visibility of them.
So don't "lmgtfy" me, thank you very much. :) -
Lolz, just try to avoid creating more than 2 globals per file/library
Cuz if you don't start uppercase with a import name, what's wrong with you? (Probs noting) -
you mean "shitty devs naming java variables like:"
I've never ever named a variable anything over maybe 15 chars.
I also met very few devs that did anything near that. -
If something like this happens it's usually because the dev doesn't understand proper design or patterns and calls his variables like:
personalHomeAddress
seems legit but its stupid if the design is ok.
you'll end up with:
x.personal.personalHome.PersonalHomeAddress
instead of x.personal.home.address
NOT AT ALL Java specific.. just a thing people dont get when starting oop.
Related Rants
Java variables be like: UsersXwifesDogHandlersFirstName
rant
java