Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Same. I analyzed a little why I find JS (I don't like TS) easier to deal with for some tasks:

- Particular support for web frontends or backends, both very broad categories.

- JS concurrency is easier to deal with. Focused entirely on promises with the nice async/await syntax on top, unlike Python which slapped on too many different ways to do this.

- By far easier package management and imports. Python's is so annoying that any project you download is gonna have you spin up a Docker container for it.

- ES6 added a lot of array/etc managing that JS was lacking before.

- Freeform objects with {key: value} syntax are convenient, despite maybe seeming weird at first. Python OOP somehow got really complicated over the years.

- Inline functions (I use fat-arrow but regular way is also fine). I never got why Python, despite being common in function-oriented programming, didn't let you do an inline def.

- Curly braces. Indentation shouldn't affect logic flow.

- No Python3 vs 2 drama.

Specific use cases have been Express backends with node-postgres and lots of SQL, and React (or RN) frontends.



Python 3 vs 2 drama is from 5 years ago. It's just python 3 now.


"Python 2 is unsupported by the Python Foundation since 2020-01-01" according to Debian docs. Ubuntu defaulted to Py2 until around then. So I'd say that's when the drama ended, then again it's probably not the last I've seen of Py2.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: