From: "Jörn Engel" <joern@logfs.org>
To: Willy Tarreau <w@1wt.eu>
Cc: Davi Leal <davi@leals.com>, Adrian Bunk <bunk@kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: I am a volunteer
Date: Mon, 26 May 2008 12:37:39 +0200 [thread overview]
Message-ID: <20080526103738.GA20623@logfs.org> (raw)
In-Reply-To: <20080525210051.GA5609@1wt.eu>
On Sun, 25 May 2008 23:00:51 +0200, Willy Tarreau wrote:
>
> reading code is 100% compatible with time constraints, as there is no
> deadline. You can even say that a bug that you don't look at may stay
> there for years. And quite frankly, spending more than one hour every
> evening on code is generally enough to give you a headache. But you
> will progress very quickly.
When looking for something to improve, it often helps to write a new
code checker or run an existing one. If you don't know anything better,
you can write a script that runs Lindent, takes the diff between the
original file and the Lindent version and sorts files by diff size.
The point of this excercise is not to run Lindent on every file and
submit patches for that. But most code checkers, even a stupid one like
this, tend to warn about the same files. And those files tend to be
ones that are badly maintained, have often been bitrotting for some
years and could use some work. Even better, they are in such a bad
shape that it's hard not to improve things.
For example, I once found something like the below in drivers/cdrom/:
#define FOO() \
bar(); \
bar(); \
bar(); \
bar();
...
if (baz)
FOO();
So after macro extention, three of the four statements are always
executed and only one is conditional. Since I didn't have hardware to
test things I didn't change the code. My guess is the code still exists
unchanged.
Jörn
--
All models are wrong. Some models are useful.
-- George Box
next prev parent reply other threads:[~2008-05-26 10:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-25 16:12 I am a volunteer Davi Leal
2008-05-25 16:14 ` Tom Spink
2008-05-25 16:20 ` Bart Van Assche
2008-05-25 16:44 ` Davi Leal
2008-05-25 19:27 ` I was " Davi Leal
2008-05-25 16:37 ` I am " Adrian Bunk
2008-05-25 18:23 ` Davi Leal
2008-05-25 19:47 ` Willy Tarreau
2008-05-25 20:44 ` Davi Leal
2008-05-25 21:00 ` Willy Tarreau
2008-05-26 10:37 ` Jörn Engel [this message]
2008-05-26 14:35 ` Stefan Richter
2008-05-26 21:34 ` Jesper Juhl
2008-05-27 17:57 ` Davi Leal
2008-05-27 18:04 ` I am getting closer Davi Leal
2008-05-27 23:14 ` I am a volunteer Bartlomiej Zolnierkiewicz
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=20080526103738.GA20623@logfs.org \
--to=joern@logfs.org \
--cc=bunk@kernel.org \
--cc=davi@leals.com \
--cc=linux-kernel@vger.kernel.org \
--cc=w@1wt.eu \
/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