[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst
From: |
Tuomas Lukka |
Subject: |
Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst |
Date: |
Mon, 13 Jan 2003 17:05:11 +0200 |
User-agent: |
Mutt/1.4i |
On Mon, Jan 13, 2003 at 02:06:21PM +0100, Benja Fallenstein wrote:
> Vesa Kaihlavirta wrote:
> > - java imports
> > - gzz imports
>
> I'd prefer first gzz, then java, for consistency with Java files and
> because this makes those imports rest in alphabetical order. (Hmm, come
> to think of it, I would like to have that rule included: In each group,
> imports should be in alphabetical order.)
I disagree: more importantly it should be "foreign stuff" "our stuff".
> >+7. Prefer list comprehensions to iterations, especially when dealing with
> >lists.
>
> This isn't really clear to me. :-) List comprehensions should be used
> iff they make the code easier to read and understand. The following is
> very much not good:
>
> [java.lang.System.out.println(el) for el in list]
>
> though it will correctly print out each element in 'list.'
Indeed.
> >+8. Class names are CapitalizedWords.
> >+
> >+9. Class methods and attributes are mixedCase.
> >+
> >+10. Functions are lower_case_with_underscores, variables are lowercase.
>
> I don't like this-- I think that for consistency, these should be
> mixedCase too. They are closest in function to Java's static attributes
> and methods, which are also mixedCase.
Agreed.
Tuomas
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/09
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/09
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/09
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/09
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/09
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Tuomas J. Lukka, 2003/01/10
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/12
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/12
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/13
- Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Benja Fallenstein, 2003/01/13
- Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst,
Tuomas Lukka <=
- Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Benja Fallenstein, 2003/01/13
- Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Tuomas Lukka, 2003/01/13
- Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Benja Fallenstein, 2003/01/13
- Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Tuomas Lukka, 2003/01/13
- Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Benja Fallenstein, 2003/01/13
- Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Tuomas Lukka, 2003/01/14
- Re: [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Benja Fallenstein, 2003/01/14
[Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/13