|
But, the design of the event loop does lead to added complexity when you have to wait for external events, such as waiting for database or other file access. In Node, you have to either deal with "callback hell" (like you do in browser-based JavaScript) or resolving Promises... though, honestly, once you get good at Promises they work very well. So for multi-processing, its hard to beat.
On the other hand, Python is simpler because you don't have to worry about Promises/Callbacks. It's a bit more clunky for web programming, writing REST APIs, or other types of server code (unless the server is very simple or low-volume) than Node.js, but for stuff like scripting (similar to what you'd do in CL, REXX, bash scripts, etc) Python is considerably easier.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.