Posted by : Deepak Vasudevan Friday, September 26, 2008

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.

Popular Post

Blogger templates

Labels

Blog Archive

Followers

Blog Archive

Powered by Blogger.

- Copyright © Lavanya Deepak -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -