this post was submitted on 20 Nov 2024
858 points (97.5% liked)

Programmer Humor

26443 readers
1386 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] AnAmericanPotato@programming.dev 143 points 10 months ago (21 children)

I feel bad for this kid. That really is a bad warning dialog. Nowhere does it say it's going to delete files. Anyone who thinks that's good design needs a break.

Half the replies are basically "This should be obvious if your past five years of life experience is similar to mine, and if it isn't then get fucked." Just adding insult to injury.

[–] cocobean@bookwormstory.social 43 points 10 months ago (2 children)

Also, why not send them to the recycle bin? I never really thought about it before, but that does seem a reasonable UX improvement for this case

[–] murtaza64@programming.dev 4 points 10 months ago

I wonder if there's already a git extension to automatically stash the working tree on every clean/reset/checkout operation...

[–] stetech@lemmy.world 3 points 10 months ago (1 children)

Because “the underlying Git nukes them right away, so why shouldn’t we perma-delete the files, too?”

Anything else’d be effort…

[–] alphapuggle@programming.dev 9 points 10 months ago (1 children)

Honestly it probably just runs the underlying git command

[–] stetech@lemmy.world 1 points 10 months ago

Sorta, but sorta no.

It was actually addressed in https://github.com/microsoft/vscode/issues/32459 – the GUI implied a different git command than what actually got executed!

load more comments (18 replies)