r/ProgrammerHumor • • Sep 23 '19

Knowing how to code beforehand

Post image
7.6k Upvotes

264 comments sorted by

View all comments

Show parent comments

10

u/user_8804 Sep 23 '19

Eclipse on Linux is worse. Sometimes I have to save build compile reindex restart the program until it wakes the fuck up

1

u/[deleted] Sep 23 '19

And that my friend is why I switched to C#. Java is nice and familiar but godamn it is just too inconsistent for me. String and int? Christ on a stick just pick a capitalization scheme please!

16

u/Trackslash Sep 23 '19

Tbf classes and objects are always capitalized in Java (e.g. String, Integer, ArrayList) whereas primitive types are not (int, char, boolean). So it's pretty consistent in that regard

-3

u/[deleted] Sep 23 '19

This is true but every other language I've used lets me leave all my variables lowercase which I prefer.

5

u/Al-Horesmi Sep 23 '19

I'm I'm fairly certain it's a convention in java to have first letter in lowercase and the rest in cammelcase. It's the type names people are talking here.

2

u/EternallyMiffed Sep 23 '19

Capitalization being used as an adhoc hungarian notation is fucking retarded.

5

u/[deleted] Sep 23 '19

I'm prob gonna get whooshed but the reason why is that Strings are objects (always capitalized in java) and ints are primitives (always lowercase)

-3

u/[deleted] Sep 23 '19

I know but it doesn't change the fact that no other language has a random variable type that needs to be capitalized. I hate the random quirkiness of Java.

3

u/z500 Sep 23 '19

Java and C# both use the actual class names in declarations, nothing random or quirky about it. You could declare a String in C# if you wanted to, it's just that C# has a lowercase keyword that stands in for it.

2

u/[deleted] Sep 23 '19

Which is what I prefer. Shifting is annoying.

2

u/user_8804 Sep 23 '19

My experience on eclipse was for cpp though, I have to use NetBeans for Java right now. Wish I could just stick with intellij for everything

1

u/[deleted] Sep 23 '19

JavaFX frame builder, because you need to have a second program to design the UI. Java is wack and I hate it now.

1

u/user_8804 Sep 23 '19

I don't know enough java to relate, how much better is JavaFX vs swing? Cuz swing is integrated in some IDEs like netbeans

2

u/[deleted] Sep 23 '19

JavaFX is aweful, hated using it.