Saturday 25 March 2017

Yields & generators vs Promises

Hi everyone!Because of my interest in NodeJS i'm going to make a API in NodeJS, just to learn more about node. I used some frameworks like SailsJS before, but I think creating a API from scratch can help me more understanding node. In SailJS i always used promises for the sake of readability. But I read a few articles about yields and generators and I think this improves the readability in node when working with async code. Now i'm wondering if I should use Promises or Yields and generators in my API. What do you developers think??

Submitted March 25, 2017 at 10:04PM by goodnoodlesoup

No comments:

Post a Comment