git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHv2] branch.c: simplify chain of if statements

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 21, 2014, 00:44 UTC
Message-ID
<CAPig+cS2rQSAPVEN6bzSNnjFoEzf9fyBA7X7P9+cmBFOsfA1xg@mail.gmail.com>
In-Reply-To
<CAPig+cQpO+0hfqVKCzi1DwbosQ=smK=JiTPcYM8iP4r7VnSKjQ@mail.gmail.com>
On Thu, Mar 20, 2014 at 8:40 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 14 quoted lines
> On Wed, Mar 19, 2014 at 7:12 PM, Dragos Foianu <dragos.foianu@gmail.com> wrote:
>> Eric Sunshine <sunshine <at> sunshineco.com> writes:
>>> On Tue, Mar 18, 2014 at 6:31 PM, Eric Sunshine <sunshine <at>
>> sunshineco.com> wrote:
>>>
>>> One other observation: You have a one-off error in your out-of-bounds
>>> check. It should be 'index >= sizeof...'
>>
>> Well this is embarrassing.
>
> It's a good illustration of the value of the review process. It's easy
> to overlook omissions and problems in our one's work because one reads
> it with the bias of knowing what it's _supposed_ to say. Reviewers
> (hopefully) don't have such bias: they read the code afresh.

And, this is a perfect example. I knew that I wanted to say "problems in one's own work", and even though I proof-read, I still missed that I wrote "problems in our one's work".

Previous: Eric SunshineNext: Junio C Hamano
Message 6 of 7 in “[PATCHv2] branch.c: simplify chain of if statements”
  1. Dragos FoianuMar 17, 2014
  2. Eric SunshineMar 18, 2014
  3. Eric SunshineMar 18, 2014
  4. Dragos FoianuMar 19, 2014
  5. Eric SunshineMar 21, 2014
  6. Eric SunshineMar 21, 2014
  7. Junio C HamanoMar 21, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.