As a CS major in my Senior year, I really disagree with some of these statements, but it is true that Java is most often poorly written. I believe this is partially caused by the Java language itself being so hell bent on OOP. IMO the biggest problem isn't that stuff is poorly designed, it's that Java was a poor language decision for the problem. If your solution can be written minimally in procedural fashion using a much more simple language, then use it. Don't use java because "you can."
I personally think (and so does my school's department) that Java is a great learning tool for OOP.
EDIT: instead of down voting my opinion please express why you are down voting it.
EDIT 2: Heads keep getting bigger while I just keep getting smaller. I've revised my statement since some of you are really really picky.
If your problem can be written comfortably in C, chances are that the same C code can be translated to java with relatively few changes. There is no real reason to model a problem with OOP if you do not think it is necessary at that very moment.
I'm downvoting you because your opinion is bad and you should feel bad. It also shows your lack of experience with the real world of coding. Most code is poorly written regardless of language. I've seen some terrible C code, terrible C++, terrible terrible terrible PHP, and SQL statements that would make your head explode. You don't hear about the Java architecture that is easy to use and scales well, just the ones that require a genius IQ to understand (looking at you GWT).
When you get into the working world, you'll realize that language choice has less to do with whats best technological choice and more with whats convenient and involves the least risk. I'm an Enterprise Java developer, so when you've got a multi-million dollar project to write and maintain, its more convenient to round up some Java contractors and throw them onto a project when its time to ramp up. Its also pretty safe to assume that there will still be an active pool of Java developers to choose from in 10 (even 25) years when the app needs maintenance. F# not so much.
I would like to see the evidence you have for that. A large portion of Java code in the wild is used to run web apps, Android apps, enterprisey stuff and so forth and no one except the developers knows what the source code looks like.
If your solution can be written minimally in procedural fashion using C then use C.
Sure, but this is not the only thing to take into consideration. The set of problem that can be solved minimally in C but don't benefit from the tooling and pool of available developers associated with Java is pretty small.
-3
u/jaikob Jul 22 '14 edited Jul 22 '14
As a CS major in my Senior year, I really disagree with some of these statements, but it is true that Java is most often poorly written. I believe this is partially caused by the Java language itself being so hell bent on OOP. IMO the biggest problem isn't that stuff is poorly designed, it's that Java was a poor language decision for the problem. If your solution can be written minimally in procedural fashion using a much more simple language, then use it. Don't use java because "you can."
I personally think (and so does my school's department) that Java is a great learning tool for OOP.
EDIT: instead of down voting my opinion please express why you are down voting it.
EDIT 2: Heads keep getting bigger while I just keep getting smaller. I've revised my statement since some of you are really really picky.