Don’t call my callback too early
Don’t call my callback too late
Don’t call my callback too few times
Don’t call my callback too many times
Make sure to provide my callback with any necessary state/parameters
Make sure to notify me if my callback fails in some way
Oh my god, these apply to every function call in my application! Promises are the hammers to all the nails!
29
u/[deleted] Jul 10 '16
Callbacks obsolete? Seems premature to say so.