Ema Coding Guidelines

What is Ema? WikiSquatting?

Many of these are fairly bad guidelines to boot. Such as? Many of them are similar to what we use.

e.g. 
   public class UserImpl? implements User {
     private String userName;
     :
     :

public String setUserName( String newUserName){ userName = newUserName(); }

:
   }

e.g. 
   this.userName = userName;  --> Bad

userName = newUserName; --> Good

  It provides an opportunity to review your code for better usage.

e.g.

GOOD ---- if ( var1 = value1) { //do something }

BAD --- if ( var1 = value1) //do something

e.g.
Good >>
    public class TestClassForClassNaming? {
    }

Bad >> public class Testclassforclassnaming { }

public class testClassForClassNaming { }

e.g.
Good >>
    public void testMethodForMethodNaming {
    }

Bad >> public class TestMethodForMethodNaming? { }

public class testmethodformethodnaming { }

e.g.
Good >>
    public final String TEST_CONSTANT = "TEST";

Bad >> public final String testconstant = "TEST";

public final String Testconstant = "TEST";

public final String TestConstant? = "TEST";

e.g.
Good >>
    private String testMember;

Bad >> private String TestMember?;

private String Testmember;

private String testmember;


EditText of this page (last edited July 7, 2004) or FindPage with title or text search