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,FREEMAIL_FROM, 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: Herve Regad-Pellagru Subject: Re: How To Write Unmaintainable Code Date: 1999/11/26 Message-ID: #1/1 X-Deja-AN: 553307537 Sender: herve@pppA191.francenet.fr References: <814jiq$d8l$1@nnrp1.deja.com> X-Complaints-To: abuse@proxad.net X-Trace: nnrp3.proxad.net 943626378 213.228.27.21 (Fri, 26 Nov 1999 15:26:18 MET) Organization: Guest of ProXad - France NNTP-Posting-Date: Fri, 26 Nov 1999 15:26:18 MET Newsgroups: comp.lang.ada Date: 1999-11-26T00:00:00+00:00 List-Id: See also for extreme examples of method to make a C code unreadable. Although one could say "I'll never encouter that in real life", I had the privilege to work on such codes. And to shout like hell, of course :-) It is extremely interesting to see how some of the method have been defeated by the design of more advanced languages like ADA. For those who don't see why #define is a real curse in C. Herve Regad-Pellagru VMS: There once was a system called VMS Of cycles by no means abstemious. It's chock-full of hacks And runs on a VAX And makes my poor stomach all squeamious. --- The Great Quux >>>>> "Ted" == Ted Dennison writes: Ted> There's a rather interesting website mentioned on /. today Ted> titled "How To Write Unmaintainable Code" ( Ted> http://mindprod.com/unmain.html ). There's a lot of good Ted> stuff in there that is applicable to any language. But I Ted> noticed that about %20 of the "suggestions" won't work in Ted> Ada. Howwever, I suspect if we tried we could replace many Ted> of those 11 entries with Ada specific ones. Ted> My own suggestions: 56. - The people who orignially named all Ted> the objects and packages you use were morons. Rather than try Ted> to convice them to change, just use renames and subtypes to Ted> rename everything to names of your own devising. Make sure Ted> to leave a few references to the old names in, as a trap for Ted> the unwary. 57. - Make everything possible a generic. Don't Ted> stop until you at least have generics with parameters that Ted> are instantiated generics who also took in instantiated Ted> generic parameters. If anyone complains, explain how this Ted> makes your sattelite groundstation code flexible enough to be Ted> reinstantiated as a soda-machine controller. Ted> -- T.E.D. Ted> Sent via Deja.com http://www.deja.com/ Before you buy.