Anyone can get into trouble emotionally when they compare himself to another. What are you doing to take care of your depression? I agree with Rapunzel on that book. You can also get a kick start on CBT by checking the sticky post at the top of the psychotherapy forum 10 Common Cognitive Distortions. I suspect you are committing a few of them against yourself.