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

Programmer Humor

19817 readers
163 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
929
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/programmer_humor
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 8 points 1 month ago (1 children)

Even if you know git, you wouldn't assume that "discard all changes" affects untracked files. It's bad design all around

[โ€“] BatmanAoD 1 points 1 month ago

That depends on what you map "discard" to in your mental model. Whoever designed the VSCode feature chose to associate it with reset+clean, rather than just reset. Presumably that's why they called the menu option "discard" rather than "reset". (But I agree that this is a surprising choice, and that they managed to make an already-famously-bad UX even worse.)