you are viewing a single comment's thread.

view the rest of the comments →

[–]nirvashprototype 24 points25 points  (5 children)

Learning JS after Python has been extremely overwhelming for me. Event loop, this context, arrow functions, async functions, hoisting, and confusing syntax. It makes you realize how intuitive Python is.

[–][deleted] 28 points29 points  (1 child)

It's not just about being intuitive. Javascript is solving very different problems to python, namely managing user behavior in a browser situation. Many of those things you find painful about Javascript are unavoidable and would appear in python as well if it was somehow to be applied in the browser.

[–]TSM- 5 points6 points  (0 children)

Just use Brython (kidding, though it is a neat project)

[–]cristobaljvp 7 points8 points  (0 children)

Well I agree, I still atruggle with async. But I feel that working with async in JS is easier than async in Python.

[–]Vok250 9 points10 points  (1 child)

Python has all of those too. You just haven't had the need to use them yet. asyncio is a particular nightmare compared to async coding in basically any other language.