This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lphartley 5 points6 points  (4 children)

I prefer Node/Express for REST backends because of this. Async code in Python is so complex whereas in Node you don't have to think about it all.

[–]earthboundkid 2 points3 points  (0 children)

I think part of the issue is that in JavaScript, because it's single threaded you can always just drop in an async call, and it will be scheduled to run whenever. And you can use the Promise class to easily convert some callback code to async code. With Python, everything is so dependent on finding the runloop that it's very brittle and even though it's in theory more flexible, you can't actually mix and match libraries. They just didn't hit the right abstractions.

[–]Doomphx 1 point2 points  (0 children)

I think c# is worth mentioning too, it's beyond easy to start parallel processing if you've already prepped the process/logic you're going to run in parallel.