views:

584

answers:

8

Do you frequently use design patterns outside the Gang of Four design patterns book? If so, where did you pick them up from?

+11  A: 

Most of the patterns I've known and used beyond the GoF book are from Patterns of Enterprise Application Architecture by Martin Fowler, which are more applicable to "enterprisey" and business applications.

Jon Limjap
+1  A: 

Enterprise patterns lists the links including Enterprise solution patterns using Microsoft.NET. One of my favorite non-GoF is Generation Gap, which I came across using code generator library. Also there are some well known patterns on multithreading/concurrency that comes from Concurrent Programming in Java like Guarded Suspension.

eed3si9n
+2  A: 

+1 for Fowler's PoEAA. It's a fantastic book.

Brad Wilson
+1  A: 

All the time. GoF's design patterns book is, unless I have a really spotty memory, unaware of generics and the things you can do with them.

+2  A: 

The NullObject pattern is one I stumble upon quite a lot and is not GoF's.

abyx
+3  A: 

Learn Ruby.

Here's my cool (and sadly, true) story:

I learnt ruby, and then went back to writing C# code.

The problem is, there's so many useful things you get used to doing in ruby which are just naturally part of it, that don't really work in C# (or java).

I ended up writing lots of hackety libraries and code over and over again to accomplish all of the great techniques my brain had become accustomed to thinking in due to ruby.

One day I followed some of the many links to the GoF design patterns book and lo and behold there were clearly documented examples of my hackety code. It turns out many other people had also attempted to use some of the cool techniques I learnt from ruby, and had written a book about some of those techniques! imagine that!

Anyway. If you want to learn more techniques *which is what design patterns are) then learn a language like ruby or lisp which makes those kind of things part of the language.

Orion Edwards
+1  A: 

Sourcemaking.

rafek
+1  A: 

Model-View-Controller also isn't in the GoF book. Many web frameworks use some version of MVC.

James A. Rosen