Created
February 29, 2016 01:42
-
-
Save edefazio/426346bb8f64dd087850 to your computer and use it in GitHub Desktop.
Eric's Coding Style trying to make Java code more readable at a glance, and in focussed detail
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
package codestyle; | |
public class EricSpacing_No_Comments | |
{ | |
public static int a = 0; | |
public static int b = 0; | |
public static int c = 0; | |
public static int d = 0; | |
public static int e = 0; | |
public static int s = 0; | |
public static int n = 0; | |
public static void main( String[] args ) | |
{ | |
boolean val = true; | |
while( val ) | |
{ | |
} | |
a += c + d; | |
a = ( a + b ) / ( c * d ); | |
while( d++ == s++ ) | |
{ | |
--n; | |
} | |
System.out.println( "size is " + n + "\n" ); | |
myMethod( (byte)a, (short)( c + d ) ); | |
for( int j = 0; j < 100; j++ ) | |
{ | |
} | |
} | |
public static final void myMethodWithNoArguments() | |
{ | |
} | |
public static final void myMethod( byte b, short s ) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The simple high level-rules (for consistency sake) are
(as much as possible have the "form follow the function")