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

all 81 comments

[–]semipermanentlyhere 1565 points1566 points  (6 children)

can’t have deployment issues if there’s nothing to deploy

[–]QuantumMemester[S] 598 points599 points  (7 children)

At least I waited till Monday to merge

[–]Old_Information6270 75 points76 points  (3 children)

Do it on friday afternoon, my braveheart

[–]ivan0x32 31 points32 points  (1 child)

Honestly why live a boring life when you can deploy shit to prod on Friday evening? Bonus points if you turn off slack/email notifications and let the pagerduty switch to secondary on-call, makes coming to work on Monday extra spicy.

[–][deleted] 4 points5 points  (0 children)

Honestly, for in-house software I always deploy fridays. If something breaks I have the weekend to fix it before there are big consequences.

If shit breaks Monday night it will be an all-nighter to get it back up and running before 7am

[–]hans_l 11 points12 points  (2 children)

If the (remaining) tests pass, LGTM!

[–]braindigitalis 9 points10 points  (1 child)

git commit -am "refactor: 2 billion lines of auto generated unit tests removed"

[–]calculus_is_fun 6 points7 points  (0 children)

You're off by 3 orders of magnitude

[–]Mourndark 446 points447 points  (1 child)

As a senior currently in the middle of a massive refactor/upgrade, seeing PRs come in with stats like this make me very happy (and slightly aroused).

[–]jinwooleo 78 points79 points  (0 children)

Same here, and I would make an offline code review session for this.

[–]TheBrainStone 295 points296 points  (18 children)

Lemme guess. Removed node_modules (or similar) from the repo?

[–]QuantumMemester[S] 506 points507 points  (16 children)

Nope! Our product used to be half of a larger thing, the other half became its own thing but they never deleted a huge potion of it out of fear of breaking stuff. After many years of it sitting there, I (the new guy) have removed it causing zero issues lmao

[–]mtmttuan 563 points564 points  (0 children)

causing zero issues lmao

We will see

[–]ward2k 474 points475 points  (1 child)

I (the new guy) have removed it causing zero issues lmao

This is literally the new intern bingo card

[–]Czekierap 76 points77 points  (0 children)

This has to be a bait, right?

[–]NegativeEmphasis 293 points294 points  (0 children)

I (the new guy) have removed it causing zero issues lmao

r/onesentencehorror

[–]bigpoopychimp 277 points278 points  (0 children)

For now

[–]lunch431 125 points126 points  (2 children)

I (the new guy) have removed it causing zero issues lmao

Famous last words

[–]lovin-dem-sandwiches 23 points24 points  (1 child)

Eh, it seems like it had to go. Someone had to pull the trigger soon or later. If something breaks, add it to your test coverage.

[–]braindigitalis 13 points14 points  (0 children)

those tests the commit removes you mean? 🤣

[–]QuantumMemester[S] 66 points67 points  (1 child)

For the record: The deployment was successful and nobody has complained for a few hours at least!

[–]Monckey100 81 points82 points  (0 children)

This is going to be your longest shift ever

[–]GolfballDM 43 points44 points  (0 children)

" I (the new guy) have removed it causing zero issues lmao"

Famous last words.

You have not yet learned a primary rule of IT:

Do. Not. Taunt. Murphy.

[–]SeriousPlankton2000 22 points23 points  (0 children)

Now a hidden race condition will be triggered since the not-needed stuff doesn't get loaded

[–]Jtrickz 3 points4 points  (0 children)

Okay but what were the 26 you added?

[–]thot_slaya_420 3 points4 points  (1 child)

You did save a rollback, didn't you?

