[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Concerning automated astyle application to the code
From:       Jaroslaw S <kexipl () gmail ! com>
Date:       2010-01-18 7:05:48
Message-ID: 56a746381001172305g14aeb545p4289513539d7381a () mail ! gmail ! com
[Download RAW message or body]

2010/1/18 Boudewijn Rempt <boud@valdyas.org>:
> On Sunday 17 January 2010, Thomas Zander wrote:
>> On Sunday 17. January 2010 21.53.16 Dmitry Kazakov wrote:
>> > Another issue.
>>
>> Heh, didn't see a coding style debate for some time :D.   But, really,
>> everyone has an opinion and everyone has very good reasons for their
>> preference. Its the mother of all bikesheds.
>> Some years ago a coding style was chosen by Qt, later adopted by KDELibs
>> and even later by KOffice. The style was never changed from the original
>> suggested one.
>>
>> The huge advantage is consistency. You can read code much faster if it is
>> in a coding style you use too.
>> So it takes some getting used too (hell, it took me ages!) but its worth
>> it. Consistently formatted code is just a joy to read.
>>
>> And, yes, you get used to details like the ones you posted, and you get
>> faster in reading code that already is formatted like astyle now produces.
>> Which is the majority of public Qt code you'll encounter. ;)
>
> Well, we did find some bugs in astyle recently, for instance where it would
> change
>
> c = a * b;
>
> to
>
> c = a *b;

Yes, and of course this:

bool foo : 1;

(no indentation for bit fields)

PS: but being now a mobile tech developer, after somewhat deeper
reflection I quit using bitfields in most places.

-- 
regards / pozdrawiam, Jaroslaw Staniek
 Kexi & KOffice (http://www.kexi-project.org, http://www.koffice.org)
 KDE Libraries for MS Windows (http://windows.kde.org)
 http://www.linkedin.com/in/jstaniek
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic