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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6faab3246196bedc,start X-Google-Attributes: gid103376,public From: Ted Dennison Subject: How To Write Unmaintainable Code Date: 1999/11/19 Message-ID: <814jiq$d8l$1@nnrp1.deja.com>#1/1 X-Deja-AN: 550685112 X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Nov 19 22:39:22 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-11-19T00:00:00+00:00 List-Id: 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.