• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Why must Java suck?

Deeko

Lifer
Doing an assignment for my OOP class that must be done in Java.

It would be so much easier in C++.

Java is awful.
 
Could you state - in specific terms - why you think Java sucks? Most people that work with it find it rather enjoyable.
 
Originally posted by: BFG10K
cross platform.
C++ too.

Except that you if you want to have a GUI you need to choose which platform you want. Windows API, GTK, QT, etc etc. If you want to develop for more then one it takes a LOT of work. Using Java you don't have to change any code to make it work with GTK, QT, Windows API, or any other platforms that have a JRE for them.
 
The java gui is the ugliest thing ever invented and I love how hitting enter never automatically sends the OK like you would expect.
 
You don't have to use the "java gui". If you're targeting a windows system, then you can use the Windows Look and Feel (and it's pretty much spot-on). And regarding it "not sending the ok", that's a problem with whoever coded it, not the gui itself. Like any other language, if the code behind it isn't tight and tweaked, it's going to feel unresponsive.
 
Originally posted by: Deeko
Doing an assignment for my OOP class that must be done in Java.

It would be so much easier in C++.

Java is awful.

I was finishing up an assignment for my Data Structures class, it really sucked.
 
Originally posted by: jbourne77
You don't have to use the "java gui". If you're targeting a windows system, then you can use the Windows Look and Feel (and it's pretty much spot-on). And regarding it "not sending the ok", that's a problem with whoever coded it, not the gui itself. Like any other language, if the code behind it isn't tight and tweaked, it's going to feel unresponsive.

I'm just going based on the dozens of java programs I've had to use.
 
Dozens?

Anyway, GUI coding in Java probably requires more responsible programming than .Net... but that doesn't mean it's bad, per se. With proper threading and instantiation, along with the Windows Look and Feel, you could easily be fooled.
 
Originally posted by: BFG10K
cross platform.
C++ too.

Hmm, C++ isn't cross platform. Maybe ANSI C is, but if you're using anything outside of standard C++ libraries (which 99% of all programs do) you'll need to make code changes to make your program compile on the new platform.

On the other hand, I'll say that I've seen a lot more bad java programmers than C++. I think something about C++ forces you to follow programming principals more closely. Or maybe it's just tougher to program in C++, therefore weeding out all the bad ones.
 
Originally posted by: skace
The java gui is the ugliest thing ever invented and I love how hitting enter never automatically sends the OK like you would expect.

LOL. I gotta laugh at this comment and the OP. You guys sound like babies who need everything done for you. How hard is it to add an ActionListener to the text field which is the same ActionListener as the OK button's ??

 
Originally posted by: znaps
Originally posted by: skace
The java gui is the ugliest thing ever invented and I love how hitting enter never automatically sends the OK like you would expect.

LOL. I gotta laugh at this comment and the OP. You guys sound like babies who need everything done for you. How hard is it to add an ActionListener to the text field which is the same ActionListener as the OK button's ??

LOL. Because I was talking as a user and not a programmer. I don't install a new tool and then recode it for the vendor.
 
Ah, well then you do have a valid criticism of bad Java programmers. 🙂 The language is not to blame though.
 
My assignment is a bunch of classes linked together through inheritance/dependancy. Its a pretty big project, and based on my initial design(in dia) the easiest method seemed to be multiple inheritance...oops....made the design not thinking that it was Java. I spent way too much extra time trying to make the design still work in Java....
 
Yes - but they are more work.

In the end the assignment isn't THAT difficult. The problem is that we don't know Java - this is a 3rd year course, the only Java we were ever taught was in 1/3 of 1 class last year. The professor knows this, he's a phd student who recently got his Masters, after having gone through both undergrad and grad school here, and he admits that he doesn't know Java either. Its great.
 
Originally posted by: znaps
Interfaces should allow you to get around the multiple inheritance issue.

^^^ What znaps said.

You probably should have learned a thing or two about Java before coming up with your design, Deeko. Java isn't great, but C++ is pretty bad as well IMO.
 
Originally posted by: znaps
Interfaces should allow you to get around the multiple inheritance issue.

Exactly what interfaces are meant to do, look at the collections in the java.util classes -- they use a combination of interfaces and super classes to provide a rich collection of classes.
Java is not c++ and don't approach the problem in the same way as you would approach a c++ problem. You are going to have a tough time trying to implement multiple inheritence in java like you would in c++, there are ways to get around this and depending on how you approach it......
Besides, MI is an ugly mess and more often than not you can have a clearer implemenation using interfaces than with MI.
 
Originally posted by: Deeko
Yes - but they are more work.

In the end the assignment isn't THAT difficult. The problem is that we don't know Java - this is a 3rd year course, the only Java we were ever taught was in 1/3 of 1 class last year. The professor knows this, he's a phd student who recently got his Masters, after having gone through both undergrad and grad school here, and he admits that he doesn't know Java either. Its great.


They may be slightly more work, and for a simle assignment you might not see the problem with multiple inheritance, but it can cause HUGE issues down the line in complex applications. I'm happier without it.

In fact I remember doing a C++ course and the instructor said it was perfectly acceptable to avoid using MI in C++ altogether because it's so difficult to get the design right.
 
Look, I know it's 1337 to rip on java and talk about how slow it is, but as a programmer, you will find that things like exceptions and inheritance are pretty useful. Java is also designed to be cross platform.
 
Oh don't give me that 1337 sh!t. I don't like Java because I use C++ in school and C# at work. Considering I've come to love C++, and C# does everything Java can do with that C++ touch of class...I have plenty of reasons to dislike it.
 
Back
Top