I wrote an essay on things I've learned about programming in the 40 years I've been doing it: https://liw.fi/40/.