@mariatta my mantra has long been "code for myself to read in ten or twenty years time" - i.e. long after I've forgotten almost everything about how and why I wrote it.
Admittedly it took me ten years to see why that was wise, and then twenty to be really clear about it, but hey that's time for you.