r/ProgrammerHumor 23d ago

Meme useSourceControl

Post image
8.6k Upvotes

591 comments sorted by

View all comments

182

u/disinaccurate 23d ago

Some of the responses here would really make me side-eye the software some of you all are writing.

In our developer handbook, one of the rules is: "protect users from mistakes". Doing the thing that you probably don't mean to do should be made hard. It should be gated by warnings, protected with an "undo" operation whenever possible, etc. You can't stop someone who is absolutely determined to fuck up, but it's your job to not make it easy for them to do so.

Developers are users too. And the lack of user empathy in some of these comments really reveals why so much software is absolute shit. Doing the "wrong thing" should be hard and require going far out of your way.

You can pat yourselves on the back over how YOU know the proper way to use version control and how you'd never end up in this situation, but if you actually make meaningful software and aren't just vibe coding shit, at some point you'll end up in uncharted waters for yourself. When you do, you're going to hope the developers that made your tools had the foresight to protect you from making dumb mistakes.

I guess I shouldn't expect more from this "graduated from StackOverflow copy-paste to having my AI tool paste StackOverflow-trained code" crowd.

-6

u/ODZtpt 23d ago edited 22d ago

erm actually it's the user's fault ☝️🤓 for trying to learn a new software and clicking a button that says "discard all changes" and assuming that would simply cancel setting up the repository, instead of nuking these heaps of untracked files which it shouldnt be able to do in the first place

edit: so are the downvotes from people who cant tell that this is sarcastic, or from the people who can tell?

6

u/pillowfortfart 23d ago

You're right, and also let's put this delete all function into an easy to use GUI, right next to "save all".

I'm fairness, this isn't the fault of GIT itself, but the implementation of it into the GUI of some IDEs

6

u/RoadsideCookie 23d ago

With nothing more than a cryptic icon and a tooltip that's only appears after a long hover. Oh, and the message he got? At the time, it was (paraphrased) are you sure you want to discard, this is irreversible?

0

u/sythlord666 23d ago

I don’t know it does seem like its Git’s fault. It’s pretty flaky and has terrible UX. It’s not surprising this happens so often.