|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] Add support for r6040 NIC |
Date: | Wed, 31 Aug 2011 13:48:34 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10 |
On 08/31/2011 12:59 PM, Edgar E. Iglesias wrote:
On Wed, Aug 31, 2011 at 11:06:11AM -0500, Anthony Liguori wrote:On 08/31/2011 09:35 AM, malc wrote:On Wed, 31 Aug 2011, Anthony Liguori wrote:Upper case field names are not okay. If you think coding style isn't clear, that's a bug in coding style.Sez hu? Coding style is garbage that should be thrown out of the window. As for looking, yeah, i'm looking at usb with it's lovely hungarian fields, should we stampede to "fix" it? If the one who's going to maintain the code is fine with whatever naming is used so be it.No. That's how we got into the coding style mess we're in in the first place.TBH, the codingstyle in QEMU is the least of "problems" we are facing. We've got lack of documentation, lack of tests, lack of contributors, etc, etc. IMO, those bring codingstyle issues into the pretty much neglectable space.
I don't think we lack contributors. Documentation and tests are really about discipline. If we can't even be bothered to maintain consistency in variable naming, do you really expected that we can be disciplined in writing documentation and tests?
Is the next argument going to be that every subsystem should be able to have its documentation in it's preferred natural language such that the documentation for the block layer is in Esperanto?
Consistent coding style makes the tree a single code base, instead of a bunch of independent islands. This encourages sharing code and ideas across subsystems. Too often, we reproduce the same thing and over again in different subsystems (and even different machine architectures).
Regards, Anthony Liguori
I think we should throw out everything from CS beyond the details of spaces and braces. Maybe keep the 80 char limit. We should ofcourse refer to the C and other specs regarding correctness, like the _t thing, but those are not really stylistic issues. Those are bugs. my 5 cents Cheers
[Prev in Thread] | Current Thread | [Next in Thread] |