Thank you. I read them and they are exactly what I'm looking for. May I ask how you learnt this so that I can too?
Most of the recommendations I make came from learning things the hard way.
As a concrete example, early in my time at this job I needed to make a small CSS change in some template. I made the change, checked it in, and then like 50 tests started failing. I found it absolutely crazy that my changing such a trivial, visual thing would break so many functional tests, so I started suggesting that we not use the same classes for styling as we did for local hooks. I didn't know the word for it at the time, but there was clear coupling between our style and functional classes.
Anyway, it was little things like that, over time, that helped be develop much of my philosophy on this stuff.