Type the code in and run it if you must. But go back and write in pen and ink.
It sounds weird. Programming languages have a lot of funky syntax. You’ll find the impulse to either find short-hand or else you will start structuring the program such that you can keep (parts of) it in your head.
It’s still the most enjoyable programming experience I’ve had.
What pens have you/others been using? I like the TWSBI 580.
Different inks can transform the writing experience; Aurora’s Black ink is very wet, and in my Lamy, writing with it is effortless.
I also enjoy writing with dip pens. The Sailor Hocoro (1) works with fountain- and dip-pen inks and has a smooth-writing steel nib. I use it when I want to write out some passage or quote in another color. India ink is the blackest black and I love it for that, while walnut ink is a pleasingly light sepia.
1: https://www.gouletpens.com/products/sailor-hocoro-dip-pen-se...