gnustep-dev
[Top][All Lists]
Advanced

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

Re: @property coding style


From: Fred Kiefer
Subject: Re: @property coding style
Date: Sat, 28 Jan 2012 19:00:12 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0

On 28.01.2012 13:53, Ivan Vučica wrote:
On Sat, Jan 28, 2012 at 13:44, David Chisnall<address@hidden>  wrote:
On 28 Jan 2012, at 12:34, Ivan Vučica wrote:
Also, I feel more comfortable using my own coding style when it comes to
indentation and stuff like that. For libraries where I feel I might be
doing major contributions, can I use my own coding style, or am I
absolutely required to use the GNU coding style?

More difficult to say.  The runtime uses the Étoilé coding conventions,
which are actually sane, but for any contribution to base or gui I try to
stick to writing obfuscated code^W^W^Wfollowing the GNU coding conventions.

The most important thing is consistency within a project, so if the
library already uses one set of coding conventions then it's best to follow
it, rather than mix and match.


I agree. But I feel Core Animation/QuartzCore and UIKit are separate
libraries from -base, -gui, et al, so am I right to conclude I can use my
style? :-)

You should just remember why we have a coding standard. It is so that different people can contribute to the same project without reformatting the whole code on each commit. And to make it easy to read the code independent of who wrote it. I cannot imagine that it hurts your ego that much to stick to a common coding standard as it will hurt the library if you don't do. Please remember code gets read a lot more than it gets written and we should minimise the pain involved there. (or rather keep it on the same level for all our libraries :-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]