kdelibs coding style
David Faure
faure at kde.org
Wed Aug 23 22:06:21 BST 2006
On Wednesday 23 August 2006 16:47, Lubos Lunak wrote:
> So we're going to have a guide that's pretty strict even about things like
> placement of spaces but not actually require it?
That would be my idea, yes. A "best practice" or "recommendation".
Just like many things about kdelibs, like putting the variables into the d pointer,
or writing API docs ;)
We still do this for fun, so let's not make it a work environment where you
only get a patch in if it follows 500 rules, with the need for 20 revisions of
the patch until it actually follows them all.
> How about we then make a
> list of really required things[*] and call the rest just "recommendations" or
> whatever, because that's what it's going to be anyway? (Do I have to say that
> I told you?)
>
> [*]
> - Indent by 4 spaces, no tabs
Would be a good first step.
> - Try to make it readable, use common sense,
Those two things are too vague to be of any use in a list of required things :)
Everyone interprets that differently in the end.
> follow the style of the file
Was already the requirement/recommendation, yes.
> > Well, I think we can wrap this up now - editor-specific config-files have
> > been added to kdelibs (like .emacs-dirvars), all we need is to add the
> > kdelibs-coding-style to some webpage, I guess on developer.kde.org...
Hmm the real question is whether to remove the "( foo )" space insertion from kde-emacs :)
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list