public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Philip White <pwhite@sgi.com>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH 05/18] xfstests: Redo option parsing
Date: Fri, 15 Mar 2013 16:13:38 +1100	[thread overview]
Message-ID: <20130315051338.GB2559@dastard> (raw)
In-Reply-To: <20130314130611.6A23953C7F62@polaris-admin.engr.sgi.com>

On Thu, Mar 14, 2013 at 06:06:11AM -0700, Philip White wrote:
> From: Phil White <pwhite@sgi.com>
> 
> 
> This is a rebasing & resubmit of a dchinner patch.  His comments on the
> original:
> -----------------
> The option parise in a messy loop of option parsing and actions on
> secondary arguments. Turn it into something much neater and esay to
> understand rather than a mess of temporary variables and tortured
> logic...
> -----------------
> 
> This required some deviation owing to the decision made in patch #2 of this
> series.

If all the check specific option parsing is moved to check (like my
series did), then there isn't any code left in the common file.

All i see here is a reflection of SGI's obstinate refusal to remove
bitrotted code. If we are removing all the users of this code except
one, it is no longer shared code and, as such, abstractions for
sharing shoul dbe removed.

If some new script comes along that uses the *same option parsing*
as check, then we can consider it shared code again. However, i
can't see this ever happening, so the code should be moved the check
script where it can be more fully integrated and simplified.

So, really, all is see from trying to retain the common file like
this is an obstinate refusal to let go of bitrotted code and to
re-abstract and re-implement it properly....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2013-03-15  5:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 13:06 [PATCH 05/18] xfstests: Redo option parsing Philip White
2013-03-15  5:13 ` Dave Chinner [this message]
2013-03-15  7:52   ` Phil White
2013-03-19  3:45     ` Dave Chinner

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=20130315051338.GB2559@dastard \
    --to=david@fromorbit.com \
    --cc=pwhite@sgi.com \
    --cc=xfs@oss.sgi.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