That have nothing to do with pollution! Callbacks aren't the best choice 
for all.

As an example, Javascript is a nice and easy language but not consistent. 
You would use JS for Server-Development and Scripting, but would you use 
Javascript for a time-critical programm?

Am Donnerstag, 14. März 2013 23:12:47 UTC+1 schrieb Bruno Jouhier:
>
> Callbacks are easy (*). Sync calls are an abomination in node.js. 
> Unfortunately we cannot get rid of the ones that are already there. But we 
> should not add more.
>
> (*) Some claim that they are easy for us humans. I find them too painful 
> for humans but still easy because they can be mechanically generated by a 
> tool. If you find callback programming too difficult then pick a tool! 
> Don't pollute APIs!
>
> Less API is better API
>
> Bruno
> .
>
> On Thursday, March 14, 2013 9:32:18 PM UTC+1, Sebi wrote:
>>
>> Many functions in NodeJS have a Sync pendant to the non-blocking 
>> functions.
>> Why is there no blocking pendant in the child_process module?
>>
>> I've giving up as I tried to iterate over a directory and call for every 
>> file
>> child.exec....
>>
>> how should my app now, that every process completed his task?
>> I'm going to run in trouble, because to use a timer to check that seems 
>> to be not a powerful resolution.
>>
>> Think there should be a sync pendant in the core child module....
>>
>> Sometimes you're going to the "callback" hell...
>>
>

-- 
-- 
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