3 ms·
I couldn't explain it better if I tried. The message is: we cannot just take "design patterns" from one language and shove them into another. All a "design pat
by outworlder 13y ago
I couldn't explain it better if I tried.
The message is: we cannot just take "design patterns" from one language and shove them into another. All a "design pattern" is, is standard way to mitigate a lack of abstraction. If the language itself had a way to, say, create singletons (for instance, by having a singleton keyword), the need for that particular pattern would disappear.
Likewise, design patterns for javascript should be based around the points where the abstraction is lacking. Therefore, they'll be likely very different.