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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d89b08801f2aacae X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-06 10:40:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.columbus.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3CD6C008.4E544675@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Is strong typing worth the cost? References: <4519e058.0204290722.2189008@posting.google.com> <3CCE8523.6F2E721C@earthlink.net> <3CCEB246.9090009@worldnet.att.net> <3CCFD76A.A60BB9A8@flash.net> <3CD0A3B8.7B7C8622@san.rr.com> <3CD15FAE.6DEE0AD@despammed.com> <3CD16B60.93078396@san.rr.com> <3CD1B496.DBE8ADC4@san.rr.com> <3CD1BACC.8938FEAB@despammed.com> <3CD1D17B.F60DCB89@san.rr.com> <3CD2A86C.85B4CF8@despammed.com> <3CD2B5E5.3203E48F@san.rr.com> <3CD6B140.437B459C@despammed.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 06 May 2002 17:40:05 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1020706805 66.75.151.160 (Mon, 06 May 2002 10:40:05 PDT) NNTP-Posting-Date: Mon, 06 May 2002 10:40:05 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:23594 Date: 2002-05-06T17:40:05+00:00 List-Id: Wes Groleau wrote: > > > You've still implemented the stub. To run the test, you still have to > > code the declaration of the subprogram and you still have to code the > > body of the subprogram. The body doesn't have to be *right*, but it > > still has to be coded. > > I must be missing something. Why do you want to > run a test when the item being tested doesn't > exist? Already addressed with at least two examples. See the other XP papers. > > count "won't compile" as a failed test, but since XP uses Smalltalk and > > I avoided saying it until you brought it up, but > in the limited reading on XP that I've done. it > continues to look like a methodology designed to > promote Smalltalk and to not work with anything else. Errr, no. Only someone who thinks it's trying to promote one language at the price of another would think that. Smalltalk fits very well with XP, and the folks who invented XP (or at least who first popularized it) use Smalltalk to its best advantage. > If "extreme programming IS Smalltalk" why fault Ada > for not "fitting in" ? Where do I "fault" Ada? I'm simply saying that Ada doesn't seem like it would work very well with XP to me. Nor would I use Smalltalk in a safety-critical real-time embedded system. Is that a fault of Smalltalk? > > > Why not make a hundred copies of the program each cycle, > > > make random changes, and keep the few that look promising? > > > Genetic algorithm--sort of. > > > > Well, you could, but it wouldn't be XP. > > Sounds like it would be a faster version of the same thing. Err, no. > > I'm not trying to say XP is superior to the normal mechanisms used by > > Ada. I'm just saying that *if* you're doing XP, doing it with something > > like Smalltalk is better than doing it with something like Ada, in part > > because of the strictness of Ada's type system that requires extra work > > to make things compile/link and extra redundancy that assures the > > compiler you mean what you said. > > Since XP and Smalltalk seem to be in a chicken and egg > cycle, I think "Is Ada bad for XP?" is not a very useful > question. A better question would be, That wasn't the question I'm trying to answer. See the subject line. The question I'm trying to answer is "is strong (static) typing always superior to dynamic typing?" (Note that Smalltalk doesn't have weak typing, but rather dynamic typing, so I'm fudging the question just a touch to actually address something slightly different.) If the question is "is strong typing worth the cost", then I'd argue "Not if you're using an XP development cycle." That is, *given* that you've chosen to use XP, which will work better, a dynamically-typed language or a statically-typed language. I think the answer there is that a dynamically-typed language will work better. > "For a particular application domain, does using > Smalltalk with XP or Ada with its 'best practices' > produce better code sooner?" And since the OP didn't state their particular application domain, I'd say this is an impossible questin to answer. And the OP didn't ask this question either. My only point is that there are times when strong typing (as the OP seemed to mean it)is not worth the cost. Not that Ada is good or bad or that Smalltalk is good or bad or that XP is good or bad. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. The 90/10 rule of toothpaste: the last 10% of the tube lasts as long as the first 90%.