Indeed, tenacity and discipline is a very good skill. It's what I personally lack and has been weighing down on my career, and damn it, on my life.
Should op detach his self worth from his skills in programming/math etc, he'll feel very good. It's another can of worms though