So we're all human, we're not perfect. If you're religious, than its pretty well understood that we're not perfect and we make mistakes. So how do we learn from these mistakes? Is it enough to acknowledge that we did something wrong and say, "I won't do that again"? I personally think something more is needed as it can be all too easy, almost an excuse, to say that without any deep thought into what was done.
Also, is this tied into repentence? If you truly repent and feel remorse for what you did, does that help towards the learning process? How about repentance with God?