The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Fathi Boudra <fbou... @gmail.com>
Date: Thu, 4 Jun 2009 20:53:33 +0200
Local: Thurs, Jun 4 2009 2:53 pm
Subject: coding style
Hi, any objections against passing astyle to get uniform sources for Krusader ? At the moment, we have _many_ different styles over the sources.
I would like to using kdelibs coding style as a script is already provided: http://techbase.kde.org/Policies/Kdelibs_Coding_Style#Artistic_Style_...
As Csaba have committed his lister prototype ;), it could be a good timing to do it right now.
thoughts ?
cheers,
Fathi
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Karai Csaba <cska... @freemail.hu>
Date: Fri, 05 Jun 2009 06:56:56 +0200
Local: Fri, Jun 5 2009 12:56 am
Subject: Re: [Krusader-devel] coding style
Hi,
I've created screenshots of my kdevelop settings (based on the artistic
style). Please let me know if they are OK. The best would be to
autoformat every code before committing.
Once we have consent on the coding style it would be useful to put it
onto the webpage.
Thanks,
Csaba
Fathi Boudra írta:
> Hi,
> any objections against passing astyle to get uniform sources for Krusader ?
> At the moment, we have _many_ different styles over the sources.
> I would like to using kdelibs coding style as a script is already provided: > http://techbase.kde.org/Policies/Kdelibs_Coding_Style#Artistic_Style_...
> As Csaba have committed his lister prototype ;), it could be a good timing to > do it right now.
> thoughts ?
> cheers,
> Fathi
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Fathi Boudra <fbou... @gmail.com>
Date: Fri, 5 Jun 2009 08:43:15 +0200
Local: Fri, Jun 5 2009 2:43 am
Subject: Re: [Krusader-devel] Re: coding style
Let's start from astyle kdelibs script (as it exists): astyle \ --brackets=linux \ --convert-tabs \ --indent-labels \ --indent-preprocessor \ --indent=spaces=4 --one-line=keep-statements \ --pad=oper \ --unpad=paren \ `find -type f -name '*.cpp'` `find -type f -name '*.cc'` `find -type f -name '*.h'`
It can be added to ~/.astylerc
> I've created screenshots of my kdevelop settings (based on the artistic > style). Please let me know if they are OK.
in "tab & brackets": --indent=spaces=4 => use spaces: 4 --convert-tabs => check convert tabs --brackets=linux => Linux style in "indentation" --indent-labels => check labels --indent-preprocessor => check preprocessor
in "formatting" --unpad=paren => check remove unnecessary spaces around parentheses --pad=oper => check add spaces around operators --one-line=keep-statements => check keep on-line statements
> The best would be to autoformat every code before committing.
if you use shell, you can script "astyle-krusader && svn commit".
> Once we have consent on the coding style it would be useful to put it > onto the webpage.
right cheers,
Fathi
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Rafi Yanai <rafi.ya... @gmail.com>
Date: Sun, 7 Jun 2009 04:18:18 -0400
Local: Sun, Jun 7 2009 4:18 am
Subject: Re: [Krusader-devel] Re: coding style
--indent=spaces=4 => use spaces: 4
Please don't do that.... using spaces instead of tabs is sacrilege of the
highest order...
On Fri, Jun 5, 2009 at 2:43 AM, Fathi Boudra <fbou
... @gmail.com> wrote:
> Let's start from astyle kdelibs script (as it exists):
> astyle \
> --brackets=linux \
> --convert-tabs \
> --indent-labels \
> --indent-preprocessor \
> --indent=spaces=4
> --one-line=keep-statements \
> --pad=oper \
> --unpad=paren \
> `find -type f -name '*.cpp'` `find -type f -name '*.cc'` `find -type f
> -name '*.h'`
> It can be added to ~/.astylerc
> > I've created screenshots of my kdevelop settings (based on the artistic
> > style). Please let me know if they are OK.
> in "tab & brackets":
> --indent=spaces=4 => use spaces: 4
> --convert-tabs => check convert tabs
> --brackets=linux => Linux style
> in "indentation"
> --indent-labels => check labels
> --indent-preprocessor => check preprocessor
> in "formatting"
> --unpad=paren => check remove unnecessary spaces around parentheses
> --pad=oper => check add spaces around operators
> --one-line=keep-statements => check keep on-line statements
> > The best would be to autoformat every code before committing.
> if you use shell, you can script "astyle-krusader && svn commit".
> > Once we have consent on the coding style it would be useful to put it
> > onto the webpage.
> right
> cheers,
> Fathi
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Fathi Boudra <fbou... @gmail.com>
Date: Mon, 8 Jun 2009 09:19:08 +0200
Local: Mon, Jun 8 2009 3:19 am
Subject: Re: [Krusader-devel] Re: coding style
> --indent=spaces=4 => use spaces: 4
> Please don't do that.... using spaces instead of tabs is sacrilege of the > highest order...
I see it the other way, using tabs is awfull: - difficult to read - cannot indent parameters properly - inconsistent with popular coding style (Qt, KDE, etc ...) any other opinions on the spaces vs tabs indentations ?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Rafi Yanai <rafi.ya... @gmail.com>
Date: Mon, 8 Jun 2009 10:36:51 +0300
Local: Mon, Jun 8 2009 3:36 am
Subject: Re: [Krusader-devel] Re: coding style
It was a joke..
(Altough I personally am a TAB person)
Just try and google for "spaces vs tabs indentations" it's a fun read...
I personally believe in this one:
http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/
On Mon, Jun 8, 2009 at 10:19 AM, Fathi Boudra <fbou
... @gmail.com> wrote:
> > --indent=spaces=4 => use spaces: 4
> > Please don't do that.... using spaces instead of tabs is sacrilege of the
> > highest order...
> I see it the other way, using tabs is awfull:
> - difficult to read
> - cannot indent parameters properly
> - inconsistent with popular coding style (Qt, KDE, etc ...)
> any other opinions on the spaces vs tabs indentations ?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Fathi Boudra <fbou... @gmail.com>
Date: Mon, 8 Jun 2009 10:16:47 +0200
Local: Mon, Jun 8 2009 4:16 am
Subject: Re: [Krusader-devel] Re: coding style
> It was a joke.. > (Altough I personally am a TAB person)
and was taken as you have intended, a joke :)
> Just try and google for "spaces vs tabs indentations" it's a fun read...
I've done it, right after reading your initial mail ;) yeah, very funny! There's so much articles on the subject. It's impossible to get a proper opinion as it's a taste question and mostly a personal point of view.
nice one. good point for people using tabs for indenting. alignment shoud use spaces.
You must
Sign in before you can post messages.
You do not have the permission required to post.