Loose type checking in E
Tyler Close
tyler@lfw.org
Sun, 25 Oct 1998 06:37:41 -0500
At 08:42 PM 10/24/98 -0400, you wrote:
>> Maybe I should also point out that an object with "dozens" of
>> methods is an exceptionally poor idea.
>
>Nonsense.
>
>Even in the context in which you made the comment, I don't think I
>agree. Buttons are windows, and windows are extremely complicated
>objects (semantically speaking).
Buttons are not windows. Which lame OS windowing API has gotton lodged in
your brain?
Complicated objects are not objects, they are a bunch of objects that have
been mashed together. If you have a bunch of objects that need to cooperate
to perform complex operations; then you should create a simple Facade
object that knows how to do these complex operations.
Tyler