Monday, August 25, 2008

Remember kids, protect your variables.

I'm currently in the midst of FINALLY getting some formal instruction on Object Oriented Programming. here is what I learned in my C++ class this evening.

Global variables are cheating. They are the public lollipop. Everything can take a lick at it. Keep your variables local.

No comments: