[bind10-dev] online resources about software design patterns
Shane Kerr
shane at isc.org
Mon Sep 21 18:16:04 UTC 2009
Evan,
Thanks for the research!
On Thu, 2009-09-17 at 17:28 +0000, Evan Hunt wrote:
> Here's the book that sort of started it all off (widely known as the
> "Gang of Four" book, or "GoF"):
>
>
> http://www.amazon.com/exec/obidos/ISBN=0201633612/portlandpatternrA/
It's not bad, if anyone wants to get a copy let me know. A lot of it
applies to GUI stuff which isn't our primary focus, but no worries.
One really good take-away is that inheritance is very often the wrong
model; OO supports it but only use it when it makes sense. A lot of the
book is about providing other ways to connect objects of different
classes (often with aggregation, or specialized forms of aggregation,
rather than inheritance).
> And here's the wikipedia page, which seems quite thorough:
>
> http://en.wikipedia.org/wiki/Design_pattern_(computer_science)
Interesting.
Not surprisingly, we have discussed concepts here already. For example
"lazy initialization":
http://en.wikipedia.org/wiki/Lazy_initialization
We are considering this in the DNS Message API, because you don't need
to do all of the expensive parsing in many cases.
Anyway, I propose we look at the Wikipedia page when we are designing
and see if we are re-inventing the patterns there, or if they can solve
our problems. :)
--
Shane
More information about the bind10-dev
mailing list