by rockyj · 14y ago · 0 comments
On the flip side, code can be hard to maintain and you need to be more disciplined so that you can read the code later otherwise it becomes a callback spaghetti. Doing everything through callbacks also requires a mental shift.
Like with everything in life, there are pros and cons and tradeoffs. So choose wisely :).
It's fast, easy to setup (npm install), and relatively hardened, while still keeping everything JS.
As for static assets, those should probably be served from a CDN anyway, if one is concerned with performance.
If you write modular and/or functional code, JS code bases can be just as easy / hard to maintain as any other language.
Gevent in python for example is pretty popular and similar is the case with Em-synchony in Ruby.
I have used callback objects but really that is not even close to what one can achieve with Fibers or Greenlets.