Hey, Just out of curiosity: why do you prefer promises to callbacks?
- Alex On Thursday, March 7, 2013 7:16:29 PM UTC+2, Michael Jackson wrote: > > :D Thanks David. > > I've been programming almost exclusively in promises these past few months > and it feels pretty good. Plus, I'm a big believer in tiny modules and > simple code bases. Helps me grok them a bit easier when they're small. > > Also, thanks for your work on node_redis! > > > -- > Michael Jackson > @mjackson > > > On Wed, Mar 6, 2013 at 8:54 PM, DTrejo <dtr...@cs.brown.edu > <javascript:>>wrote: > >> Redis is 300 LOC!? ;) >> >> Cheers and good to have some competition to make us node_redis >> maintainers get into gear. >> D >> >> On Wednesday, March 6, 2013 1:23:25 PM UTC-5, Michael Jackson wrote: >>> >>> Hello, >>> >>> then-redis is a small, promise-based Redis client for node.js that I've >>> been working on over the past few weeks. It supports all the features of >>> Redis in a simple, user-friendly package. I thought others might enjoy >>> using it as well, so I released the source this morning. >>> >>> https://github.com/mjijackson/**then-redis<https://github.com/mjijackson/then-redis> >>> >>> The two major differences between then-redis and node_redis are: >>> >>> 1. then-redis returns a promise when you issue a command >>> 2. The entire codebase is very small (~300 LOC), just like Redis >>> >>> Other than that the APIs are very similar. If you're using Redis and you >>> enjoy promise-style programming please check it out and let me know what >>> you think. >>> >>> Install it: npm install then-redis >>> >>> Enjoy! >>> >>> -- >>> Michael Jackson >>> @mjackson >>> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to nod...@googlegroups.com<javascript:> >> To unsubscribe from this group, send email to >> nodejs+un...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to nodejs+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.