-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
317 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|
Oops, something went wrong.