Why is Java so famous

First of all: Yes, programming languages ​​can be ends in themselves. Obviously they don't feel that way, but I enjoy getting to know new concepts and facing new challenges. In the last few years I have learned some programming languages, some superficially, others in detail. I had a lot of fun doing it.

They don't see why new programming languages ​​can make programs more error-free. I'll just assume that you've never programmed in Rust or Typescript.

Rust introduces the new concept of "ownership", which can prevent data races by checking at compile time. None of your legacy languages ​​can offer this feature. The fact that the compiler prevents certain things also forces the developer to think better about what he is actually doing there. Try it out and you'll find out. The language offers first-class possibilities for asynchronous programming, for network programming, for low-level programming without the baggage of 40 years that C ++ has to lug around with, because every few years you haphazardly add new features without being able to remove old errors.

JavaScript is (or was until recently) the only way to program the browser. There is no way around JavaScript here, you cannot do that with COBOL. Unfortunately, JavaScript is one of the languages ​​in which even experienced developers quickly make mistakes, as there is no type checking and the language has some strange peculiarities. Typescript does it better by offering the option of type annotations (and depending on the configuration, also enforcing them). This significantly reduces the risk of problems in larger projects. TypeScript is a huge step forward over Javascript and it definitely has its raison d'etre.

You say that the possibilities of CPUs are growing, but do you argue that languages ​​from the 50s should continue to be used? Multitask in COBOL and C, have fun! Google, Microsoft, Amazon and other large and small companies (among others) rely on new programming languages. Programming languages ​​such as Go, Rust and JavaScript / TypeScript (Node.js) are especially made for server applications. 50, 60, 70 years ago when creating Fortran, Algol 60 and C nobody thought of this application. Just as little as with AI, smartphones and toasters. The requirements change.

I don't even know how you can get interested in computers in the first place. After all, mankind has survived the last 4000 years using slide rules as well. These can be understood by everyone regardless of any language, and they just work. No bugs, no internet, no open source, no levels of abstraction, just the right thing for your needs.

Seriously, if everyone mistrusted progress as much as they did, if the inventor of the fire ran away in fear, if the inventor of the wheel had waited for TÜV certification before daring to use it, we would still live in caves. Times change, and COBOL is really not suitable for modern uses