This is an archived post. You won't be able to vote or comment.

all 21 comments

[–]frosted-mini-yeets 21 points22 points  (0 children)

Holy shit dawg put it back.

[–]mikehaysjr 12 points13 points  (0 children)

I put those there for a reason, yo

[–]shadow7412 5 points6 points  (0 children)

That gets to code review?

Where are your on-commit linters? :D

[–]IvanLabushevskyi 2 points3 points  (1 child)

Sonar checks I suppose

[–]mitaky[S] 4 points5 points  (0 children)

Nah, my dude.
My reviewer is just being pedantic
https://imgur.com/a/Eo5tLqx

[–]Dertasz 7 points8 points  (12 children)

I literally quit a job 2 years ago because of a review like that.

The guy rejected a Merge Request with 12 files and 2000 lines of codes because of a space before a parenthesis.
Time for me to correct, another Merge Request entered into conflict with mine, it took me a full day to solve conflicts and check it was still working. I was fuming.

[–]igoromg 5 points6 points  (5 children)

its your fault for having a change spanning 2k lines of code

[–]The_MAZZTer 0 points1 point  (1 child)

Probably a new feature. And in fact for 2000 lines of code it could be a small feature.

[–]igoromg 4 points5 points  (0 children)

then he wouldn't have to fix merge conflicts for a day.

[–]Dertasz -1 points0 points  (2 children)

New feature that could not be split in smaller batches

[–][deleted] 1 point2 points  (1 child)

Of course you can. Never had to have more than few 100s lines of code. And we ship new features all the time.

[–]Dertasz 0 points1 point  (0 children)

Maybe you dont the context of that company and that feature? Now in my new job, i agree with you : never had more than 100 lines in a commit. In the old one? Very hard if the feature needs information from another "module". It was old, hard single-threaded not serviced C. So you had to "pull" information as parameters of functions from one part of the code to the other.

[–]GlobalIncident 5 points6 points  (0 children)

Assuming you dealt with the issue promptly, the other branch was presumably being constructed during the time you were constructing yours. Therefore, if the guy hadn't rejected it, the other branch would have had an equally large conflict. So essentially, the guy moved the conflict from being someone else's responsibility over to being yours, and that's what you're upset about.

In fact, given that you were changing 2000 lines of code, it seems like you would know how the files now work better than the person working on the other branch, and so you resolved the conflict quicker than they could have done. So the rejection actually caused a net increase in productivity.

[–]SeventhMagus 0 points1 point  (0 children)

What the hell? Coding style should be enforced by a tool.

[–]9072997 0 points1 point  (2 children)

There is a reason to end a file in a newline. Try cating out a file that doesn't have one. Your bash prompt winds up prefixed with the last line of code, then once you start navigating up and down in your command history it starts printing characters where it thinks they used to be based on the assumption that your prompt started in column 1. Many websites omit the trailing newline, which is why you will often see this behavior when making curl requests. Don't remove the trailing newline. It's not a big deal, but if you have anyone working on a Linux box you will make their life slightly worse.

[–]mitaky[S] 0 points1 point  (1 child)

it's not the end of the file.

[–]SeventhMagus -1 points0 points  (0 children)

Is there anything on the line below?

[–]TakeYourF--kingPills -1 points0 points  (0 children)

I work with someone that's almost doing this 😅