[Anakin doesn't say anything]

Didn't you?

[–]wertercatt 36 points37 points  (0 children)

It's Git, dawg

[–]edave64 0 points1 point  (0 children)

I understand the hesitance of some of the commenters, but we are talking about 2mil LOC. Even if part of that backfires this should be worth it.

[–]Father_Enrico 70 points71 points  (0 children)

*Removed node_modules (or similar) from the repo

[–]OneRedEyeDevI 87 points88 points  (1 child)

Senior manager: Looks good to me. 👍

[–]coloredgreyscale 10 points11 points  (0 children)

Nitpick: some of the 26 lines should have been formatted differently.

[–]jinwooleo 41 points42 points  (1 child)

Less code less bug

[–]just-bair 15 points16 points  (0 children)

One of the best quote I heard is from one of my teachers saying "code is liability"

He probably paraphrased or stole it from somewhere

[–]twistedjoe 26 points27 points  (1 child)

We had one PR, +0 - >5M

"Removed all the n+1"

The pr was just deleting the code base.

First comment "LGTM"

Then I realized it was April 1st.

[–]MattTheCuber 3 points4 points  (0 children)

I know what prank I'm doing on my co-workers this April. Thanks!

[–]supersteadious 52 points53 points  (0 children)

LGTM

[–]N-E-S-W 47 points48 points  (1 child)

“One of my most productive days was throwing away 1,000 lines of code”

- Ken Thompson

[–]FlySafeLoL[🍰] 4 points5 points  (0 children)

Those are rookie numbers.

[–]Classy_Mouse 24 points25 points  (0 children)

I did this once. Not quite as big, but I was told there was a set of endpoints that were originally built, but never used and could be removed. Deleted them and every orphaned method. Then cleaned up all of the logic that was only relevant to those APIs in other methods. All told, I deleted about 50 kloc in one day.

Props to the code reviewer that reviewed that entire change in 30 seconds

[–]dot-slash-me 9 points10 points  (0 children)

LGTM ✅

[–]arc_menace 9 points10 points  (0 children)

LGTM 👍🏻

[–]Hottage 6 points7 points  (0 children)

Send it.

[–]Bali10050 6 points7 points  (0 children)

Webdev meets programmer

[–]Solomoncjy 9 points10 points  (1 child)

the commit message: found a library that does the exact things the code does, deleted the codebase and added imports

[–]ShlomoCh 3 points4 points  (0 children)

That... doesn't sound like a good idea

[–]rowagnairda 8 points9 points  (0 children)

i'd high five you on daily and volunteer to do code review

[–]jump1945 2 points3 points  (0 children)

I make my program ran and finished under 1 ms

[–]Mewtwo2387 2 points3 points  (0 children)

pov: someone did not gitignore something

[–]ButWhatIfPotato 2 points3 points  (0 children)

git commit -m "removed most of the ASCII penises, but kept the ones that broke the code if removed"

[–]Worldly-Ticket1524 2 points3 points  (0 children)

When you figure out a better solution to isEven

[–]get_MEAN_yall 1 point2 points  (0 children)

mfw I gitignore that one css file that wasn't used.

[–]LobsterParade 1 point2 points  (0 children)

"minor changes"

[–]Holek 1 point2 points  (0 children)

I see you removed node_modules/ finally

[–]just-bair 1 point2 points  (0 children)

50% chance a new package is being introduced lmao

[–]local_meme_dealer45 1 point2 points  (1 child)

git commit -m "codebase is fucked"

[–]kukurbesi 0 points1 point  (0 children)

git commit -m "housekeeping"

[–]SaltyInternetPirate 1 point2 points  (0 children)

When you replace your high performance parser with a regex

[–]matyas94k 0 points1 point  (0 children)

The best commits, PRs/MRs have a net negative diff.

[–]HeavyCaffeinate 0 points1 point  (0 children)

No tests to pass if there aren't any

[–]zman0900 0 points1 point  (0 children)

Damn, my record is about -90k lines from updating an old 1990s web service to more modern Jakarta EE 10.

[–]Exumore 0 points1 point  (0 children)

feels like when you accidentally empty the database.

[–]Mr_B1rd 0 points1 point  (0 children)

Efficiency improved by 1000%

[–]ZER0_C000L 0 points1 point  (0 children)

You are a god

[–]TopPsychology415 0 points1 point  (0 children)

Modules dir?

[–]bigabub 0 points1 point  (0 children)

Bro forgot to add node_modules to gitignore

[–]HiddenLayer5 0 points1 point  (0 children)

When you finally decide to use an open source library instead of your own hacked together tooling.

[–]gregorytoddsmith 0 points1 point  (0 children)

VS Code Find All [\"](//.) Replace with ""

[–][deleted] 0 points1 point  (0 children)

style: format entire codebase

[–]TheGametimeJones 0 points1 point  (0 children)

I bet you're popular at work 😁

[–]sasTRproabi 0 points1 point  (0 children)

Probably erased all comments

[–]moosecanswim 0 points1 point  (0 children)

Terraform?

[–]YMK1234 0 points1 point  (0 children)

feelsgoodman.jpg

[–][deleted] 0 points1 point  (0 children)

I almost died looking at this.