Lurker News
just joined this new team about 1 year into their development. Demoed the work to the team about two weeks ago (half way in). Work is practically complete & runs well no issues. I create PR & assign the two PR reviewers (one my rank another a rank above me). one colleague (the one at my level) leaves some constructive comments no functional changes. The other colleague (one rank above me) says something equivalent to "does not meet our standards" "do not do x pattern since we have used y (which has a huge limitation)" to use Y pattern I would basically need to change most of the logic and it would be about 70% waste. I demoed my code with this pattern two weeks ago and there were no issues/comments from the team. The code is concise and easy to read. I had a call with the colleague and explained the code and why I used it, and showed him some other parts of the codebase where this pattern should be used, his only defense was that "it does not meet our standards because it uses X rather than y pattern, since we used y pattern in the past, we should only use y pattern" while x pattern is very similar only removing the limitation that was causing the code to be difficult to maintain etc. This "standard requirement" is written nowhere as a hard requirement and the codebase is barely one year old, with only one of the codebase founders still on the team.... I'm going to have a chat with the manager tomorrow morning.

Comments (41) 22 threads

chadash2 replies#
As a manager, I have a rule for people joining my team. You can’t make big changes in your first few months. This doesn’t mean our code base is amazing or that you are wrong… it’s simply that you have to really learn the business and the code base before you really understand what the priorities are. I tell people to write down things that they don’t like and then a few months in, we can circle back and decide if they are worth changing. It’s easy to have a myopic viewpoint when you don’t fully understand how things fit together or what the business priorities are.

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.

LandOfMightDev2 replies#
I've been here for more than a year, im just loaned out to help this team for now. The codebase is only around a year old, and most of it was created by just two people, one of which is no longer on the team... Basically it is an issue of normalization... Right now their current pattern is to use only 0-2NF which is objectively inefficient and just bad practice... Even someone new to the codebase can see this..
Sn0wCoder#
If the issue is really the database schema the only layers that would need to change are the database tables, the DTO mappers and maybe a few of the services. You can keep the backend DTO's, API and front end models and pages all the same. Sounds like a couple day change (few hours with Claude or Codex). Unless this is really a hill you want to die on seems they want the project in a specific state when you are no longer around, since sounds like you are just loaned out to them. I am all for normalizing the DB tables but at same time if that is how the lead (or whomever this rank above you is) just do it. Without more info hard to say who is 'right' and how long the changes will take -- Just my 2-cents.
rendaw1 reply#
If you're loaned out then you're new to the team, and it's likely temporary so whatever changes you make will have to be maintained by the original members once you leave. You didn't say anything about the software so I assume it was meeting business objectives. Introducing additional changes means it'll take more time to review and will take that time away from other work.
cdud3#
This. Writing it was the easy part. Maintaining it will be the hard part.
codingdave#
> It’s easy to have a myopic viewpoint when you don’t fully understand how things fit together or what the business priorities are.

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.

brudgers#
My advice: behave like the kind of person other people want to work with.

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.

tyingq1 reply#
Playing devil's advocate a little...a year in, I assume you would know that whatever your proposed schema was, that it was substantially different than the existing code. Even if it was better. I do get the frustration, but I also see both sides. Where it might be better to do it the wrong, but existing way, for a PR which did not have a stated purpose of starting to move to a better way.
LandOfMightDev2 replies#
it wasn't substantially different per-se... It was just normalized when a lot of the data structures were not normalized (for no good reason) usually 0-2NF
16594470911 reply#
> It was just normalized when a lot of the data structures were not normalized (for no good reason)

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.

LandOfMightDev#
i integrated it tested it and it passed every test and functioned with everything else. lol. I didn't just add it randomly/without taking into consideration the rest of the codebase.
unsloppable#
>It was just normalized when a lot of the data structures were not normalized (for no good reason) usually 0-2NF

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?

lordofthedogs#
I read your other thread about AI mis/use at your company.

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.

Load more comments