Example : (1) Change behavior of X vs (2) Changing behavior of X “If applied, this commit will YOUR-COMMIT” (1) If applied, this commit will CHANGE BEHAVIOR OF X. (2) If applied, this commit will CHANGING BEHAVIOR OF X.
0; } public void foo() { ----switch(a) { case 1 : case 2 : } } Tab must be configured to 4 spaces. In case of switch, the cases must be indented by 2 spaces.
{ } int a = b; 1. Divide in blocks separated by blank lines. 2. One space between the sentence and the parenthesis and between the sentence and brackets. 3. The else clause must have the same constraints specified in clause 2. 4. One space at left and right on an special operator like : =, &&, &, |, | |, +=, -=, ++, --, <<, >>, <, >, ==, etc ...
Discuss a common way to package the project. • Be sure your class names and package names are the most descriptive as possible. • And the most important : LEARN TO LOVE YOUR CODE