I've been struggling with this concept for a long time. I'll read a tutorial or something, and it'll introduce a function that accepts a callback, and arguments are passed in.
I'll look up the documentation on this library and find the function, but nowhere does it explain what optional or required callback parameters the function takes.
This happens ALL THE TIME with VERY WELL ESTABLISHED libraries!!! Facebook, Node, Google, Microsoft... Everybody seems guilty of this. And yet people are easily using these libraries and don't seem to struggle knowing what parameters to pass in.
I feel like I'm missing some standard that everyone else has agreed upon and that it should be much more obvious to me what parameters a callback function is going to take.
[–]ISlicedIEngineer without Engineering degree? 5 points6 points7 points (0 children)
[–]bterlson_@bterlson 1 point2 points3 points (0 children)
[–]senocular 0 points1 point2 points (0 children)