From: "Boyd Stephen Smith Jr." <bss@iguanasuicide.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [CLEANUP PATCH RESEND] git wrapper: Make while loop more reader-friendly
Date: Fri, 2 Jan 2009 14:04:02 -0600 [thread overview]
Message-ID: <200901021404.05811.bss@iguanasuicide.net> (raw)
In-Reply-To: <alpine.DEB.1.00.0901021947170.30769@pacific.mpi-cbg.de>
[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]
On Friday 2009 January 02 12:49:53 Johannes Schindelin wrote:
> > > - do
> > > - --slash;
> > > - while (cmd <= slash && !is_dir_sep(*slash));
> > > + while (cmd <= slash && !is_dir_sep(*slash))
> > > + slash--;
> >
> > I prefer the one-liner:
> > for (; cmd <= slash && !is_dir_sep(*slash); --slash);
>
> As I mentioned in the commit message: readability is something to be
> cherished and worshipped.
It's also subjective. I think my one-line is more readable than your two
lines which is only slightly more readable than the original 3 lines. Or is
there some objective readability metric that of which I'm just not aware?
I also think that the lack of braces around your body on a separate line makes
it harder to read and easier to break, but I understand that is the git
coding style.
> For your pleasure, I will not go into details about the motions my bowels
> went through when I looked at those three lines. Or your single line, for
> that matter.
Please do, although privately if you like. I really don't see the problem the
patch is trying to fix.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss@iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2009-01-02 20:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-02 18:07 [CLEANUP PATCH RESEND] git wrapper: Make while loop more reader-friendly Johannes Schindelin
2009-01-02 18:28 ` Boyd Stephen Smith Jr.
2009-01-02 18:49 ` Johannes Schindelin
2009-01-02 20:04 ` Boyd Stephen Smith Jr. [this message]
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=200901021404.05811.bss@iguanasuicide.net \
--to=bss@iguanasuicide.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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