5 ms·
Irrelevant but I must say it: Node.js forced async IO is its strength but programming it is a pain in the butt.
by pistacchioso 13y ago
Irrelevant but I must say it: Node.js forced async IO is its strength but programming it is a pain in the butt.
- dagw 13y agoI used to think so too, then I stopped trying to use it for everything and started treat it as a DSL for just writing IO heavy asynchronous web services, and now I'm much happier.
- argonaut 13y agoThis sounds interesting. Can you elaborate on what you mean? Do you mean using node in conjunction with another backend language/[micro-]framework?
- dagw 13y agoBasically. My general setup (to the extent that it is reasonable) is to set up my web apps as a collection of freestanding APIs that simply send and receive JSON. The only component in common between the APIs is the back end database(s). This way I can write each API using the framework/language that makes most sense for the task and simply chuck Nginx in front of the whole thing to have it route requests to the right back end.
- camus 13y agonode is designed for async io, is fast , but not that fast when it comes to heavy sync calculations , i guess it is not for everything. but since most webdevs know javascript it is the perfect buddy for any other solution out there.
- mayank 13y agoCheck out caolan's async module. It changes how you think about writing nontrivial js.