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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4b06f8f15f01a568 X-Google-Attributes: gid103376,public X-Google-Thread: fac41,9a0ff0bffdf63657 X-Google-Attributes: gidfac41,public X-Google-Thread: f43e6,9a0ff0bffdf63657 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,9a0ff0bffdf63657 X-Google-Attributes: gid1108a1,public From: "Christopher P. Gariepy" Subject: Re: Module size (was Re: Software landmines) Date: 1998/09/04 Message-ID: <35EFFB78.21BBBED6@ksc.nasa.gov>#1/1 X-Deja-AN: 387852597 Content-Transfer-Encoding: 7bit References: <6snlos$bh6$1@hirame.wwa.com> <904912650snz@nezumi.demon.co.uk> To: Martin@nezumi.demon.co.uk Content-Type: text/plain; charset=us-ascii Organization: NASA, Kennedy Space Center Mime-Version: 1.0 Newsgroups: comp.lang.eiffel,comp.object,comp.software-eng,comp.lang.ada Date: 1998-09-04T00:00:00+00:00 List-Id: Martin Tom Brown wrote: > > >He used to program for a living, but he's never done real work in an OO > > >language. When I tell him the project has 510 classes, with 2871 methods, > > >he nods his head wisely. But when I tell him that 965 of those methods > > >contain one line of code each, he starts to frown. He asks me if maybe > > >we're taking modularization a bit too far. When I tell him that we have > > >63 methods that contain zero lines of code, he wants to know why we > > >bothered to write them in the first place, if they don't do anything. > > > > > >I can't think of a short answer. > > > > They exist for the same reason that we put zeroes in numbers -- they are > > place holders. > > Beautifully succinct. > I'm fairly new to the OO methodology, and I can see a reason to, perhaps,have methods with 1 line of code - especially if the method is used in numerous places. But...I see no reason to have methods that contain no code at all, even if they're meant for place-holders. I believe this could potentially create a maintenance nightmare if the original designers of the system are not involved in the maintenance of the system. > > > Regards, > -- > Martin Brown __ CIS: 71651,470 > Scientific Software Consultancy /^,,)__/ -- Christopher Gariepy CLCS Real-Time Control AppSw United Space Alliance Kennedy Space Center, FL (407) 861-7508 Caveat: Any views or opinions expressed herein are mine only, and do not reflect the views of United Space Alliance or NASA. Read at your own risk. :-) To the email "police" who may be reading this: Greetings!