3 ms·
Here's an oldie, but goodie from our favorite director of AI. http://norvig.com/design-patterns/ http://norvig.com/design-patterns/ It's a talk on design patt
by iamwil 19y ago
Here's an oldie, but goodie from our favorite director of AI.
http://norvig.com/design-patterns/ 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.