Java

Pasted from http://codereview.appspot.com/4754047/:

  • Opening brace goes on the same line as the declaration start. This
    is Java style, as opposed to C or C++ where it’s customary to have
    the brace on the next line.

  • space after if, for, while etc, so ‘if (cond) { …’ rather than
    if(cond).

  • don’t use short-form ifs, even if the consequent/alternative are one
    line long. Doing so may introduce subtle bugs in nested conditional
    code.

  • ‘else’ clause can be compacted with the surrounding braces.

  • No lines beyond 100 columns. That’s about the place where it stops
    being comfortable for reading on a modern hires monitor.

  • No ascii-art in parameter formatting. When you need to break lines
    in parameter lists, just use normal indent. Doing otherwise will
    cause formatting to break if any of the params or methods get
    refactored and renamed.

Python

Piše Mladen Mijatov:
Ako jos uvek nemas neki predefinisan predlazem PEP 8, nekako je najlepsi za citanje (meni barem).