DEV Community

Discussion on: TypeScript before JavaScript?

Collapse
 
deciduously profile image
Ben Lovy

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?

Collapse
 
lyfolos profile image
Muhammed H. Alkan

(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.

Thread Thread
 
deciduously profile image
Ben Lovy

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.