MATLAB: Where do people learn “bad” programming habits (i.e., goto, global, and eval)

basic programmingdiscussioneducationevalgo togoto

I will likely be teaching some basic MATLAB this year. I have had little formal instruction on programming, but if I remember the little I have had, global variables and goto statements were not taught and the MATLAB specific eval was not mentioned. It seems these "bad" programming constructs tend to cause more problems then they solve for beginners. How do I avoid a class full of students that want all variables to be global, wish MATLAB had a goto statement and think eval is the bomb.

Best Answer

At Cody.