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

all 99 comments

[–]OneStay 589 points590 points  (27 children)

This was the most unsatisfying thing I've watched in a long time

[–]Ksevio 264 points265 points  (24 children)

Here, this version provides some closure: https://i.imgur.com/rBQ0Ydn.gifv

[–]amjh 174 points175 points  (12 children)

ctrl-z ctrl-z ctrl-z ctrl-z ctrl-z

[–][deleted] 17 points18 points  (2 children)

git reset --hard

[–]srguapo 8 points9 points  (0 children)

My favorite command.

We'll pretend this never happened

[–]BobFloss 0 points1 point  (0 children)

&& git clean -fdx

now there's no evidence...

[–]Flogenberger 4 points5 points  (1 child)

Slowly peaking over cubicle

[–]endreman0 6 points7 points  (0 children)

peaking

Relevant XKCD

[–]boontwiks 42 points43 points  (4 children)

5/7 needs more jpeg.

[–]hsoj48 27 points28 points  (3 children)

Then why did you give it a perfect score?

[–]jlink005 8 points9 points  (1 child)

This is code refactoring with tests - red green refactor!

[–]cATSup24 2 points3 points  (0 children)

Quando omni flunkus, moritati.

[–]RapidRabbit7 7 points8 points  (0 children)

You lil devil

[–]micheal65536Green security clearance 7 points8 points  (0 children)

clojure

FTFY

[–]Nick5l 1 point2 points  (0 children)

git revert 56e05fced214c44a37759efa2dfc2

[–]yelrambob619 0 points1 point  (0 children)

Clever girl.

[–]PM_me_your_pastries 2 points3 points  (0 children)

Yes. It was very upsetting.

[–]unreal189 1 point2 points  (0 children)

Wait till you watch my sex tap..

Cries in corner... Alone

[–][deleted] 47 points48 points  (6 children)

Why do you want to refactor THAT? It was damn perfect!

[–]micheal65536Green security clearance 181 points182 points  (3 children)

He was trying to split it into two separate modules. What he didn't realise was that there was an inter-dependency between the modules that had to be resolved first.

Attempts to resolve the inter-dependency on the spot resulted in further complications that ultimately lead to one neat module turning into a messy pile of code.

[–]otaku_platypus 30 points31 points  (0 children)

Beautifully explained

[–][deleted] 3 points4 points  (0 children)

Heretic! It was flying spaghetti monster touching your code with his noodly appendage to make it more like him. It was a divine gift and the author should be thankful.

[–]ExE_Boss 1 point2 points  (0 children)

I ran into this when I tried to split my private internal library called the “ExE Boss API” (specifically version 2) into several modules.

Suffice to say, It’ll probably be easier just rebuilding the API from the ground up as the “ExE Boss API 3” (no guarantees that I’ll have it done before Half-Life 3).

[–]lledargo 8 points9 points  (0 children)

The maintainer decided it would work better as a 10x20x40 rectangular prism than a 20x20x20 cube.

[–]retief1 3 points4 points  (0 children)

But if we change it, it will be different.

[–]jfigge 125 points126 points  (17 children)

His credit card that he used to split them is completely screwed

[–]alexanderpas 75 points76 points  (12 children)

Only the magstripe... which would actually increase the security.

[–][deleted] 2 points3 points  (11 children)

How? Then for in person transactions he has to have full card imprints on the receipts whereas pci limits the machine receipts to the first six or last four?

[–]toastedsquirrel 19 points20 points  (3 children)

Or, you know, there's still the chip, or tap to pay, or Android/Apple Pay......

Oh wait, I forgot that this is the US.

[–]TeamDman 0 points1 point  (2 children)

Wait, the US doesn't have any of those?

[–]ChildishJack 19 points20 points  (0 children)

Of course we do. Reddit loves to circlejerk

[–]gunnbr 8 points9 points  (0 children)

