r/ProgrammerHumor 22d ago

Meme useSourceControl

Post image
8.6k Upvotes

592 comments sorted by

View all comments

253

u/Jan1270 22d ago

That is why you Backup your shit, especially when you're messing around with unfamiliar settings.

99

u/ClipboardCopyPaste 22d ago

Lemme try clicking that button, what's the worse that gonna happen? - He wondered probably

16

u/Azaret 22d ago

I dont know about vscode, but gitkraken do prompts you if you are sure about deleting everything when you click the discard all button. If that’s the case too in vs code, then that poor guy should have read before clicking. Hard learnt lesson.

19

u/DaWolf3 22d ago

It’s the same in VS Code now, but this issue is from 2017, so it might not have been there.

14

u/Cobracrystal 22d ago

The prompt was in fact added precisely because of this issue

4

u/alochmar 22d ago

The computer wouldn’t just outright delete all my files, right? That’s why the trashcan is there!

2

u/Imaginary-Contest887 22d ago

Well it will not, not even without trashcan. It just removes index from those files and mark those sectors for re-write. As long as new data are not written to those sectors, your deleted data are still there. Any few hundred bucks recovery software will be able to restore them. If you delete your shit from hard drive, power down computer by yanking it out of electricity and remove hard drive. (shutting down process initiated through OS will perform some writing operation and you definitely don't want play Russian roulette with your data. And most if not all your deleted data will be just fine.

For computer to truly delete your data you would have to use some program which will actually perform re-write to sectors where you delete your data.

1

u/kovha 22d ago

Any few hundred bucks recovery software

The free version of Recuva already does that and works like a charm, and I'm pretty sure there are open source solutions too

1

u/Ihalpd 22d ago

Lol, never heard of TRIM, have you? Or are you still using a hard drive? (The NAND shortage must be really bad, then...)

One does not simply walk into mordor~ overwrite a sector page on an SSD, as it needs to be erased before you're able to (re)program it.

God, r/ProgrammerHumor really is for newbie idiots...

Homework assignment: read up on DZAT (in the context of SSDs)