[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: computer-go: Sharing Go modules - ready for download
Yep, a FlyWeight is sort of an non-object that we can make an object,
mainly because the naive OO implementation would have too much overhead.
I think you've hit the nail on the head: DP names a bunch of things at
a slightly higher level of abstraction than pure data structures. A
more cynical view might be: name a few things we do all the time, and
name 15 hacks we need to do because we aren't using LISP :)
Darren Cook wrote:
>
> >I was curious as to what a FlyWeight might be. It seems to mean a
> >re-usable object.
>
> It is one of the patterns (*) in "Design Patterns" (ISBN 0-201-63361-2).
> That is a book many describe as essential. I was a bit disappointed when I
> read it: it is full of the "bleeding obvious" (at least if you've got a few
> years programming experience).
>
> But maybe it's biggest contribution is giving names to the patterns; I'm
> seeing the names crop up more and more in library documentation, etc.
>
> Darren
>
> *: "Flyweight: Use sharing to support large numbers of fine-grained objects
> efficiently."