Most of the programmers while coding don’t pay attention to some basic principles like properly naming the variable, commenting , exception handling. During my experience of development, spending some time, and designing your code, saves you from lots of trouble later. When you are doing some bug fixing. Or some one else is making some changes or enhancement to your code. Here are some tips you can use to avoid common code writing issues.
- Meaningful Names for Variables and Controls
Give names that are meaningful, instead of int i=0; use int totalStudents =0; This helps you in future when you are reviewing your code and you know instantly what is going around. (more…)