4 ms·
> The Design Patterns guys were often saying that design patterns and other kinds of common incantations were often symptoms of deficiencies in programming lang
by bcbrown 9y ago
> The Design Patterns guys were often saying that design patterns and other kinds of common incantations were often symptoms of deficiencies in programming language design.
When I reread the GoF book a few years ago, I was struck by the number of patterns that are just built-in to modern languages.
- rrobukef 9y agoMost of the behavioural patterns are eased by fp techniques like lambdas+currying and adt/pattern matching (visitors are well known losers). The structural patterns are however much more a pain in fp while they feel natural in oo. Facades and decorators need type hiding that's only nice(r) with existential types. The creational patterns are a mixed bag. Builder, singleton fit with fp, Abstract Factory fits with oo and factory methods with both. What do you think? How are the oo patterns improved by other techniques. Though a lot of those patterns are probably for C style oo.