2 ms·
> What async programming really gives you is event driven programming - the ability just to set up functions to run when certain things happen, as opposed to tr
by zzzeek 8y ago
> What async programming really gives you is event driven programming - the ability just to set up functions to run when certain things happen, as opposed to traditional ... do this step one then do this step two until program finishes. Again quite foreign if you havent done much event driven programming but it’s really powerful.
you actually don't need to use non-blocking sockets in order to write callback-oriented code. Nor do you need event-driven programming to use non-blocking sockets. this whole argument is about syntactic sugar but below the surface it is also about confusion over these two distinct concepts.