Skip to content

Commit b563383

Browse files
committed
Add comparison table
1 parent bcec6b2 commit b563383

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

JavaScript/COMPARE.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

Comments
 (0)