-
Notifications
You must be signed in to change notification settings - Fork 396
Anti patterns
briancavalier edited this page Oct 3, 2014
·
2 revisions
This is an evolving collection of anti-patterns and alternatives for avoiding them.
-
Overuse of join/spread. Use
when.try(func, p1, p2, ..)
- Creating new promises unnecessarily. Chain from existing promises.
- Using promise.done inside promise.done. Return inner promises, use done only at outermost layers.