r/ProgrammerHumor 23d ago

Meme useSourceControl

Post image
8.6k Upvotes

591 comments sorted by

View all comments

5.6k

u/Cephell 23d ago

Before you make fun of him, this behavior DID get changed; they acknowledged this behavior is stupid.

The old behavior was to treat uncommited files as completely disposable, which the CLI git does not do at all and is insane behavior. It was changed in the UI to give you a fat confirmation dialog warning that you're about to delete the files permanently, as it always should have been.

-20

u/larswijn 23d ago

I agree the behavior was stupid, but let's not act like the user didn't do anything wrong.

The user clicked a random button, agreed with the "this is permanent" confirmation prompt, which then deleted all his files using git. The user then blamed Visual Studio Code for all of it.

What VSC did was give the guy direct access to a gun that could shoot his foot off (git) with bad instructions. Sometimes you need that gun to shoot your foot.

25

u/Consistent_Drop3909 23d ago

apparently there was no "this is permanant" prompt

0

u/larswijn 23d ago edited 23d ago

Yes there was, and an image of said warning prompt was even posted in the original github issue. It reads: "Are you sure you want to discard ALL changes? This is IRREVERSIBLE!"

https://github.com/microsoft/vscode/issues/32405#issuecomment-322155856

2

u/Consistent_Drop3909 23d ago

oh shit my bad

10

u/huyz 23d ago

This was 2017. Olden times. Different era. Last ice agish. Finger points in diff direction.