Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Other Topics

  • most important is: do only use formatting rules which our IDE can apply during reformatting (some corner cases are really hard for IDE formatter). 
  • how to keep formatting aligned between different IDEs? For example one way  could be to use the eclipse formatter although in intellij or maven.
  • Intellij support sharing of settings hosted by public http for example github.
  • the google coding style is implement in many formatters (like intellij, eclipse and maven), they even have an commandline tool to apply their rules to a bigger code base (https://github.com/google/google-java-format) => easiest way, but contains some strong opinions about e.g. tab vs spaces (space), indent deep (2 space), max line length (100 char) => But I (Alf) think that the rules are very well thought out. For example if you limit the line length, then you can not use tabs (because the space length depends on settings) ; column width 100 make it easy to have 3 way diff in a screen.