by jldugger · 2y ago · 0 comments
Usually its fine, though once in a while the original author gets annoyed at second guessing their work long after it was considered settled. One recent curious example was when I found a specific setting was applied for one out of a set of many similar subservices; when asking around for why only one of them got it when the current data suggested all subservices would benefit, a senior "architect" got annoyed with me asking questions. As best I can tell: the project was shelved after a few months when the architect solved the primary issue and got bored with it / delegated the polishing touches to a junior engineer who went on maternity leave shortly after. Which is a fine enough explanation for me to proceed, but nobody's eager to admit such social causes.
Maintaining code I wrote 15-20 years ago I find myself doing this with my own commits. I have to get back into the mental place I was when I wrote the original code and then it usually becomes clear if it was an expedient hack or a thought-out solution for a corner case.
The worst feeling is "cleaning up" some code, discovering the edge case under which the "simple" case fails, then re-implementing the same solution.
Such and such can't be done right now because of such and such.
Often it doesn't matter if I ever resolve those comments or solve that problem I hacked through. The value comes from avoiding the rabbit hole next time.
Whenever I encounter this I:
1. Add a comment explaining why the complexity is needed, because it will happen again.
2. Add it to my mental list of case examples of when I need to add a comment explaining something the first time I write it.
As a senior engineer, I struggle sometimes with people critiquing my work. For me, it all comes down to pride and ego. It’s been especially hard the last year, as I’ve been vying for a promotion. I need to work on humbly and joyfully accepting feedback from others.