Of course, you say your morning prayers to guide and protect you throughout the day, but have you thought about saying a prayer, perhaps one from a saint like Saint Thomas Aquinas, before you start writing new code? Or do you wait until you're struggling with debugging and fully immersed in frustration?
That was me too.
I still get anxious and jump in before I write, but when I stop, pray, think, and then jump, I find that development goes much better. Debugging has more common-sense cause and effect.
Try it for a week and see if it doesn't reduce your stress and improve your success. You'll feel smarter and more productive without the surprises.
I recommend this one from Saint Thomas Aquinas
Creator of all things, true Source of light and wisdom, lofty origin of all being, graciously let a ray of Your brilliance penetrate into the darkness of my understanding and take from me the double darkness in which I have been born, an obscurity of both sin and ignorance.
Give me a sharp sense of understanding, a retentive memory, and the ability to grasp things correctly and fundamentally.
Grant me the talent of being exact in my explanations, and the ability to express myself with thoroughness and charm. Point out the beginning, direct the progress, and help in completion; through Christ our Lord.
Amen