From: Jason Cooper <jason@lakedaemon.net>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Stephan Mueller <smueller@chronox.de>,
Dan Carpenter <dan.carpenter@oracle.com>,
ksummit-discuss@lists.linuxfoundation.org
Subject: Re: [Ksummit-discuss] [CORE-TOPIC] Documentation
Date: Mon, 13 Jul 2015 17:42:44 +0000 [thread overview]
Message-ID: <20150713174244.GE14593@io.lakedaemon.net> (raw)
In-Reply-To: <20150713123750.52d8a14d@gandalf.local.home>
On Mon, Jul 13, 2015 at 12:37:50PM -0400, Steven Rostedt wrote:
> On Mon, 13 Jul 2015 12:47:23 +0300
> Alexey Dobriyan <adobriyan@gmail.com> wrote:
>
> > Newbies should not write documentation because they, by definition,
> > have little knowledge of the code. It will lead to many, many useless
> > and redundant comments like below whose only purpose is stealing
> > vertical whitespace:
>
> I agree that newbies shouldn't write documentation.
I semi-disagree. Assuming you meant newbies here as you defined below.
Not that an exception should make the rule, but please take a look at
the Crypto API documentation (with userspace example code!) written by
Stephan Mueller:
git log --author="smueller@chronox.de"
His first patch was in May 2014.
541af946fe13 crypto: drbg - SP800-90A Deterministic Random Bit Generator
By Nov/Dec 2014 he had documented the entire crypto API.
52744af3af97 crypto: doc - document uncovered member variables
47ca5be9eb06 crypto: doc - HASH API documentation
16e61030aecb crypto: doc - CIPHER API documentation
58284f0d6c4a crypto: doc - BLKCIPHER API documentation
fced7b02623e crypto: doc - AEAD API documentation
f13ec330a787 crypto: doc - ABLKCIPHER API documentation
0d7f488f0305 crypto: doc - cipher data structures
968ab2910780 crypto: doc - SHASH API documentation
90240ffb1277 crypto: doc - AHASH API documentation
5d8c723f61f2 crypto: doc - hash data structures
aa1b6fbcbeac crypto: doc - RNG API documentation
e63b673f601d crypto: doc - userspace interface spec
e9a44230dbca crypto: doc - compile crypto API spec
7d12993ed890 crypto: doc - crypto API high level spec
Often the best person to write the docs for a newcomer to understand is
someone who was just recently a newcomer.
> But maybe what they
> can do is to question what a function does. And perhaps poke the
> maintainer (or author of said function) to write something that
> explains that function (only for non-static functions).
Submitting patches is often the *best* way to poke a maintainer. ;-)
I know I'm not the only one who would find it a lot easier to tweak an
80% correct documentation patch as opposed to explaining the function
call, how it fits in with the others, how it historically evolved that
way, etc.
> Now, I say "newbies" but I would really mean experienced developers
> that are new to a subsystem. We don't need silly questions. Something
> more on the line of one experienced kernel developer reading some code
> of the kernel they have no idea about, and if they can't figure out
> what a function does, ask the question to the author. Perhaps we can
> get better documentation of internal interfaces out of it.
thx,
Jason.
next prev parent reply other threads:[~2015-07-13 17:42 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-12 22:38 Peter Hüwe
2015-07-12 23:15 ` Julia Lawall
2015-07-14 11:59 ` Mauro Carvalho Chehab
2015-07-13 9:47 ` Alexey Dobriyan
2015-07-13 16:01 ` Randy Dunlap
2015-07-13 16:37 ` Steven Rostedt
2015-07-13 16:46 ` David Woodhouse
2015-07-13 17:35 ` Steven Rostedt
2015-07-13 19:22 ` Peter Hüwe
2015-07-13 19:28 ` Peter Hüwe
2015-07-13 17:42 ` Jason Cooper [this message]
2015-07-13 18:11 ` Steven Rostedt
2015-07-14 3:56 ` Zefan Li
2015-07-13 19:25 ` Peter Hüwe
2015-07-13 22:10 ` Laurent Pinchart
2015-07-13 17:45 ` Jonathan Corbet
2015-07-13 19:46 ` Peter Hüwe
2015-07-14 2:36 ` Jonathan Corbet
2015-07-14 8:40 ` Laurent Pinchart
2015-07-14 11:19 ` Daniel Vetter
2015-07-14 12:43 ` Mauro Carvalho Chehab
2015-07-14 12:53 ` Jonathan Corbet
2015-07-14 13:57 ` Laurent Pinchart
2015-07-14 6:44 ` Johannes Berg
2015-07-13 19:20 ` Peter Hüwe
2015-07-13 23:01 ` Laurent Pinchart
2015-07-13 17:05 ` Lai Jiangshan
2015-07-13 17:42 ` Jonathan Corbet
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=20150713174244.GE14593@io.lakedaemon.net \
--to=jason@lakedaemon.net \
--cc=dan.carpenter@oracle.com \
--cc=ksummit-discuss@lists.linuxfoundation.org \
--cc=rostedt@goodmis.org \
--cc=smueller@chronox.de \
/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