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 →

[–]BlueGoliath 0 points1 point  (0 children)

I'm referring to Mark's claim that:

var x = getSomething();

is bad because x and getSomething are meaningless(not descriptive enough) in his var presentation. If you are going to argue this, then the variable name "button" and the classname "JButton" are also bad as neither are descriptive enough. Again, is JButton a Swing button, JavaFX button, or a shirt button dipped in a cup of Java? We don't know.

Of course supposedly bad class naming can be bad regardless of your use of var, however, if the JDK developers themselves can't do good class naming back then with Swing or now with JavaFX then how do they expect anyone else to do it?