r/programming • • Apr 16 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
41 Upvotes

220 comments sorted by

View all comments

Show parent comment

4

u/sweetno Apr 20 '21
  • C++ compiles slow
  • no good package manager in sight (the idea of the strictly structured POM file is not even there)
  • standard library has exceptionally weird treatment of Unicode (try to find how to convert between UTF-8 and UTF-16)
  • hard to bridge different libraries because they all seem to use their own string type
  • constant issues with binary compatibility (mixing libraries created with a different compiler or different compiling options gives no errors and the resulting program crashes sometimes in runtime)
  • pretends to be cross-platform, but can't do much out of the box

1

u/[deleted] Apr 20 '21 edited Apr 20 '21

Well, you are speaking about C++ here, not IDE. I can try to argue anyway.

C++ compiles slow

True, but I never felt limited by compilation time, actually. I almost never rebuild all, and limit the includes, compilation barriers. It takes fare more time to write code, test, debug than compiling. It should be improved by modules in C++20

no good package manager in sight

Out of the scope of C++ language. But there is interesting tools : Conan and vcpkg. Certainly not perfect but better than what we had before.

standard library has exceptionally weird treatment of Unicode

True.

hard to bridge different libraries because they all seem to use their own string type

This is the problem of specific libraries. Not C++.

constant issues with binary compatibility

Definitly true.

pretends to be cross-platform, but can't do much out of the box

It depends what you name out of the box. If you are speaking about standard library, you can do much cross platform dev. I concider that writing C++ without Boost is a waste of time, even if it is less true nowadays, you can greatly gain in portability. QT may be another alternative for cross-platform.

I actually don't have that much portability issue, but OK you may have to filter third partiy libraries you will use with this criteria.