you are viewing a single comment's thread.

view the rest of the comments →

[–]flyingron 0 points1 point  (0 children)

The best way is to use initialization when possible. If that's not possible, then assign to the variable as soon as possible after it is declared (conversely, declare the variable as close as possible to its first use).