From: Sam Vilain <sam@vilain.net>
To: Rik van Riel <riel@conectiva.com.br>
Cc: davidsen@tmr.com, jamagallon@able.es, andrea@suse.de,
alan@lxorguk.ukuu.org.uk, habanero@us.ibm.com,
linux-kernel@vger.kernel.org, marcelo@conectiva.com.br
Subject: Re: Linux 2.4.19-rc3 (hyperthreading)
Date: Wed, 31 Jul 2002 15:16:05 +0100 [thread overview]
Message-ID: <20020731141606.093752B65@hofmann> (raw)
In-Reply-To: <Pine.LNX.4.44L.0207310940350.23404-100000@imladris.surriel.com>
Rik van Riel <riel@conectiva.com.br> wrote:
> Having code this readable is pretty much essential for
> maintenance, too.
> I wouldn't mind if every time I code or patch something
> that isn't up to the reading standard of Mr. Magallon's
> code somebody would raise his hand and/or LART me, until
> the code is easily readable.
The GNU coding standards make some very sensible comments on this
subject. A very good read;
http://www.gnu.org/prep/standards_24.html
I find it interesting that a large quantity of the kernel and C
library source code I have come across recently has no comments (with
the exception of the O(1) scheduler, very nice). At the very least, I
think every function should have a comment listing all of its input
variables and what they mean, along with a rough idea of what the
function does, and what it returns, along with any assumptions. It
would make the code a *lot* easier for programmers with less than guru
levels of knowledge to understand and hack on.
--
Sam Vilain, sam@vilain.net WWW: http://sam.vilain.net/
7D74 2A09 B2D3 C30F F78E GPG: http://sam.vilain.net/sam.asc
278A A425 30A9 05B5 2F13
Its not the size of the ship, its the size of the waves.
LITTLE RICHARD
next prev parent reply other threads:[~2002-07-31 14:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-29 19:54 Linux 2.4.19-rc3 (hyperthreading) Andrew Theurer
2002-07-29 21:28 ` Alan Cox
2002-07-29 20:38 ` Andrea Arcangeli
2002-07-29 23:45 ` Andrea Arcangeli
2002-07-29 23:51 ` Rik van Riel
2002-07-30 0:04 ` Andrea Arcangeli
2002-07-30 0:09 ` J.A. Magallon
2002-07-30 0:32 ` Andrea Arcangeli
2002-07-31 3:08 ` Bill Davidsen
2002-07-31 12:43 ` Rik van Riel
2002-07-31 14:16 ` Sam Vilain [this message]
2002-08-01 18:29 ` Ingo Oeser
2002-07-29 20:58 ` Andrew Theurer
2002-07-30 0:37 ` Alan Cox
2002-07-29 23:42 ` Andrew Theurer
2002-07-30 0:56 ` James Bourne
2002-07-30 0:47 ` James Bourne
2002-07-30 1:15 ` Andrew Theurer
2002-07-30 3:09 ` James Bourne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020731141606.093752B65@hofmann \
--to=sam@vilain.net \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=andrea@suse.de \
--cc=davidsen@tmr.com \
--cc=habanero@us.ibm.com \
--cc=jamagallon@able.es \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=riel@conectiva.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).