this post was submitted on 20 Nov 2024
902 points (97.6% liked)

Programmer Humor

19665 readers
248 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
902
submitted 2 days ago* (last edited 2 days ago) by [email protected] to c/programmer_humor
(page 4) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 2 days ago

Jesus saves, and so should you

[–] [email protected] 18 points 2 days ago (3 children)

Typical web developer. He didn’t even know files can be deleted without going into „recycle bin”

load more comments (3 replies)
[–] Michal 5 points 1 day ago (4 children)

If the files were already staged then git should have blobs in the git folder, so they should be recoverable.

[–] JackbyDev 3 points 1 day ago

Did you read the thread? There was a bug that deleted all files even ones unassociated with git.

[–] [email protected] 3 points 1 day ago (3 children)

Sounds like they weren't even using version control, and had no business anywhere near a project that size.

load more comments (3 replies)
load more comments (2 replies)
[–] [email protected] 1 points 1 day ago* (last edited 1 day ago)

i mean doesn't it just integrate with explorer/tortoisegit so all the files would go to the recycle bin anyway?

either that or this: https://stackoverflow.com/a/72695095

Step 1: Enter Ctrl + Shift + P on VSC

Step 2: Choose the option "Local History: Find Entry to Restore"

Step 3: Find the file which you want to restore

Step 4: Choose a time you save that file

Step 5: Copy file content and restore it

[–] [email protected] 22 points 2 days ago (4 children)

Doing a git clean is a dick move.

load more comments (4 replies)
[–] [email protected] 21 points 2 days ago

Screenshots of git issues are one of my favorite genres of meme

[–] [email protected] 4 points 1 day ago* (last edited 1 day ago)

I agree with the "learn the CLI", but to newcomers I'll also suggest to look at the IDE/editor's output channel - if there's GUI for Git, there are also most likely logs for what's happening under the hood - even if a little noisy, it can be a good learning resource. And of course if you're learning and unsure of what's happening (with the CLI or through a GUI), do so in a non-destructive manner (by having proper backups).

[–] [email protected] 20 points 2 days ago (1 children)

Often times, people learn that the stove is hot by touching it.

It's easier to blame the stove than the person who touched it. But if you laugh when you watch it happen, you're probably not laughing at the stove.

load more comments (1 replies)
[–] ICastFist 4 points 1 day ago (2 children)

Same account that complained about the christmas santa hat

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