从 C++ 到 Java 的转换

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12189761/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 07:56:59  来源:igfitidea点击:

The switch from C++ to Java

javac++jakarta-eeprogramming-languages

提问by steve

I am a C++ developer through and through. I am passionate about the language, and in particular really enjoy the power that template meta-programming and compile-time polymorphism gives me, and the more recent developments such as C++11's variadic templates and rvalue references etc.

我是一名彻头彻尾的 C++ 开发人员。我对这门语言充满热情,特别喜欢模板元编程和编译时多态性给我带来的力量,以及最近的发展,如 C++11 的可变参数模板和右值引用等。

I like that C++ gives me so much control, and the ability to do neat tricks with memory to eek out performance improvements.

我喜欢 C++ 给了我如此多的控制权,以及用内存做一些巧妙的技巧来寻求性能改进的能力。

I have recently been offered the opportunity to interview with a company which does all its dev in Java. They claim they are passionate about technology first and foremost, and that they are struggling to find really good technologists. As such are looking to take on hardcore C++ technologists and have them do the swap over to Java.

我最近有机会采访一家使用 Java 进行所有开发的公司。他们声称自己首先对技术充满热情,并且正在努力寻找真正优秀的技术人员。因此,他们希望聘请铁杆 C++ 技术专家,并让他们转而使用 Java。

Knowing very little about Java, I am unsure as to whether this is a path I want to go down.

对 Java 知之甚少,我不确定这是否是我想要走的路。

  • Are the low-level nuts and bolts available to us in C++ taken away in Java?
  • Will a passionate C++ developer enjoy Java or long to go back to C++?
  • 我们在 C++ 中可用的低级螺母和螺栓是否在 Java 中被带走了?
  • 热情的 C++ 开发人员会喜欢 Java 还是渴望回到 C++?

I realise this is very subjective, but I'm hoping someone who has walked this path before can offer some insight.

我意识到这是非常主观的,但我希望以前走过这条路的人可以提供一些见解。