[Lavanya Deepak] Lavanya Deepak
Technology for Better Business and Higher Standards of Life

Friday, September 26, 2008

Initialise the Variables

Initialise the Variables

 

A good programming block would always ensure that any variables declared would have gone through a neater and standardized way of having them initialised to suitable value. Even if it is NULL, better specify it as an explicit NULL.

This ensures a lot of advantages for everyone

  1. The runtime clearly knows the values.
  2. Proactive handling of the values and the variable at a later point of time and reducing the risk of failure/breakdown of code.
  3. Easy maintainability of code.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home