Return to site

CODING TIP: Stop a moment to think about the name of the package/class/method/variable

· coding,java

YES, names are EXTREMELY important.

With a self-describing name, it is very easy to find out what your code is doing.
For this reason, do not use the first name that pops into your head.
Think about the best possible name that describes exactly for what your package, class, method, variable is responsible.
Avoid ambiguous names!
If a bug occurs in this functionality, it will be very difficult to find it.
Examples of ambiguous names:

Specific names help A LOT!