Hacker News
Ask HN: Coworker rejects PR (a month in) because it does not meet his standards
chadash
|next
[-]
Now, I am not doubting that you have come up with a better pattern. But there is merit in having consistency within a code base. Sometimes doing things the same way across modules is easier to maintain, even if it is suboptimal.
If you are new to a codebase, my advice is to stick to the current conventions. When you are three or four months into the job, and you have earned some credibility, then it is OK to circle back and suggest some refactors.
codingdave
|root
|parent
|next
[-]
It is also easy to have a myopic viewpoint when you have been on a team a while and are saying "this is how we do things here".
I think the bigger point is that there is a difference of opinion on which pattern is better. This is typically the point when the team would confer together, discuss it, and pick a direction for the future. New team members are excellent at raising these types of questions, so I would not shut their observations down, even if you intend to come back to them later. I'd say instead that this is even more reason to talk them through as a team, because if the old member is right then the new member will learn why. And if the new member is right, then the team was improved by respecting their observation and discussing it. Either way, the team is now all working in the same direction with the same understanding.
LandOfMightDev
|root
|parent
|previous
[-]
rendaw
|root
|parent
|next
[-]
Sn0wCoder
|root
|parent
|previous
[-]
brudgers
|next
|previous
[-]
to use Y pattern I would basically need to change most of the logic and it would be about 70% waste.
They are paying you so that that sort of change can be made.
I'm going to have a chat with the manager tomorrow morning
You will create a problem for your manager that does not need to exist.
And not improve the one-level-up-reviewer’s opinion of you.
Again, behave like the kind of person other people want to work with.
Because people hire good hangs.
tyingq
|next
|previous
[-]
LandOfMightDev
|root
|parent
[-]
unsloppable
|root
|parent
|next
[-]
Normalization for the sake of normalization is an anti pattern. Normalization isn't free and the cost of de-normalization is often far less than the value it brings in terms of simpler code.
> for no good reason
You sure about that?
1659447091
|root
|parent
|previous
[-]
Unless you are offering to re-write their entire code base (on your own dime) to work with your pattern instead of the one they already have established, I would chalk it up to chesterton’s fence, change it over to the approved pattern y, and move on. There could be a reason they don't want to introduce x pattern which "is very similar only removing the limitation". Sometimes that reason gets lost but that doesnt make it invalid.
lordofthedogs
|next
|previous
[-]
Prompt AI on separate threads that makes a brief summary that shows that the old method is inferior - not scalable, unmaintainable, not fit for production, a security risk, a poor pattern. And your implementation - vastly superior.
If your manager is one who can not argue with AI, he will either capitulate or expose his bias towards the other coworker.
When some employees use terms like "does not meet our standards" or "is against our Architecture principles" but can not really explain why, they are coming with cheap shots to slow you down, setup you up for failure or get a reaction out of you.
Trying to explain it to them or to a superior does not work, that is why they play this game in the first place.
Your job is to come up with a cheap but sophisticated counter attack (AI summary that shows your implementation as vastly superior and the old code is a disaster waiting to happen). You may not win this time but if you act cool and make your future inflictions more sophisticated they will be scared to question you in the future because it shows them in bad light.
Some people engage in such practice to keep away competition or because they believe they are important because of their grasp of the old code. If it continues this way because they have a cabal or support from the superiors, it is best to move away before you ruin your career over pettiness.
mbielski
|next
|previous
[-]
lordofthedogs
|next
|previous
[-]
Small incremental changes may not make sense, if it is broken and unusable in production.
LandOfMightDev
|next
|previous
[-]
gus_massa
|next
|previous
[-]
hecturchi
|next
|previous
[-]
Now the manager has to deal with an issue between developers about which code is better. This is probably why some devs outrank others in the team, so they can settle those differences themselves. Probably wrong call to involve them. Also you will have to explain that month were work went unreviewed apart from a demo.
It seems you did not read the team idiosyncrasies well. As you grow in your SWE role you will have to learn to navigate that, including shipping what's feasible, not what's best (to your manager's delight because you shipped). That includes working with idiots too, sometimes.
I also find weird to come here to complain about this. Imagine everyone that had a technical disagreement did it. Why is yours so special? You can complain, or you can tell your AI to fix your PR according the new schema. Flag potential issues and request concrete feedback on how to address them.
Don't dump AI slop on why your stuff is better though. Humans will reasonably hate you for that.
jimmydoe
|next
|previous
[-]
LandOfMightDev
|root
|parent
|next
[-]
1659447091
|root
|parent
[-]
I don't claim to know how you fit in or not; or if you requested the moves or if the teams you've worked with think that you would be an even greater help to another team that is not them. But, fitting in is not usually described by first saying you were 'loaned' to your current team, and then that you have "worked with like 3 different teams" already.
idontwantthis
|next
|previous
[-]
LandOfMightDev
|root
|parent
[-]
idontwantthis
|root
|parent
[-]
LandOfMightDev
|root
|parent
[-]
clates
|root
|parent
|next
[-]
Jesus christ is this a +50k/-20k pr? I'd reject a 74 requirement PR whole cloth even if it was gorgeous code. It sets a bad precedent that opening a massive PR is acceptable and will get serious feedback. If that's the norm for the team, then why are we waiting 4 weeks in on getting green lights? I'd expect the team to be getting constant small green lights along the way with the most impactful/controversial mitigated at the beginning of the project.
seattle_spring
|next
|previous
[-]
How large is your PR?
codedrift_
|next
|previous
[-]
> I'm going to have a chat with the manager tomorrow morning
This is a one-way ticket into the Nobody Likes You bucket. You're going to your manager that has absolutely no influence over this project (you're on loan), so that what? Your manager can go to your senior colleague's manager and everyone gets pulled into a meeting that nobody wanted?
I can tell you from experience how this goes. Your senior engineering colleague is going to explain that Y pattern is what's been used, and that it should be Y pattern going forward so that there's not a one-off in the database. And you will be told to rewrite it. The only time this goes the other way is if your senior colleague walks. And then congrats, you're now the maintainer of all the pattern X and pattern Y.
ost-ing
|next
|previous
[-]
Wait 3 months, get the vibe of the company, and then try to change some things. An organization is about people management at the end of the day, and a cohesive team is more important than a perfectionist.
account42
|next
|previous
[-]
bitfilped
|next
|previous
[-]
AnimalMuppet
|next
|previous
[-]
If he's saying it doesn't meet his standards, and he's rejecting a PR for that reason... yeah, that's probably time to talk to the manager. That sounds pretty ridiculous.
LandOfMightDev
|root
|parent
|next
[-]
bradknowles
|root
|parent
[-]
But be prepared to lose. He sounds entrenched. And if they support him regardless, then you’re going to have to learn how to live with that.