Liquid syntax error: Unknown tag 'endraw'
For further actions, you may consider blocking this person and/or reporting abuse
Liquid syntax error: Unknown tag 'endraw'
For further actions, you may consider blocking this person and/or reporting abuse
Olumuyiwa Afolabi -
thinkThroo -
Wiktor Nazaruk -
Matthew Bill -
Top comments (10)
Nice article, check this out npmjs.com/package/await-handler
Using this we can skip the try catch block and handle error there it self. Like in case you want to show different error message for different errors, one way to go.
Nice, Thanks for sharing this!!
Thanks, enjoyed reading it!
Nicely written!!
"I think you should know about Synchronous and Asynchronous programming in JavaScript(or any other language)"
Except that no ... the three patterns of Async programming you describe don't apply to any other language except Javascript.
While ReactPHP has some things that resemble callbacks, just about any other async-capable language uses multithreading, either soft threads (managed by the platform such as Go's goroutines or PHP Swoole's coroutines), system threads or full-blown parallelism.
For a fully relevant discussion on async programming, it might be better to start with concurrency vs parallelism and then see what JS is capable of.
This article basically focuses on callback hell and I have given just a quick overview of async programming, although I agree on your point -
"the three patterns of Async programming you describe don't apply to any other language except Javascript."
Thank you for mentioning it, I should've added it to my article.
Great piece :-)
Thanks ;-)
Awesome piece~ Thanks for the detailed yet clear and practical post
Glad you liked it.