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

Programmer Humor

19623 readers
1697 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 1 year ago
MODERATORS
(page 2) 50 comments
sorted by: hot top controversial new old
[–] mvirts@lemmy.world 38 points 1 day ago

Obligatory mention of file recovery as an option if you get in this situation.I recommend testdisk but there are other more gui friendly options.

NTFS takes a relatively long time to destroy the data so chances of recovery are good on Windows.

[–] computerscientistII@lemm.ee 20 points 1 day ago

No backup, no sympathy.

[–] zarlin@lemmy.world 326 points 1 day ago (13 children)

The real issue is already going 3 months without source control.

load more comments (13 replies)
[–] LANIK2000@lemmy.world 30 points 1 day ago (7 children)

Honestly no idea why someone would go around a completely unknown menu in a new unknown editor and randomly click things with caution completely out the window. Not having a copy or trying a blank project, not even reading any messages. I mean even if we don't know it's a nuke button, God knows what other edits it could do to your code without you knowing.

This goes beyond rookie mistake. This is something 12 year old me would do. Same with the issue page being 90% swear words.

[–] calcopiritus@lemmy.world 20 points 1 day ago (5 children)

I don't even know why people ITT are blaming the IDE and completely ignoring this.

When you learn git, you do so on a dummy project, that has 5 files which are 10 characters long each.

An IDE is not made so you can't break things, it is tool, and it should let you do things. It's like complaining that Linux will let you delete your desktop environment. Some people actually want to delete your desktop environment. You can't remove that option just because someone can accidentally do it by ignoring all the warnings.

[–] thebestaquaman@lemmy.world 16 points 1 day ago (5 children)

Got will not delete untracked files though, which is what happened here. If you want to discard changes to a file with git, you first have to commit the file to the index at some point, which means there's only ever so much damage an erroneous "git restore" or "git reset" can do. Specifically, neither of them will delete all the files in an existing project where VC has just been added.

load more comments (5 replies)
load more comments (4 replies)
load more comments (6 replies)
[–] Korne127@lemmy.world 45 points 1 day ago (2 children)

Poor guy basically did a git reset —hard HEAD without even a git repository

[–] GreenAppleTree@lemmy.world 11 points 1 day ago

Even reset hard wouldn't delete untracked files. This was a complete overreach by the GUI, performing a clean (and likely a forced one, as git's requireForce defaults to true).

And they did rectify that eventually, giving a warning, and an option to simply reset. It's unfortunate this poor person had to be the trigger for that change.

load more comments (1 replies)
[–] burak29@lemmy.cronyakatsuki.xyz 1 points 15 hours ago

"Microsoft Please Fix" ifadesi, genellikle kullanıcıların Microsoft ürünlerinde yaşadıkları sorunlara veya hata bildirimlerine yönelik bir çağrıdır. Tostçu Mahmut Menu

[–] mox@lemmy.sdf.org 168 points 1 day ago* (last edited 1 day ago) (30 children)

In case anyone else is wondering, or simply doesn't like reading screen shots of text, this is apparently a real report:

https://github.com/microsoft/vscode/issues/32405

load more comments (30 replies)
load more comments
view more: ‹ prev next ›