DEV Community

Discussion on: What every programmer should know about Synchronous vs. Asynchronous Code

Collapse
 
puleta profile image
Puleta

great post, can you add some situation where we should use synchronous code in stead of asynchronous?

Collapse
 
amejiarosario profile image
Adrian Mejia

Never :) You should never use an asynchronous code when you have an alternative. Otherwise, you would be blocking the program from doing other tasks. Even when you need to execute code in a sequence you can do it with async. I'll write a follow-up post about that.

Collapse
 
puleta profile image
Puleta

thanks for replying 😀