Beautifying TCodes
Filed Under (Presentations, Technical) by Mozammel on 11-10-2007
Tagged Under : coding, Java
Most artists whom I had met were lazy, and disorganized, but when it comes to their work, everything is clean and harmonious.
As a software engineer, you sell your service and your code is your product which you ship either to your team, or to the company’s source base. You need to make sure that your product is well packaged, and clean as any other product you would create and market.
Recently we are pushing the programmers to produce a cleaner and harmonious source codes for better readability. So, I created this presentation for developers in Therap.
It is true that you can find all these information from Sun’s Code Convention for Java developers site. But we know that most developers are lazy enough that they don’t read the full 24 page guideline provided over there. So, I’m sharing the presentation file here which contains the important conventions mentioned there. It may be useful for using it as a reference of any newcomers in Java world.


I would also like to suggest using separate prefixes for instance variables, method parameters and local variables. They go a long way in helping understand scope of variables and reduce silly bugs, especially in getter setters.
I’m thinking of something like:
class MyClass {
String mName;
public void doSomething( String pInput) {
String lVar = pInput.substring(1);
}
}