Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Dissolving patterns (lag.net)
24 points by fogus on May 1, 2011 | hide | past | favorite | 4 comments


So what other (GoF) patterns can be 'dissolved' with first class and anonymous functions?

The following come to mind immediately:

- observer (a.k.a. listener/delegate) - visitor - command

What else?


See Peter Norvig's Design Patterns in Dynamic Languages: http://norvig.com/design-patterns/


I think he wants javascript :)


Shhh! Nobody say the M-word!




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: