Earlier quoted context omitted.
the problem is callbacks as a pattern if you have a multiline function it should be named and unit-tested instead of just stuffed anonymously into some pyramid of doom
> if you have a multiline function it should be named and unit-tested instead of just stuffed anonymously into some pyramid of doom It's like saying all data should be declared as variable, in the functional programming paradigm, functions are data. That's why closures are useful. And it has absolutely nothing to do with unit-testing, that's beside the point. Javascript is not harder to unit test because it has fully…
It is if you actually use them. ;)