Looks nice, and looks almost identical to the module we've grown internally 
=).

One API addition we've found is very nice for keeping code maintainable is 
to have the "inc" function return the .done function, so instead of:
  todo.inc(2);
  task1(todo.done);
  task2(todo.done);
(fails when someone adds another task and forgets to increment the initial 
line) or this:
  todo.inc();
  task1(todo.done);
  todo.inc();
  task2(todo.done);
(slightly annoyingly verbose), you simply have
  task1(todo.inc());
  task2(todo.inc());


Jimb Esser


On Friday, February 1, 2013 10:19:45 AM UTC-8, Oleg Slobodskoi wrote:
>
> I like that you like it :)
>
>
> My advice is to step away from async/step like libraries, they make the 
> code harder to understand at the end if the code is not trivial.
>
>
>
> Am 01.02.2013 um 18:10 schrieb Thomas Gray 
> <[email protected]<javascript:>
> >:
>
> That's an awesome looking library - exactly solves the problem that i'm 
> having at the moment! Thanks!
>
> On Thursday, January 31, 2013 5:47:35 PM UTC, Oleg Slobodskoi wrote:
>>
>> If you don't want to use all the async/steper libraries but just want a 
>> reliable way to know when the function is done - this is for you.
>>
>> https://github.com/kof/do
>>
>> Feedback welcome.
>>
>> Oleg Slobodskoi
>>
>> @oleg008
>>
>
> -- 
> -- 
> 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 [email protected] <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <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 [email protected] <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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to