3 ms·
So why is node, with it's callback hell and single thread, worse? Is it syntax? That single thread assumption can free you from some significant problems, you
by 0xdeadbeefbabe 12y ago
So why is node, with it's callback hell and single thread, worse? Is it syntax? That single thread assumption can free you from some significant problems, you know. golang's own http lib is event driven and uses callbacks, but perhaps less hellishly. I agree it is hard to push go if you don't properly understand it.
- frowaway001 12y agoComparing Go and Node is like asking whether someone wants his paster served with vomit or feces. Yes, some people might prefer one over the another, but asking how they ended up with such a ridiculous issue would be a much better question.
- lebek 12y agoGo's http package doesn't use callbacks at the API level. See here http://golang.org/pkg/net/http/ http://golang.org/pkg/net/http/