3 ms·
I don't see much point in going from one dynamic untyped language to another. Javascript and Python offer much of the same advantages and disadvantages, but hav
by chrischen 4y ago
I don't see much point in going from one dynamic untyped language to another. Javascript and Python offer much of the same advantages and disadvantages, but having to deal with the overhead of running python code seems to just saddle it with tradeoffs for no real benefit. Learning one or the other is fairly easy too.
May as well write Javascript directly, as NPM is not short on packages if that's what you need. I see more value in going from higher level languages like ReScript, Purescript, Melange (Reasonml + Rescript compiler) to Javascript. You have to deal with things like code interop, strictness, overhead of compilation, but you at least gain in safety and succinctness.
- VerminOctopus1 4y agoThe advantage is obvious. People who know and/or enjoy Python can get into web dev without having to fuss with a new language. It’s really that simple.
- throw_m239339 4y ago> The advantage is obvious. People who know and/or enjoy Python can get into web dev without having to fuss with a new language. It’s really that simple. All web API docs are written for Javascript. Knowledge and practice of Javascript is mandatory for front end development at first place.
- chrischen 4y agoAgreed. Even with the higher level languages that compile to JS you still need to know JS, but you also get the benefit of the stricter languages.
- chrischen 4y agoIf that’s what you are doing then most of how you write python can be done in javascript. The languages are not too different except for superficial syntax stuff. You also inherit the problems that come with compiling and also in general the lack of web-oriented packages that javascript offers.
- dragonwriter 4y ago> May as well write Javascript directly, as NPM is not short on packages if that's what you need. I haven't heard of an equivalent of the Python scientific stack for JS, and that seems to be one of the key selling points here.
- mr_toad 4y agoThat’s a good use case, but the theme seemed to be “Python all the things!” It came across as a bit fanatical.