comp.lang.ada
 help / color / mirror / Atom feed
From: "Joe Wisniewski" <wisniew@acm.org>
Subject: Re: How To Write Unmaintainable Code
Date: 1999/11/20
Date: 1999-11-20T00:00:00+00:00	[thread overview]
Message-ID: <s3e4likc3ef78@corp.supernews.com> (raw)
In-Reply-To: 814jiq$d8l$1@nnrp1.deja.com

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.






  reply	other threads:[~1999-11-20  0:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-19  0:00 How To Write Unmaintainable Code Ted Dennison
1999-11-20  0:00 ` Joe Wisniewski [this message]
1999-11-21  0:00   ` Steve Folly
1999-11-24  0:00   ` Ted Dennison
1999-11-22  0:00 ` Kent Paul Dolan
1999-11-22  0:00   ` Ted Dennison
1999-11-23  0:00     ` Robert Dewar
1999-11-23  0:00       ` Kent Paul Dolan
1999-11-23  0:00         ` Larry Kilgallen
1999-11-24  0:00           ` Kent Paul Dolan
1999-11-23  0:00         ` Robert Dewar
1999-11-24  0:00         ` Aidan Skinner
1999-11-26  0:00 ` Herve Regad-Pellagru
  -- strict thread matches above, loose matches on Subject: below --
2004-06-28 13:08 How to write unmaintainable code Ludovic Brenta
2004-06-28 14:59 ` Björn Persson
2004-06-29  2:22   ` John B. Matthews
2005-11-22 19:05 How To Write Unmaintainable Code Martin Krischik
2005-11-23  2:24 ` David Trudgett
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox