Gallian
2020-11-18 15:18:04 UTC
So I am stuck writing code for an automated deployment system (one of
the popular ones, but not the latest one declared shiny). And during a
refactor I spot 5 different locations using the same value. Obvious
refactor, duh, declare a variable and use that.
Colleague declines my merge request after code review:
- "Just hardcode it".
- "But why? This is cleaner, less error-prone, it's even future-proof at
almost zero complexity overhead"
- "We don't use this kind of code anywhere else. But you can check with
colleague B if you want"
Colleague B: "Well, actually, I'd have done the same; I'll put my
recommendation in the Merge Request".
Aaargh.
1. Since when is "we just don't do this" a decent argument? Even if we'd
had a style guide, that would still have been a stupid argument, but
at least it would have had some organisational backup. But just
expressed as nothing but a personal opinion?
2. How many guesses that Colleague A will complain behind my back that I
"went whining to Colleague B instead of just taking criticism on his
MR"?
Fscking office politics. Fscking Dunning-Kruger cowboys. But I repeat
myself.
Mart
the popular ones, but not the latest one declared shiny). And during a
refactor I spot 5 different locations using the same value. Obvious
refactor, duh, declare a variable and use that.
Colleague declines my merge request after code review:
- "Just hardcode it".
- "But why? This is cleaner, less error-prone, it's even future-proof at
almost zero complexity overhead"
- "We don't use this kind of code anywhere else. But you can check with
colleague B if you want"
Colleague B: "Well, actually, I'd have done the same; I'll put my
recommendation in the Merge Request".
Aaargh.
1. Since when is "we just don't do this" a decent argument? Even if we'd
had a style guide, that would still have been a stupid argument, but
at least it would have had some organisational backup. But just
expressed as nothing but a personal opinion?
2. How many guesses that Colleague A will complain behind my back that I
"went whining to Colleague B instead of just taking criticism on his
MR"?
Fscking office politics. Fscking Dunning-Kruger cowboys. But I repeat
myself.
Mart
--
Nobody surrenders to the dread pirate Wesley
Nobody surrenders to the dread pirate Wesley