4 ms·
How does it avoid that problem? The lambda doesn't help me understand what that part actually does any more than calling the function "foo_helper" or "foo_part
by mike_hock 7y ago
How does it avoid that problem?
The lambda doesn't help me understand what that part actually does any more than calling the function "foo_helper" or "foo_partN" or something like that would do.
- davvolun 7y ago> Which isn't a problem we should be avoiding I believe we're actually arguing the same thing. Anonymous functions aren't the end of the world, but self-documenting code is better. In the JS/JQuery world, breaking away from anonymous functions would represent such a fundamental shift in practice, I'm not going to do it on my own, but in Angular, I stay away from anonymous functions.