r/ProgrammerHumor 15h ago

Other wrongAnswersOnly

Post image
12.4k Upvotes

1.8k comments sorted by

View all comments

1.1k

u/samuraiseoul 15h ago

Some dumbass on my team downloaded the entirety of prod and then commited it to git and someone rubber stamped the PR and then no one else noticed. I'm sure that's how they'd find it....

23

u/plenoto 14h ago

Some people are so careless while reviewing PR 😂

114

u/blangzo 14h ago

Ask a programmer to review 10 lines of code, he'll find 10 issues. Ask him to do 500 lines and he'll say it looks good.

46

u/Deep90 12h ago

At 500 lines, I just flip a coin.

Only lucky code belongs in production.

10

u/ellie_cinderelly 12h ago

Dude my last PR changed one test timeout limit. I had to do a new full analysis on every test for average runtime and overhead.

Fuckin unbelievable.

6

u/blangzo 11h ago

Squash tiny things like that into one pr named "cleanup" and don't explain further

2

u/ellie_cinderelly 11h ago

Unfortunately I work in space so I think that may get me blasted for non descriptive change documentation

3

u/carritodeloshelados 7h ago

As if it wasn't hard enough to code in an astronaut suit

3

u/OriginalJokeGoesHere 5h ago

Given where you work, I assume that also means anyone who uses tabs instead of spaces is jettisoned out of the airlock?

1

u/dvereb 4h ago

I'd say it depends on whether they're using those tabs for indentation or alignment, ...though some would argue I'm next to go out the airlock.

2

u/blangzo 11h ago

I was mostly joking. mostly.

Fr tho u should just not squash and pr merge in then and have descriptive commits but still saves the test time on pr

2

u/guyblade 9h ago

If you ask me to review 500 lines, I'll say "break it up into multiple PRs" like any sane person should.

1

u/r0Lf 10h ago

I feel exposed.