I've gotten into a habit over the years of exclusively using "We" in reference to anything code related, even if it's something I wrote entirely myself. The diffusion of "we" versus "I" allows you talk about things much more objectively and openly. And it really helps to maintain a blameless culture. This also extends to "You", so I'd never tell a junior "You did this poorly, you should fix this". It's always "We should find a better solution, what are your suggestions?".
This is the way. People notice (and it just feels better) when you absorb blame but share credit. Then again, maybe I've just been lucky to work in reasonably OK environments so far.