News for hackers. Stuff that matters.
Re:GoF patterns in ruby by iamwil on Sunday October 14, 2007 @08:51AM (#67641)
Here's an oldie, but goodie from our favorite director of AI.

http://norvig.com/design-patterns/

It's a talk on design patterns in dynamic languages, how most of the GoF design patterns get simplified or just go away. I can't iterate through each pattern and tell you how, but as anecdotal evidence, this has been my experience as well. Closures and first class functions, as well as dynamic typing gives ways around certain patterns.

That's not to say Ruby doesn't have design patterns. The more I look at metaprogramming constructs, the more I see the same tricks that people use. It's just not yet been enumerated by the Next GoF.

There are no comments on this comment yet.