|
| 1 | + |
| 2 | + ┌───────────────┬──────────────────────────┬──────────────────────────┐ |
| 3 | + │ │ Imperative │ Functional │ |
| 4 | + ├───────────────┼──────────────────────────┼──────────────────────────┤ |
| 5 | + │ Control flow │ Algorithm steps │ Expression, Function │ |
| 6 | + │ Identifiers │ Assignment statement │ Call arguments │ |
| 7 | + │ State │ Hold state in contexts │ Stateless pure functions │ |
| 8 | + │ Branching │ Conditional statement │ Conditional expression │ |
| 9 | + │ Iteration │ Loops (for, while, do) │ Recursion calls │ |
| 10 | + │ Context │ Object context │ Closure, Functor, Monad │ |
| 11 | + │ Instantiation │ New, Factory, Builder │ Factory function │ |
| 12 | + │ Pool reuse │ Object pool │ Pool, factory poolify │ |
| 13 | + │ Inheritance │ Classes and Prototypes │ Compose, Partial, Curry │ |
| 14 | + │ Virtual │ Virtual classes, methods │ Function contracts │ |
| 15 | + │ Field access │ Getters and Setters │ Lenses │ |
| 16 | + │ Boxing │ Facade and Adapter │ Wrappers and Closures │ |
| 17 | + │ Extend │ Mixin, Decorator │ Map, Decorator │ |
| 18 | + │ Asynchronity │ Callback, Locking │ Callback, Async compose │ |
| 19 | + │ Async sugar │ Observable, async/await │ Promise, FutureContainer │ |
| 20 | + │ Caching │ Hold cache in Hash Table │ Memoization │ |
| 21 | + │ Chaining │ Method returns object │ Return function/object │ |
| 22 | + └───────────────┴──────────────────────────┴──────────────────────────┘ |
0 commit comments