[Xcb] [PATCH libxcb 1/3] generator: support fixed size lists in var-sized structs

Christian Linhart chris at DemoRecorder.com
Tue Sep 9 11:07:42 PDT 2014


On 09/09/14 18:45, Ran Benita wrote:
> On Fri, Sep 05, 2014 at 05:08:43PM +0200, Christian Linhart wrote:
>> Is there a style-guide somewhere which lists these style-rules?
> 
> For C code, the following seems about appropriate:
> http://www.x.org/wiki/CodingStyle/
> 
> For python code I'd say PEP-8 is mostly accepted by everybody:
> http://legacy.python.org/dev/peps/pep-0008/

Thank you for these pointers.
Helps me to get these things right the first time. :-)

> 
> But if you're working with existing code, best is just to try and look
> the same, as if the entire file was written by the same person.
Yes, I usually try to do that.
But I just didn't notice the things that I did differently.

I was concentrating on getting the code working correctly. :-)

In my 20+ years commercial software development career this 
detail level of code-style conformance never was a topic,
so I am obviously not trained to automatically notice this kind of stuff.

But I understand that in open source this is more important
than for commercial coding because in open source
the number of contributors to one piece of code
is very significantly larger...

Chris


More information about the Xcb mailing list