1. In a way this is the point, you can't -- but the only time you should ever want to is in a user interface situation. For anything else, the code will be reading inputs, performing some operation and then generating an output. Changing outputs several times during the course of operation doesn't accomplish anything since those intermediate values will not be seen by the calling code.
2. Good locals are ones used in creating a user interface. When creating a GUI you -- oops, I mean -- one
🙂 will very often want to change the value of a control or indicator from several places. In such cases, a local variable is the only way of making the GUI behave the way you need it to.
The rule of I use is for my application in general is to
use only the very best design and implementation practices--for GUIs I do whatever I have to do to get the thing to behave as required...
Mike...