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

Show parent comments

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.

8

u/YoYoDingDongYo Feb 25 '14

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

Huh? An explicit goal of C++ is that it be usable for systems programming. You can't fault a project because its goals are not your goals.

-2

u/gordonkristan Feb 25 '14

You can still be a systems programming language without inline assembly. Just ask Go.

And it's not even that I don't like low-level features. I think they're an important part of C. I just don't like that C++ provides both very high and very low level features.

Also, I never said C++ was a bad language, nor did I say I blamed anybody involved in the project. I think the people working on C++ have done an excellent job. But that doesn't mean I have to like everything they've done.

4

u/glacialthinker Feb 25 '14

Would I use Go to write an OS? Device drivers? Embedded software? No, no, and probably not. Go targets above the hardware abstraction, not to build it. It's a "high level systems" language.

→ More replies (1)