I'm not a programmer, but I would assume it's the same as any other field.
Keep meticulous notes of old material, review them on a regular basis, put them to practice on personal side projects if you aren't using them for any active projects for work.