That is good for single thread code. But when writing multi threaded code most those rules fall apart very quickly.