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 (46) 25 threads

Show all comments

Showing thread 5 of 25

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.

LandOfMightDev1 reply#
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.

Continue this thread — 1 reply

unsloppable1 reply#
>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?

eru#
I find that normalisation is a good default, and deviations should be argued for.

But different people have different ideas.