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

Programmer Humor

19804 readers
536 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
873
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[–] aliser 28 points 3 weeks ago (10 children)

deleted a chunk of my work the other day by pressing Ctrl z in windows explorer. my project was without source control installed (cuz it was in Dev stage), and Ctrl shit z/Ctrl y hotkeys didn't work, so that chunk was just gone, persished forever... or so I though. I remembered vs code having a file history under some panel. found it, and here it was - at least some of the latest history of my file. lesson learned: even in Dev where nothing is yet working, finish your day of coding with a commit to a remote repo.

[–] GreenKnight23 9 points 3 weeks ago (6 children)

all I'm learning from these stories is to stay far far away from vscode.

[–] CaptPretentious 4 points 3 weeks ago* (last edited 3 weeks ago)

VSCode is absolutely fine.

Most of these comments can be reduced to either

  1. I use CLI by the way...

  2. Hating on VSCode because it's Microsoft product and for no other reason.

A Gitlab/GitHub account is free. VSCode absolutely lets you type git commands if you prefer that, The GUI only provides access to the most common actions you will do. And I could be wrong on this, but I feel like the discard button does prompt the user that the files will be permanently deleted and you have to click okay. But maybe that only applies to tracked files, not sure off the top of my head.

load more comments (5 replies)
load more comments (8 replies)