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

Design patterns are good practices that emerge when a language is used by a lot of people. That's it. Nothing less, nothing more.

There are two kinds of languages: languages that have design patterns and languages that don't have a lot of users.



So Haskell and Lisp are just lacking users? It has nothing to do with language design?


Those languages have a ton of patterns. Heck, not only they have patterns, but some of the patterns are studied to the point of having an entire branch of mathematics dedicated to them and have countless properties that can be proven about them. They even predate the language (Category Theory)


Macros that have names starting with "with-" and allocate some non-managed resource for the dynamic scope of their body are one obvious design pattern in Lisp.


"functional pearls" == "design patterns" without the architectural garbage.




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

Search: