You don't write code to solve a problem. You write code to be read by a future developer. Always kep that in mind. It makes absolutely no difference if it is future you, or someone else.