comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Bad coding standards - aesthetics are irrelevant
Date: 23 Dec 2000 08:04:40 +0000
Date: 2000-12-23T08:04:40+00:00	[thread overview]
Message-ID: <x7vr92zwokn.fsf@smaug.pushface.org> (raw)
In-Reply-To: 3A436BD7.6CEEA6E4@hiwaay.net

Bruce or Tracy <bljacobs@hiwaay.net> writes:

>   My_Package_Name.My_Procedure_Name (Track_Number,Meters_Till_Impact, 
>   Seconds_Till_Impact,Azimuth,Elevation,Range,Delay_In_Seconds);
> 
> instead of:
> 
>   My_Package_Name.My_Procedure_Name 
>     (The_Track_Number        => Track_Number, 
>      The_Meters_From_Target  => Meters_From_Targer,
>      The_Seconds_Till_Impact => Seconds_Till_Impact,
>      The_Weapon_Azimuth      => Azimuth,
>      The_Weapon_Elevation    => Elevation,
>      The_Weapon_DownRange    => Range,
                                  ^^^^^---------------- probably not!

>      The_Seconds_Delay       => Delay_In_Seconds);
> 
> Some have even more arguments than this example.  The coders are
> very good, smart coders, they just aren't "tidy", which makes
> maintenance extremely difficult, especially when you have 400-500
> lines of this kind of format in single procedure.

I don't see really how you (your company) can know they are
'smart'. Slapdash is not smart.

One of my mentors used to refuse to look at documents with untidy
diagrams (this was in the days when the diagrams had to be drawn on
the stencil by hand) on the grounds that if you couldn't be bothered
to produce tidy work you probably hadn't bothered with the content
either.

Of course you have to be wary of the 'whited sepulchre', but in my
experience incompetents don't succeed at producing them either!

I noticed the 'The_Whatever' style -- this was the old Booch
recommendation, I think. But even then it struck me as a desperate
measure -- really you need to think about the names in the context
that the subprogram must be called. Not always possible, of course!



  reply	other threads:[~2000-12-23  8:04 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-20 22:22 Bad coding standards - aesthetics are irrelevant Singlespeeder
2000-12-20 23:46 ` Larry Kilgallen
2000-12-21  4:12 ` Robert C. Leif, Ph.D.
2000-12-21 11:33   ` Robert Dewar
2000-12-21 15:59 ` Stephen Leake
2000-12-21 19:30   ` William Starner
2000-12-21 20:54     ` Florian Weimer
2000-12-22 21:33       ` William Starner
2000-12-22 14:57     ` Bruce or Tracy
2000-12-23  8:04       ` Simon Wright [this message]
2000-12-28  0:54         ` mark_lundquist
2000-12-22 15:06   ` Ira D. Baxter
2001-01-03 20:02   ` Wes Groleau
2000-12-21 23:46 ` Marin David Condic
2000-12-22  6:45   ` mark_lundquist
2000-12-28 16:05   ` Erik Magnuson
2000-12-28 20:16     ` Marin David Condic
2000-12-29  4:05       ` Robert Dewar
2000-12-29 12:19       ` Larry Kilgallen
2000-12-29 14:02       ` Tarjei T. Jensen
2000-12-29 16:23         ` Robert Dewar
2000-12-29 14:44       ` Erik Magnuson
2001-01-03 20:12   ` Wes Groleau
replies disabled

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