People learn by trial and error - that's not a flaw, it's part of the design. Understanding this, God has provided ways for us to recover from error.