Skip to content

Commit

Permalink
add notes on coding conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
bpsm committed Sep 16, 2012
1 parent 89a97db commit 596fb40
Show file tree
Hide file tree
Showing 2 changed files with 317 additions and 0 deletions.
26 changes: 26 additions & 0 deletions hacking/coding-conventions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Coding Conventions

I'm coding this using Eclipse using the "Java Conventions" with 4
spaces per indentation level.

class Foo {
int method() {
if ( ... ) {
...
} else if ( ... ) {
...
}
switch (...) {
case 0:
...
default:
...
}
}
}

There should be no trailing white space. In Eclipse, configure Preferences ⇒ Java ⇒ Editor ⇒ "Save Actions" to assure this.

Unit tests are useful. Have enough of those.


Loading

0 comments on commit 596fb40

Please sign in to comment.