The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
People have predicted the imminent death of C++ since 2003 or so. Instead of dying, it just gets more users, and remains near the top of the TIOBE index.
The people who think about C++ have observed since 2011 that it is becoming two languages: one very sophisticated language for creators of template libraries, and another language for ordinary users. I'm not sure this is a healthy evolution.
Some day, Rust may overtake C++, but I don't see any other contender today.
There's dying and there's dying. Looking through the job listings out there, C++ seems to me to be suffering, mainly because it's not well suited for the projects that are getting lots of investment. Often C++ seems to be often only even in a listing because it's in the 'experience in one or more of these languages' list, but it's probably not the one you are going to be using, it's just that at least you would have OO development experience if you know it.
I mean I think that the browser and the phone have been amongst the worst things to happen to programming in a long time (let's throw out all of the work done over decades and go back through the exact same ridiculously long and painful process again but even worse), but the fact is that so many development jobs are there. Or maybe they are on the back-end but they related to how can we collect as much data on people as possible and apply AI to exploit that data as much as possible and that's usually not C++ related either. It's more likely to be SQL or Hadoop or Azure experience or some such.
Don't get me wrong. I have a HUGE investment in C++ and it would be to my benefit if it were doing better. But I just really get the impression that it's on a precipice.
I think you are exactly correct. C++ is not the go-to language for writing web pages, web servers, or phone apps. Apple had an investment in Object Pascal, and then Swift, to create a typical Apple lock-in. Google chose Java for Android, probably to take advantage of the many programmers who knew Java and the Spring graphics library, but found C++ difficult.
C++ is always going to be the language for implementing embedded things, for writing operating systems, compilers and databases, and for any place performance is critical.
And of course Microsoft only supports C++ out of obligation and for reputation at this point I think. Most Windows work is C# these days. So, if you backed the Windows/C++ horse, and a lot of people did, it was sort of the worst case scenario. Much of the C++ work that is available is on Linux/Unix.
I think you're right about many general purpose languages out there. I've felt a lot of fatigue with C#/ESNext/TypeScript.
On the flip side, the tempered, thoughtful, and consistent design is something I didn't expect to appreciate when I first discovered Elm. The language and ecosystem becomes simpler and more reliable with new releases. It's a breath of fresh air.
"I intend to live forever - so far, so good." Steven Wright
"I almost had a psychic girlfriend but she left me before we met." Also Steven Wright
"I'm addicted to placebos. I could quit, but it wouldn't matter." Steven Wright yet again.