Thursday, December 29, 2011

Members are not welcome

When there's a variable that is shared between two methods, using a data member to transfer data back and forth between those methods is just plain wrong!
The data should be transfered using an argument to the called method, and the variable should be local in the calling method.