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,6faab3246196bedc X-Google-Attributes: gid103376,public From: "Joe Wisniewski" Subject: Re: How To Write Unmaintainable Code Date: 1999/11/20 Message-ID: #1/1 X-Deja-AN: 551044925 References: <814jiq$d8l$1@nnrp1.deja.com> Organization: Posted via Supernews, http://www.supernews.com X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.lang.ada X-Complaints-To: newsabuse@supernews.com Date: 1999-11-20T00:00:00+00:00 List-Id: Using function renames, change the meaning of "+" to "-" and vice versa, etc. (OUCH) The only reason I thought of this was because I was debugging someone's code once (YES, IT WAS SOMEONE ELSE!!!). They had done a cut and paste on a function renames, and were sloppy and missed changing the actual function name. Joe Ted Dennison wrote in message <814jiq$d8l$1@nnrp1.deja.com>... >There's a rather interesting website mentioned on /. today titled "How >To Write Unmaintainable Code" ( http://mindprod.com/unmain.html ). >There's a lot of good stuff in there that is applicable to any language. >But I noticed that about %20 of the "suggestions" won't work in Ada. >Howwever, I suspect if we tried we could replace many of those 11 >entries with Ada specific ones. > >My own suggestions: > 56. - The people who orignially named all the objects and packages >you use were morons. Rather than try to convice them to change, just use >renames and subtypes to rename everything to names of your own devising. >Make sure to leave a few references to the old names in, as a trap for >the unwary. > 57. - Make everything possible a generic. Don't stop until you at >least have generics with parameters that are instantiated generics who >also took in instantiated generic parameters. If anyone complains, >explain how this makes your sattelite groundstation code flexible enough >to be reinstantiated as a soda-machine controller. > > > >-- >T.E.D. > > >Sent via Deja.com http://www.deja.com/ >Before you buy.