First, you should learn javascript for sure. There is flow by Facebook, that implements static type checker like Typescript; It's a preprocessor. Typescript has more success on types. I do not recommend it (before javascript). There is many many languages transpiles into JS, like Reasonml/OCaml (OCaml is one of my favorites), Elixir (I didn't have tested it but I'm sure it's good), Clojurescript (Has really good interop) etc.
Thanks for the insight! I'm already familiar with ClojureScript, ReaonML, and OCaml, and have looked at Elixir -- why do you not recommend typescript if you say it's more successful than Flow?
(Speaking assuming you know functional programming) It's mostly based on Object-Oriented Programming, and many codebases are written in Javascript and there is a possibility to not understand the JS code because of OOP concepts. Flow helps you to check types without changing the JS code. So it's better to learn JS or any other language because of your similarities.
Gotcha. I'm fairly conceptually comfortable with both paradigms, but you bring up a good point. The OOP I know how to use is not JavaScript's prototypical variety, and that's definitely a potential source of confusion.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
First, you should learn javascript for sure. There is flow by Facebook, that implements static type checker like Typescript; It's a preprocessor. Typescript has more success on types. I do not recommend it (before javascript). There is many many languages transpiles into JS, like Reasonml/OCaml (OCaml is one of my favorites), Elixir (I didn't have tested it but I'm sure it's good), Clojurescript (Has really good interop) etc.
Note that: I'm a JS
hater.Thanks for the insight! I'm already familiar with ClojureScript, ReaonML, and OCaml, and have looked at Elixir -- why do you not recommend typescript if you say it's more successful than Flow?
(Speaking assuming you know functional programming) It's mostly based on Object-Oriented Programming, and many codebases are written in Javascript and there is a possibility to not understand the JS code because of OOP concepts. Flow helps you to check types without changing the JS code. So it's better to learn JS or any other language because of your similarities.
Gotcha. I'm fairly conceptually comfortable with both paradigms, but you bring up a good point. The OOP I know how to use is not JavaScript's prototypical variety, and that's definitely a potential source of confusion.