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

I submit that a filter predicate is an instance of the strategy pattern. The biggest difference between the two approaches is that one makes for a much less interesting UML diagram, so nobody ever really bothered to declare it a Design PatternĀ® and stick it in a long-winded book that we force college students to read.

http://wiki.c2.com/?ClosuresAndObjectsAreEquivalent



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

Search: