[Tutor] Law of Demeter example request

Timothy Wilson wilson@visi.com
Wed, 26 Dec 2001 15:56:21 -0600 (CST)


Hi everyone,

I'm looking over the early version of Bruce Eckel's _Thinking in Python_
and I've got a question about the Law of Demeter, or as Bruce puts it,
"Don't talk to strangers."

I *think* I get it, but it would be great if someone would post a brief
example illustrating the concept. Preferably, the example should show
the same short program in two versions, one obeying the law and 2nd
ignoring it.

-Tim

--
Tim Wilson      |   Visit Sibley online:   | Check out:
Henry Sibley HS |  http://www.isd197.org   | http://www.zope.com
W. St. Paul, MN |                          | http://slashdot.org
wilson@visi.com |  <dtml-var pithy_quote>  | http://linux.com