From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,9a0ff0bffdf63657 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,4b06f8f15f01a568 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,9a0ff0bffdf63657 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,9a0ff0bffdf63657 X-Google-Attributes: gid1108a1,public From: "Robert Martin" Subject: Re: Which wastes more time? (Was Re: Software landmines (loops)) Date: 1998/09/06 Message-ID: <6svc3j$2cv$1@hirame.wwa.com>#1/1 X-Deja-AN: 388546039 References: <6rfra4$rul$1@nnrp1.dejanews.com> <35DBDD24.D003404D@calfp.co.uk> <6sbuod$fra$1@hirame.wwa.com> <6sebjr$b69$1@nnrp1.dejanews.com> <6sff74$q0s@gurney.reilly.home> <6sh2j5$jnl$1@nnrp1.dejanews.com> <35EC2E5A.16DB6CB1@bigfoot-.com> <6sjc0a$1lk$3@news.indigo.ie> <35EFB09E.15412933@s054.aone.net.au> <35f2bd98.40599408@news.erols.com> <35F06A58.F968BDE1@s054.aone.net.au> <35f48276.90997557@news.erols.com> <35F0C3C9.D1E56FF3@s054.aone.net.au> <6srh67$sj5$1@hirame.wwa.com> <35F1C0B9.8A50CEB0@s054.aone.net.au> <6ssmjd$h0l$1@hirame.wwa.com> <35F20C37.89A79442@s054.aone.net.au> <6su5ir$co8$1@hirame.wwa.com> <35F30B44.EDF1F9F2@s054.aone.net.au> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: WorldWide Access - Midwestern Internet Services - www.wwa.com Newsgroups: comp.lang.eiffel,comp.object,comp.software-eng,comp.lang.ada Date: 1998-09-06T00:00:00+00:00 List-Id: Loryn Jenkins wrote in message <35F30B44.EDF1F9F2@s054.aone.net.au>... > >Ah! Games from Maxis. I've never seen Sim Tower, but I have seen Sim >City, Sim City 2000 and Sim Earth. I enjoy these games, together with >Myst and Riven, more than any other type of game. > >Now. I don't think these are examples of PERSONs. Take a look at the >"coherent sets of behaviour" exhibited by these entities: the Role is >co-extensive with the entity itself; I certainly would not reach for my >"Role tool" here. > >Instead, BREADWINNER and HOMEMAKER fit the three tests I apply for >sub-typing: >(1) Is a { BREADWINNER | HOMEMAKER } a SIMULTON for its entire >existence? >(A1) Yes. > >(2) Can a SIMULTON be a { BREADWINNER | HOMEMAKER } for its entire >existence? >(A2) Yes. > >(3) Are BREADWINNERs disjoint from HOMEMAKERs? >(A3) Yes. > >This is a different world, a different reality. You have chosen >something that superficially resembles "our world" of people who act in >certain roles; but they aren't. > >Can you think of any other example that more closely fits my question? I don't think I have to. You see, the programmer who writes the software would probably not call the base class SIMULTON. They would probably call the base class PERSON. At least there is a good chance that this would be so. Robert C. Martin | Design Consulting | Training courses offered: Object Mentor | rmartin@oma.com | Object Oriented Design 14619 N Somerset Cr | Tel: (800) 338-6716 | C++ Green Oaks IL 60048 | Fax: (847) 918-1023 | http://www.oma.com "One of the great commandments of science is: 'Mistrust arguments from authority.'" -- Carl Sagan