Take notes as you go. Type the code manually. Experiment with variations of the code. It does help your brain encode the information.