I have been trying to come around to using promises "correctly" and moving away from using callbacks, where catching errors was usually a bit more elegant in my opinion.
I'm still sort of yearning for callbacks and using async but I suppose that is in the past now.
Your handle function really nails it for me, it was just what I was looking for. Great post and explanation :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have been trying to come around to using promises "correctly" and moving away from using callbacks, where catching errors was usually a bit more elegant in my opinion.
I'm still sort of yearning for callbacks and using async but I suppose that is in the past now.
Your
handle
function really nails it for me, it was just what I was looking for. Great post and explanation :)