2009/8/8 Yuval Levy <[email protected]>:
>
> Hi Lukáš
>
> Lukáš Jirkovský wrote:
>> I like more loose coding style. Spending a day learning what to do and
>> what not to do is IMO boring.
>
> I see where you are coming from, and me too I prefer loose. I don't feel
> like policing contributors. But then I see where I am coming from and I
> think I need and want guidance before I damage the project.
>
> I'm a C++ monkey. No formal training. Just an itch to scratch and I
> scratch so deep that I find myself in the source code. I usually go by
> example, so for the coding style I just looked at how the file was and
> adapted.
>
> This is OK when changing a couple of lines to fix a bug; or when working
> alone. But when contributing serious chunks of code or when working in a
> team it is not OK.
>
> Some nuances where not immediately clear on me and when I started moving
> from file to file and finding completely different conventions, it
> became difficult to read.
>
> Good style is important for readability. Consistent style is important
> for guidance for newbies. Both make the project more viable long term,
> and more scalable in terms of people working on it.
>
> So I came to the conclusion that I will document the coding style in
> much more detail than I thought (there are some really good
> feedbacks/additions here on the thread, keep them coming) and propose it
> for adoption.
>
> I don't think it will take one day to read/learn.

I understand this need and I've nothing against it. Moreover, when it
takes less than a day to learn it's OK ;-)

>
> I do acknowledge that it is slightly more difficult for individual
> contributors to adapt, especially if they already have strong opinions
> about how things should be; and if they are change-averse. Adaptability
> is a good skills to learn/have.
>
> I am still unsure about the 1TBS vs. Allman style. I read good arguments
> on both sides. I am currently a 1TBS user. Maybe I should stay so? or
> maybe I should adopt Allman? I don't know. I need guidance, but most of
> all the project needs consistency.

I'd select the one which is more widely used in current code. After a
quick look it seems to be neither 1TBS neither Allman style but
something more like BSD KNF [1]. Anyway, what about wait for a Pablo's
attitude, he has written most of the code.

Lukáš

>
> Yuv
>
> >
>

[1] http://en.wikipedia.org/wiki/Indent_style#BSD_KNF_style

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---

Reply via email to