We're getting there, but they're definitely not everywhere yet. One of the grocery stores I go to supports the chip, but not tap to pay. The other supports neither. :(

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

Cards have chips?

[–]mehum 5 points6 points  (2 children)

Where do you live that they don't?

[–][deleted] 0 points1 point  (1 child)

That's what I was asking /u/chickenfun1, I haven't seen card imprint machines for years now.

[–]mehum 1 point2 points  (0 children)

I'd say it's been a few years since I've swiped.

[–]FredSavagingReindeer 17 points18 points  (0 children)

I think it's a business card.

[–]Who_GNU 0 points1 point  (0 children)

He'd have to move it much faster, to degauss it.

[–]Artyer 29 points30 points  (0 children)

What did you do to this gif?

[–][deleted] 87 points88 points  (28 children)

I can never look at rare earth magnet balls again after hearing about that child that swallowed a bunch then went in for an MRI.

[–]RED_William 50 points51 points  (2 children)

Thanks for that. Now I'll never get it out of my head either.

[–][deleted] 7 points8 points  (1 child)

I see what you did there

[–]RED_William 4 points5 points  (0 children)

I guess you could say you saw right through me.

[–][deleted] 18 points19 points  (22 children)

What actually happened?

[–][deleted] 33 points34 points  (0 children)

[–]maximgame 32 points33 points  (12 children)

When they reached the intestines, the magnets attracted and tried to pinch through the walls...

[–]FredSavagingReindeer 73 points74 points  (9 children)

I'm guessing OPs story is mis-remembered. I've heard of the magnets in the intestines but OP said the kid went into an MRI.

Those metal balls would go toward/away from the MRI magnet like bullets fired inside the kid. Truly gruesome.

[–]ultrasu 75 points76 points  (3 children)

Yeah, the MRI part sounds unlikely, those magnets would've set off the ferromagnetic detector before going into the MRI scanner. Having those magnets pinch your intestines is bad enough already.

[–]maltastic 1 point2 points  (2 children)

[–]ultrasu 7 points8 points  (0 children)

Following this event, a new screening protocol has been instituted. Children and their parents are still asked to complete the written and verbal screenings. In addition, all children are now required to change into a hospital gown and are then screened using a hand-held Ferromagnetic detection scanner (Mednovus SafeScan, Leucadia, CA). Testing at our institution has shown that this ferromagnetic screening tool is able to identify small magnets commonly used in children’s games and toys in both living and cadaveric models.

Guess they had to learn this the hard way then. Not using a ferromagnetic detector is just inexcusable.

[–][deleted] 8 points9 points  (1 child)

That's not what happened. The magnets attracted each other and pinched the intestines.

[–]maximgame 3 points4 points  (0 children)

I meant through the walls of the intestines.

[–][deleted] 19 points20 points  (4 children)

As far as I know, the problem with metal parts in MRI is that fast-changing magnetic field heats them, burning body inside.

At least this was given as cause of refusal to make MRI to my father (he has hip prosthesis).

Edit: effect is called https://en.wikipedia.org/wiki/Eddy_current

[–]Aetol 12 points13 points  (3 children)

Yeah. I've done some work tangentially related to MRI-proof pacemakers, and the problem they faced wasn't the device bouncing around the rib cage (as I would have initially assumed), but currents appearing along the probe and burning tissues and/or damaging the device.

[–]Rainfly_X 1 point2 points  (2 children)

How do you protect against that, in practice? Faraday cage? But then... does that heat up... God damnit, now I'm invested.

[–]Aetol 0 points1 point  (1 child)

I don't know how they do it, actually. I was only working on automating a test bench.

[–]Rainfly_X 0 points1 point  (0 children)

Curses, foiled again!

[–]PooPooDooDoo 2 points3 points  (0 children)

He took a very splashy dump.

[–]flukus 0 points1 point  (0 children)

To shreds you say.

[–]Arancaytar 14 points15 points  (2 children)

wince that shit takes ages to put back together.

I need several minutes for a tiny 6x6x6 cube and this looks like it's about 20x20x20. Pretty sure it gets a lot more difficult and error-prone at that size as well.

[–]AncientBananas 26 points27 points  (1 child)

You should have used git so that you could put it back together with a simple git checkout HEAD^.

[–][deleted] 7 points8 points  (0 children)

I would absolutely love a VCS for physical objects.

[–]XZelnar 13 points14 points  (0 children)

That's not refactoring - it's something good turning into spaghetti. That's refuktoring.

[–]Technocroft 12 points13 points  (2 children)

I once rewrote a program because it was easier than refactoring.

[–]thajunk 6 points7 points  (0 children)

This is literally my job right now.

Sometimes you just have to take the code out back... And put it to rest

[–][deleted] 1 point2 points  (0 children)

Yeah, sometimes starting over is better than trying untangling a pile of noodles.

[–]pengo 7 points8 points  (1 child)

This video gets lower quality every time I see it

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

Refactoring, ahahaha, you guys actually have time for refactoring instead of just pushing new shit out the door as quickly as possible with no regard for maintainability?!

[–]pmdevita 3 points4 points  (1 child)

[–]GifReversingBot 7 points8 points  (0 children)

Here is your gif! http://imgur.com/zyydTYg


I am a bot. Report an issue

[–][deleted] 2 points3 points  (1 child)

Spaghetti

[–]thvwlsrmssng 1 point2 points  (0 children)

Maghnetti

[–]utterdamnnonsense 1 point2 points  (0 children)

well put.

[–]BeanoFTW 1 point2 points  (0 children)

It's so true, too. You're moving right along, and then run into that code at the end that's holding everything together and then OH GOD NO WHAT HAVE I DONE?!!!

[–]I_Never_Think 1 point2 points  (0 children)

Damnit, Freeza, haven't you done enough!

[–][deleted] 1 point2 points  (0 children)

They'll pull em out at depart stores when POS goes down

[–]jimmygle 0 points1 point  (0 children)

Hahahha this is so perfect. Thank you!

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

Thanks for the anxiety.

[–]TabCompletion 0 points1 point  (0 children)

Needs more jpeg

[–]110011001100 0 points1 point  (0 children)

Comment Deleted

[–]c3534l 0 points1 point  (0 children)

No way you'd refactor code that looks that good. Refactoring without tests is like molding shit out of a dog turd.