[haiku-development] Re: Coding guidelines
- From: Bruno Albuquerque <bga@xxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Thu, 24 Jan 2008 14:49:01 -0200
Axel Dörfler wrote:
For example, does all devs agree that private member _must_ start
with
an underscore? Because it is not stated in the guidelines, but it
looks to me
that some code does and some does not follow this guideline.
>>
And this reminds me that, although our code guidelines does state
that,
it is not a good practice and can lead to problems. For further
information, I recomend this link (via Web Archive):
http://web.archive.org/web/19990221004617/http://www.ses.com/~clarke/cpptips/_naming
We control the whole thing,
This is true today, yes, but won't always be true. Unless you expect we
will never have any close-source libraries in the system at all.
we don't port Haiku to somewhere else,
What do you mean with this? What about the PPC/M68k ports?
and even if, it would be only a minor problem in C++ code anyway -
actually, only macros are problematic. But our naming conventions for
those are different anyway (uppercase).
Also, there are no private but publically available macros.
>
IOW we can safely ignore that article.
I beg to differ. I was bitten by this more than once. But then, again,
this is just based on my own experience. This kind of stuff never happen
to other people, right?
-Bruno
- Follow-Ups:
- [haiku-development] Re: Coding guidelines
- From: Axel Dörfler
- References:
- [haiku-development] Re: Coding guidelines
- From: Axel Dörfler
Other related posts:
- » [haiku-development] Coding guidelines
- » [haiku-development] Re: Coding guidelines
- » [haiku-development] Re: Coding guidelines
- » [haiku-development] Re: Coding guidelines
- » [haiku-development] Re: Coding guidelines
- » [haiku-development] Re: Coding guidelines
- » [haiku-development] Re: Coding guidelines
- » [haiku-development] Re: Coding guidelines
- » [haiku-development] Re: Coding guidelines
- » [haiku-development] Re: Coding guidelines
For example, does all devs agree that private member _must_ start with an underscore? Because it is not stated in the guidelines, but it looks to methat some code does and some does not follow this guideline.
And this reminds me that, although our code guidelines does state that, it is not a good practice and can lead to problems. For further information, I recomend this link (via Web Archive):http://web.archive.org/web/19990221004617/http://www.ses.com/~clarke/cpptips/_naming
We control the whole thing,
we don't port Haiku to somewhere else,
Also, there are no private but publically available macros.
IOW we can safely ignore that article.
- [haiku-development] Re: Coding guidelines
- From: Axel Dörfler
- [haiku-development] Re: Coding guidelines
- From: Axel Dörfler