Yes. If you are able, try to get some experience teaching. If you do it well, it will give you plenty of experience writing code while discussing its relative merits. Hell, spend enough time with academics and you will get in the habit of writing code on paper first and only typing it later as an after thought.
And wait till you get one know-it-all student! They act like sufficiently smart compilers, correcting both syntax and semantics. They will make sure you follow what you teach!
All this sounds hard, but the curve doesn't have to be more steep than you want it to. The world is full of programmers who could use a few minutes of your time to understand that pesky algorithm that you know backward and forward.