It's common in academic writing too. And many of those academics end up writing code too.
From Knut's course [1] on mathematical writing:
> But this use of “we” should be used in contexts where it means “you and me together”, not a formal equivalent of “I”. Think of a dialog between author and reader. In most technical writing, “I” should be avoided, unless the author’s persona is relevant.
[1] https://jmlr.csail.mit.edu/reviewing-papers/knuth_mathematic...