Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: