this post was submitted on 20 Nov 2024
576 points (97.4% liked)

Programmer Humor

19623 readers
1734 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
576
submitted 13 hours ago* (last edited 13 hours ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 28 points 9 hours ago (3 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.

[–] [email protected] 3 points 2 hours ago

Every new project for me starts with setting up git. There's no reason not to. It takes seconds.

[–] [email protected] 12 points 7 hours ago (4 children)

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

[–] [email protected] 6 points 3 hours ago

Makes no sense to me. I’ve never had a single problem. Best ide I’ve ever used.

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

(VS)Code(ium) is great. (VSCode is MS fork of the OSS Codium.) It's a popular editor with a lot of plugin for just about every language. It has an integrated console. It can do basic Version control (and you can use the console for anything more). It's my favorite editor/IDE (not technically and IDE, at least out of the box). Just don't do things you don't understand. It's that simple. The OP fucked around, and they found out what it does the hard way. It's really easy to use if you have a basic understanding of things though.

[–] [email protected] 2 points 1 hour ago

/((vs)|(visual ?studio)):? ?(cod(e|ium)?)/igm

[–] [email protected] 9 points 5 hours ago

You can avoid this problem by not doing version control in your code editor. Different programs for different purposes. VS Code is fine for editing code and should not be used to manage an entire project.

[–] [email protected] 6 points 6 hours ago

I begrudgingly switched to vscode a few years ago. I've never had any issues like this with it. My only issues have been with a plugin that I installed optionally (and that was later fixed by the plugin author).

[–] [email protected] 4 points 8 hours ago

Nah you gotta submit a bug report for that