News for hackers. Stuff that matters.
Re:Ask HN: Why isn't F# more popular? by neoeldex on Wednesday May 31, 2017 @08:12AM (#14451826)
What's so shitty of javascript? From what I've heard is that people's opinion has changed about that. Javascript is evolving, and so is the ecosystem.
Re:Ask HN: Why isn't F# more popular? by sametmax on Wednesday May 31, 2017 @08:31AM (#14451941)
Js was a terrible language with a great platform. Now it's a terrible languages, with a lot a make up to make it look decent, and an a powerful and rich yet very unfriendly and unstable ecosystem.

The only reason js has any success at all is the web.

Re:Ask HN: Why isn't F# more popular? by JepZ on Wednesday May 31, 2017 @08:36AM (#14451975)
At its core Javascript is a good language. Some of the problems come from the fact that at its core it is a functional language, but for years it was marketed as object oriented. And when you look at the language and expect something object oriented or procedural then you will see a very bad language.

Another aspect is the fact that many of the Javascript's problems were actually not problems of the language itself but of the environment around it, like DOM and AJAX implementations in different browsers.

Besides those major problems, the language itself has some minor problems. But as you pointed out the language has a very active ecosystem around it, which creates at least 5 solutions to every problem. But many solutions involve new languages which compile to javascript. So practically the problems are solved but the theoretical use case of writing plain Javascript is still a little problematic.

Re:Ask HN: Why isn't F# more popular? by AstralStorm on Wednesday May 31, 2017 @11:33AM (#14453290)
At the core JS combines dynamic and weak typing.

It is not even object oriented, so instead it is commonly used with the prototype approach.

It is not a functional language either as functions can define global variables, therefore they aren't actually functions. And defining global state is the default behaviour.