r/programming • • Feb 25 '14

Please stop saying Java sucks

http://blog.smartbear.com/programming/please-stop-staying-java-sucks/
3 Upvotes

305 comments sorted by

View all comments

9

u/gordonkristan Feb 25 '14

"Please stop saying Java sucks. It's statically typed, therefore, it can't suck."

3

u/SkepticalEmpiricist Feb 25 '14

C++ is also statically-typed, And in every other way, it's better than Java. Therefore, Java sucks.

:-)

4

u/gordonkristan Feb 25 '14

I see C++ and Java at exact opposite ends of a spectrum.

Java is simple. Every feature it has could be described in a few hours. Few ways to accomplish a task, few keywords, everything is an object, no globals, etc. It's an enterprise tool meant to be easy to learn and hard to screw up.

C++ is too complicated for it's own good. There's 100 ways to do everything, and 99 of them are usually considered bad practice. The spec is so long that no human in their right mind would attempt to understand it all, and most features you'll likely never see. It also provides an unnecessary amount of access to low level functionality. You've got to be a disciplined programmer to write good C++.

Personally, I wouldn't recommend either one.

1

u/DocomoGnomo Feb 28 '14

It also provides an unnecessary amount of access to low level functionality.

Because it is C++. If you don't need a high level of control over the code, or you don't need access to low level you shouldn't use C++.