I suggest reading a few books like Masters of Doom. Read about how they worked 16 hours days for weeks on end, researching, learning and writing code, they used to sleep under their desks for a few hours for weeks on end. Read, or watch some videos, from Bjarne Stroustrup or from some of the lead Microsoft architects, they will be the frirst people to tell you that coding is difficult and that they make many mistakes and that it's an ever ongoing learning curve.
So coding can be difficult yes, but you have to be committed and put in many hours of practice and learning and expect to make many mistakes but your certainly not too old. Many people are taking up programming at all ages. So work hard, be humble, don't be afraid to make mistakes, learn from your mistakes , don't be intimidated by programming and enjoy it.