monoVertex
I'm back!
- Reaction score
- 460
What I meant is that Java classes in general, either from the core libraries or 3rd-party libraries, favor really long names and methods for every possible situation and such. While I agree with building classes as versatile as possible, I am also a strong believer in making the basic case simpler and faster. That is a general rule when building an algorithm, but it also applies to the development itself. For example, when reading from a file, why do I have to do
, when in Python I could do
Of course, if you want to do some fancy stuff, you can do that with Python too, but the basic case is really simple to write and someone else understands that immediately. The Java code is bloated. And the case is similar throughout the language. Except when you have extensive Java experience and remember everything directly, you are dependent on the IDE to suggest stuff to you, which is something I dislike.
And with hype, I meant that I see a lot of people, including around me in college, that praise Java. While I agree that it is a powerful language, in my opinion a language should be complex only when using the powerful stuff, not in every simple line of code.
I have to admit, I saw you as a Java fan, too . Why didn't you try doing your project in Python? It's also cross-platform, maybe even more than Java. I also have to admit that I don't have libGDX knowledge, so I am not trying to argue this point, I was simply curious what made you decide on Java versus other cross-platform languages.
Code:
BufferedReader br = new BufferedReader(new FileReader("file.txt"));
try {
br.readLine();
} catch (e) {
// whatever;
}
, when in Python I could do
Code:
with open(fname) as f:
content = f.readline()
Of course, if you want to do some fancy stuff, you can do that with Python too, but the basic case is really simple to write and someone else understands that immediately. The Java code is bloated. And the case is similar throughout the language. Except when you have extensive Java experience and remember everything directly, you are dependent on the IDE to suggest stuff to you, which is something I dislike.
And with hype, I meant that I see a lot of people, including around me in college, that praise Java. While I agree that it is a powerful language, in my opinion a language should be complex only when using the powerful stuff, not in every simple line of code.
I have to admit, I saw you as a Java fan, too . Why didn't you try doing your project in Python? It's also cross-platform, maybe even more than Java. I also have to admit that I don't have libGDX knowledge, so I am not trying to argue this point, I was simply curious what made you decide on Java versus other cross-platform languages.