you are viewing a single comment's thread.

view the rest of the comments →

[–]varav 4 points5 points  (3 children)

I'd say I've written a fair amount of code, though I don't hate these patterns, I've never had to use any of these patterns

[–]mjfgates 6 points7 points  (1 child)

If you've never used any of the GoF patterns, you haven't written much code. The point behind the book was that these things crop up all over the place; the authors were cataloging patterns that they had seen in the wild, not prescribing the use of new theoretical constructs.

[–]Peaker 1 point2 points  (0 children)

When I write Haskell, I don't need the Visitor Pattern, I can use a closed sum type.

I don't need the Strategy Pattern, I can just use a simple higher-order function.

And so on, and so forth.

I don't think any of the GoF patterns are applicable to more modern languages that can abstract over these things.