Re: [PATCH v3 11/11] Rewrite the style guide for headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On 15 Feb 2018, at 13:47, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
> 
> On Thu, Feb 15, 2018 at 01:14:43PM +0100, Christophe de Dinechin wrote:
>> 
>> 
>>> On 15 Feb 2018, at 10:19, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
>>> 
>>> On Wed, Feb 14, 2018 at 11:24:50PM +0100, Christophe de Dinechin wrote:
>>>> 
>>>> 
>>>>> On 14 Feb 2018, at 14:35, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
>>>>> 
>>>>> This one sounds more like an RFC to me
>>>> 
>>>> Well, this is really a bug fix in the documentation more than a RFC.
>>>> 
>>>>> , as from a quick look in server/,
>>>>> this is not the style currently in use.
>>>> 
>>>> As I pointed out in earlier discussions, this section of the style guide, as written currently, is mostly backwards compared to industry best practices.
>>>> 
>>>> Most projects today put project headers first for a reason: it catches the frequent case where a header change makes it not self-contained (therefore making it possible to break third-party code using that header).
>>>> 
>>>> Examples of explicit recommendations to that effect from various heavyweights:
>>> 
>>> I haven't said I am against this style.... What I mean is that
>>> spice-server is not following this style, as far as I can tell spice-gtk
>>> is not either, so adding this now to the coding styles is just odd. It
>>> should reflect at least a little bit what is currently being done ;)

>> Well, what is done is discussing style, knowing that the current style
>> is not exceedingly consistent to start with, and in doing so. I
>> pointed out things that are bogus in the existing guidelines. What’s
>> wrong with that? That I’m criticizing your beloved codebase? ;-)
> 
> Even with the smiley, this is not funny nor helping the discussion.

Sorry you feel that way, that wasn’t intentional.

I’m having a hard time understanding your pushback, so I’m trying to understand where you are coming from.


> Especially when the paragraph you quote starts with "I haven't said I am against
> this style....".
> All I'm saying is that it's very odd to me to push something to the
> coding styles which does not match at all

In general, I tried quite hard to follow the existing guidelines, even a few I dislike quite a bit, while offering a valid transition to an applicable C++ style.

The only cases where I purposefully deviated, there is a good reason for that, which I tried to explain every time both on list and in the commits. Regarding headers, for example, I showed you the kind of error messages we presently get, which is only one of many reasons I gave.


> what is inconsistently being
> done in the codebase at the moment.

I think you meant “consistently”?

if the codebase does it consistently wrong, isn’t the first step to fix the guidelines, and then to fix the code? Or alternatively, explain why I’m wrong to think it’s wrong?


> And then I made concrete suggestions
> as how I would move forward with this patch…

Sorry, I saw your push back, but I did not see the concrete suggestion for moving forward… Would you please be kind enough to rephrase it?


Thanks
Christophe

> 
> Christophe

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]