Honestly this. When I learn something and want it to stay in my mind, I used to make videos. Then I’d narrate the videos and listen to myself, see where I actually fall short in understanding. I’d go for a drive and speak out loud in the car “Ok, so leader election in RAFT works like this”.
Very nice way of grasping theory. THEN I implement it all, from scratch.