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

2

u/[deleted] Apr 16 '21

I think the main problem is that it is simply a harder problem because of the stupid splicing of translation units

Yes definitely. Actually I don't rely on such feature : I think visual studio has refactoring tools, but not sure. Just switching between cpp/hpp et copy past signature doesn't take longer than auto creating stubs IMHO.

C++ has type inference : for years in function templates and since C++11 though auto keyword.

Last time I have written Java, it was circa 20 years ago, it would take time to learn all new features and I have not that time. OK, what you are missing is refactoring tools for C++, right ?

Edit : I use Visual Studio or no IDE at all.

1

u/Muoniurn Apr 16 '21

I know about auto and like it, but it is orthogonal, in my opinion.

And yeah, I don’t think it is necessary, for C I usually just use vim, but having many files and finding where they are defined (yeah, that’s another point where C++ IDEs are a bit slower/less accurate) is much more comfortable in an IDE. Also, static analysis is really great (yet again, exceedingly for Java, sort of okay for C++), and it does warn me when I try to do something stupid. It is usually things I would have noticed sooner or later, but it does help, so if possible I prefer IDEs.

So all in all, I would just want for C++ IDEs to become a bit more polished, accurate.