AronE. wrote:Recently I've been doing a research on how D and Rust are going to surpass and replace C++, but since I'm not that much into programming, I had to ask people more experienced than me. And from my research I've gathered this : D and Rust are just like C++, just faster and a lot more simple.
That seems like a gross over-simplification of a rather complex discussion. Though I would be interested in reading whatever material led you to believe that either of those languages are "faster" or "more simple" as a general-purpose language.
AronE. wrote:-So, when are they going to replace C++?
Not in your lifetime. Well, I suppose that depends on how you define "replace". Has C++ "replaced" FORTRAN in your opinion? I can tell you from experience there are a *lot* of FORTRAN applications still running and being maintained on extremely vital systems. The same goes for any technology "of the past". If your definition of "replace" is that more new development is occurring in one of these new languages than is occurring in C++, then I'd say there's a minimum of 10-15 years before the upcoming programmers learning these new languages start bringing them into their workplaces.
The only way a 20+ year veteran C++ programmer is going to pick up a completely new language is if it's *infinitely* better than C++. A few minor advantages here and there usually come with a very minor disadvantages, and the cost benefit of learning a whole new language for a couple of features that are easier to implement than in C++ is just not worth it. It will probably take less time to do it in C++, since the development team is already intimately familiar with that language.
AronE. wrote:-What do you think of this statement, saying that they are going to replace C++? Bullshit or not?
I think it's a perfectly viable outlook to assume that eventually something will replace C++ as the industry-standard language eventually. That said, I'm yet to be convince that Rust or D are some revolutionary new thing that will spread like wildfire putting C++ programmers out on the street worldwide. I honestly just don't know enough about them, because I don't have a terrible amount of interest in learning new languages for the sake of it. I'll leave that to the more educated folks and when the majority of them start telling me one or the other is worth my time, then I'll look into it more seriously.
AronE. wrote:Aside from asking out of curiousity, I'm also looking for an answer, because I'm going to start C++ this summer and I need to know if it's worth it. Most likely this replacement will happen, but probably not that soon... Nevertheless, I have to ask just to be sure...
Learn C++. It's not going away any time soon, and the majority of the concepts you learn will apply to almost any language. Getting shit done is going to be a lot more valuable learning experience than learning [insert language here]. Programming languages are, after all, just tools. The means to an end.
AronE. wrote:Edit: Also, what's the difference between C++98, C++99, C++03, C++11, C++14 ... The numbers are most likely refering to the year of release, but how are these standards different?
A lot of things. I'm the sure exact changes are listed somewhere, but I don't know where off-hand. All of the basic are the same, so don't get too bent out of shape about this early on. Just learn intro-level C++ syntax, then later on you can read about the latest version and you'll better understand how those changes can improve your experience with the language.