Re: [orbitcpp-list] idl compiler has arrived
Status: Beta
Brought to you by:
philipd
|
From: Phil d. <ph...@us...> - 2000-03-01 09:01:00
|
Andreas Kloeckner wrote: > > Hi again, > > [ Rant about astyle snipped > > snip ---------------------------------------------- > style=kr > mode=c > indent-classes > indent-switches > indent-namespaces > indent=tab > snip ---------------------------------------------- > Oops. Looks like I was a bit premature doing the commit last night. I'll change things again if this is appropriate. > > > > I prefer not to use hungarian notation for classes and types. It's ugly > > and the fact that it is a template class / normal class should be > > obvious by the context. > > hmmm. it is a bit ugly, but keeps types from clashing with other global > identifiers (which start in upper case in my code), such as: > > cState State; > I tend to use singletons rather than global identifiers. > > > void eatThisApple(); // func naming just like java > > > > If you like, except that a lot of the corba methods don't apply to this > > rule E.g. string_to_object() etc... > > yes_but_underscores_are_so_damn_ugly :) > Matter of opinion. I can't really get excited either way. (what I prefer tends to depend on the day of the week ;-) > > The indentation is like K&R, but without the aligned braces for > > functions. I'm quite happy to go with this indentation. > > > > I'm not really that fussed about all the other stuff as long as the code > > is readable - most of the corba spec breaks it anyway. I think we should > > start with indentation, and leave the rest up to the developer writing > > the code. > > maybe i'm too pedantic - sorry if that is so. > I'd rather err on the side of less rules, if only to keep things fun for the people hacking the code. > > I usually use m_ to refer to member variables. > > For me, this distinction was upper case (members/globals) vs. lower case > (locals). > Oh right. For me it's typically: Foo = class m_foo = data member (instance scope) foo() = method foo = method scoped variable Personally, I'm quite happy to stop using underscores for method names etc.. (Have to do that when hacking java at work anyway), but I'd rather not have to use Hungarian notation for classes etc.. Cheers, Phil. |