Anonymous functions, the art of the callback. I'm going to propose that you never write a callback again using an anonymous function, and I'll sell you the idea now.
Here's a few reasons why you should stop doing this... anonymous functions:
* Are more difficult to debug
* Cannot be reused
* Cannot be tested easily
* Do not describe the role of the function
* Make code lack structure
* Create messier/unclear code
* Documentation will suffer (things like jsDoc)
Your new post is loading...