Do not just type notes. Handwrite them. Research shows handwriting (especially code logic flow) activates different memory centers in the brain than typing. Use a Rocketbook or an iPad with GoodNotes/Notability to keep them searchable.
The speed difference between Cache (L1/L2), RAM, and Secondary Storage. second year computer science notes