Live data from Hacker News

Wrapping Up 2021. Leaving C++

izzys.casa

21–30 of 251 posts

Re: Wrapping Up 2021. Leaving C++

#23
post #4

Makes me wonder if I've too strongly tied my career to a specific language. However, right now it's not that I'm specifically a C++ programmer, just that the industry (gamedev) is largely C++. I'm sure in for it if that shifts out from under me before I find stable employment though....

I strongly believe so, too. Whether you like c++ or not, it can be low or high level and is a swiss army knife of sorts. As a gamedev using c++ I am sure you have learnt a lot about programming and systems and hardware, also about compile-time and runtime. Those concepts are invaluable and help you out in any language and since c++ is so versatile you'll be able to make yourself comfortable in many languages.

E.g. colleagues of mine who have only used Python have no idea about references, heap and stack, L1/2/3 caches and so on. It's a shame.

Re: Wrapping Up 2021. Leaving C++

#24
post #6
post #4

Makes me wonder if I've too strongly tied my career to a specific language. However, right now it's not that I'm specifically a C++ programmer, just that the industry (gamedev) is largely C++. I'm sure in for it if that shifts out from under me before I find stable employment though....

The C++ programmers will just switch to C++ 2.0, aka Rust. It's not a big leap.

C++ is not going away in the foreseeable future, like it or not.

Re: Wrapping Up 2021. Leaving C++

#26
post #4

Makes me wonder if I've too strongly tied my career to a specific language. However, right now it's not that I'm specifically a C++ programmer, just that the industry (gamedev) is largely C++. I'm sure in for it if that shifts out from under me before I find stable employment though....

I wouldn't worry about it too much. It's the ecosystem and the rest of the frameworks that you'll need to learn, and those will be specific to what you will be trying to do. If you are a proficient c++ programmer you'll have no problem with anything that came after it as those languages usually strive to fix problems in c++.

If you don't know web stuff you should learn web. There was a time I would say every programmer should know C. Today I would say JavaScript.

Re: Wrapping Up 2021. Leaving C++

#27
post #16

Earlier quoted context omitted.

Sure we will. Just like we switched to C++ 2.0 aka Java.

Out of curiosity, according to you at what point was Java considered C++ 2.0?

At inception it was sold as an alternative to C++ for general IT work. I switched in ‘96.

Re: Wrapping Up 2021. Leaving C++

#29
> A lack of default arguments, a lack of basic arity overloading, a lack of variadic generics, all make me not want to write Rust.

I'm sorry but these are such superficial problems. I don't need overloading (arity or otherwise) since Rust kind of has overloading thanks to the traits.

Variadic generics might be necessary since C++ doesn't have a good macro system. But Rust does so you achieve it that way.

Post reply on HN