this post was submitted on 20 Nov 2024
8 points (90.0% liked)

Programmer Humor

27933 readers
637 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
[–] Havald@lemmy.world 0 points 1 year ago (1 children)
[–] Beacon@fedia.io 0 points 1 year ago (1 children)

I don't know anything about programming, i came here from /all, but it seems to me that a command that's this permanently destructive warrants a second confirmation dialog message reminding the user that the files will be permanently deleted and not undoable

[–] Maven@lemmy.zip 0 points 1 year ago* (last edited 1 year ago) (1 children)

Here is the exact warning that a user had to click through in order to get to where they got:

The warning

[–] Semi_Hemi_Demigod@lemmy.world 1 points 1 year ago

That's not a very good dialog box. He didn't make any changes, so discarding them doesn't sound like a problem.

There should be a notice when you enable source control that this will permanently delete all existing files with a checkbox (checked by default) that says "Add existing files to source control."