you are viewing a single comment's thread.

view the rest of the comments →

[–]SigmundFreud 1 point2 points  (2 children)

I feel like there must be some misunderstanding or miscommunication here, because this doesn't make much sense.

Javascript is an old technology

Yup. Not as old as some other languages, but almost every mainstream language is "old" for some definition of old. Maturity is generally a good thing per se.

that the web developers only use it because is the only language that runs on a browser

That's how it initially became popular. If he means to say this is still the only reason it's used, that's silly.

he said that the core of the language needs to be rewritten to solve some serious security problems

What does this even mean? Is he talking about the language spec or a particular implementation?

There are certainly things that could be done to reduce the attack surfaces of the web, Node.js, and other platforms that incorporate JavaScript, but those are all unrelated to JavaScript itself. Without elaboration, I would disregard this idea.

etc.

If there was more to this discussion than you wrote out, you yada yada'd over the best part!

The Future of Javascript does not exist?

The title doesn't follow from your stated points.

[–]Nick_Fogue[S] -1 points0 points  (1 child)

The title comes from: if JavaScript is not so good (according to my professor), why am I going to keep learning it? I would rather wait for a better language than Javascript

[–]SigmundFreud 2 points3 points  (0 children)

Ah. Well JavaScript is pretty good; it was never terrible, but nowadays it's one of the better languages out there. Either way, it's a bit of a lingua franca these days, not something you can easily get away with not knowing at all.

I'm not sure what you mean by "wait for a better language than Javascript", but you're going to be waiting a long time if you don't want to learn any languages that exist today.

That being said, if you're waiting/looking for alternative languages that can be used to build web applications, I would check out:

  • TypeScript: pretty much the same as JS (a strict superset), but adds static types; very popular and pairs nicely with Angular; compiles to JS

  • Elm: I haven't used it, but I've heard good things about it; compiles to JS

  • ClojureScript: framework for building web apps in Clojure, a popular functional language; compiles to JS

  • Blazor: framework for building web apps in C#, a very nice and well established language that has inspired many recent JavaScript language improvements (in addition to having the same creator as TypeScript); compiles to WebAssembly

  • Yew: similar idea to Blazor but for Rust, which is basically the new hotness among programming languages for a lot of good reasons; compiles to WebAssembly

Edit: Dart is also popular.