Express Intent to naming things
the one of important things in programming is naming things. Naming a class, a method or a variable. Are you agree the hardest part in programming is naming the variables?

Ok, lets go to the point. I want to make a triangle class in java.
public class MyClass { public int b;
public int h; public double result() {
return ((b * h)/2);
}
}
Is the class looks good to you?
Let me explain to you. MyClass is a triangle model, it has b for base and h for height. so, what’s method result for? It is a method to calculate area of the triangle.
Class MyClass is bad example in write a class. If there is no explanation, people couldn’t understand.
The good idea to naming class is express intent. All of line inside the class should be readable. We should naming the class, variables and method with proper name, so that people can understand what the meaning of that code easily.
public class Triangle { public int base;
public int height; public double area() {
return ((base * height)/2);
}
}
Looks better, huh?
Don’t forget to make your code clean and clear.