public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Peter Stuge <peter@stuge.se>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [OT/NIT] Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in profiles: ChangeLog package.mask
Date: Sun, 21 Apr 2013 20:47:17 +0200	[thread overview]
Message-ID: <20130421184717.18198.qmail@stuge.se> (raw)
In-Reply-To: <20130421190709.105e02ae@TOMWIJ-GENTOO>

[-- Attachment #1: Type: text/plain, Size: 3015 bytes --]

Tom Wijsman wrote:
> > > You should just convert the commit diff to not include space
> > > changes.
> > 
> > Tom, I don't understand what you mean here? Who should do the convert
> > and why?
> 
> It's a human error for both ends, it can thus be done on both sides.

Hm, I'm not sure I follow.

When a commit is created there's only one human involved; the person
creating the commit. We should all try to avoid whitespace changes in
all commits.

Are you arguing that because people who happen to read commits and
source code can provide options to hide whitespace changes in commits
and/or use indent to always reformat source there is no point in
avoiding whitespace changes (by getting formatting right the first
time) and being strict about code style?


> > Writing good code takes experience and awareness, and many if not
> > most are just interested in banging out something that works.
> 
> Good code ideally is tested.

I see testing as orthogonal to writing code.

The two can complement each other very nicely, but code can be good
without testing, and testing does not reliably turn otherwise
bad code into good. But testing can certainly preempt lots of both
simple and advanced issues, like for example, broken whitespace.


> > ... minimize the impact, and the best way is to ...
> 
> Depends on whose impact you minimize, s/best/alternative/.

I refer to the impact of whitespace changes (noise) in the repository
on anyone and everyone who interacts with the repository in some way
beyond usage.


> > Specifically, interactive rebase on its own or combined with
> > bisecting become a lot easier and quicker with clean commits.
> 
> Rebasing is overkill in the Portage tree

I don't think this can be said with certanity. Git allows new things
which might lead to a situation where rebasing simply makes sense.


> and not needed;

I don't know about that at all.


> as for bisect, it makes it worse because you introduce extra
> commits to bisect.

The extra commit may mean one extra test cycle, but if tests are
automated that doesn't matter much. The benefit is that the *other*
commit can much more easily be moved around, as I wrote, rebasing
combined with bisecting.


In any case, I guess you aren't arguing that because some more
advanced uses of Git are perhaps not immediately useful there is no
point in clean code style?


> > Try not to be that person, because it doesn't help anyone.
> 
> I'm not rooting either side,

Understood - I want to clarify that I did not get the impression that
you were, the "Try not to be that person" was a very broad request to
everyone listening.


> I just hate the noise that occurs when neither side takes an effort
> to fix it.

Consider that commits in version control systems are immutable, so
it's not really possible to "fix" things there.

I think the only real fix is to avoid that whitespace errors are
committed in the first place.


//Peter

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

  reply	other threads:[~2013-04-21 18:47 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20130419091632.D01152171D@flycatcher.gentoo.org>
2013-04-19 13:30 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in profiles: ChangeLog package.mask Alexis Ballier
2013-04-20 17:28   ` Jeroen Roovers
2013-04-21 12:53   ` Ben de Groot
2013-04-21 14:11     ` Denis Dupeyron
2013-04-21 14:23       ` Rich Freeman
2013-04-21 14:39         ` Denis Dupeyron
2013-04-21 14:38       ` Chí-Thanh Christopher Nguyễn
2013-04-21 14:50         ` Denis Dupeyron
2013-04-21 15:07           ` Chí-Thanh Christopher Nguyễn
2013-04-21 15:17             ` Alexis Ballier
2013-04-22 11:43         ` Ben de Groot
2013-04-22 17:13           ` Michał Górny
2013-04-23 16:16             ` Ben de Groot
2013-04-22 12:07       ` Ben de Groot
2013-04-21 14:59     ` Alexis Ballier
2013-04-22 11:56       ` Ben de Groot
2013-04-22 14:00         ` Alexis Ballier
2013-04-23  3:58         ` Ryan Hill
2013-04-23 16:24           ` Ben de Groot
2013-04-24 10:59             ` Duncan
2013-04-30  2:06             ` Ryan Hill
2013-04-21 15:05     ` [OT/NIT] " Alexis Ballier
2013-04-21 15:32       ` Tom Wijsman
2013-04-21 15:43         ` Alexis Ballier
2013-04-21 16:00         ` Peter Stuge
2013-04-21 17:07           ` Tom Wijsman
2013-04-21 18:47             ` Peter Stuge [this message]
2013-04-21 18:57       ` Michał Górny
2013-04-22 12:00       ` Ben de Groot
2013-04-22 13:40         ` Alexis Ballier
2013-04-22 22:46           ` [gentoo-dev] Re: [OT/NIT] " Duncan
2013-04-23 18:00             ` Jeroen Roovers
2013-04-23 18:20               ` Rich Freeman
2013-04-23 18:37                 ` Matt Turner
2013-04-23 19:11                   ` Rich Freeman
2013-04-23 19:21                     ` Matt Turner
2013-04-23 19:25                     ` Ian Stakenvicius
2013-04-23 19:43                       ` Rich Freeman
2013-04-23 18:38               ` Matt Turner
2013-04-24 11:18               ` Duncan
2013-04-24 11:21               ` Peter Stuge
2013-04-24 11:25                 ` Peter Stuge
2013-04-24 11:47                 ` Michael Mol
2013-04-24 13:25                   ` Rich Freeman
2013-04-24 20:04                     ` Alex Xu
2013-04-24 22:26                       ` Rich Freeman
2013-04-24 23:23                 ` Patrick Lauer
2013-04-24 23:50                   ` Peter Stuge
2013-04-23 19:31             ` Michał Górny
2013-04-23 19:50               ` Jeroen Roovers
2013-04-23 20:27             ` Tom Wijsman
2013-04-23 21:12               ` Zac Medico

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=20130421184717.18198.qmail@stuge.se \
    --to=peter@stuge.se \
    --cc=gentoo-dev@lists.gentoo.org \
    /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