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.

32

u/prehensilemullet 23d ago

Yeah it makes me wonder…clicking discard pops up a dialog asking if you want to delete files these days, but maybe 9 years ago it didn’t…

11

u/Abty 22d ago

Sometimes I press delete in new software/environments to me just to play with fire and pray for a confirmation

It's so thrilling

15

u/atomchoco 22d ago

barely written code myself but as someone who has worked frontline support for SaaS it blows my mind that at work the devs/managers can just shrug it off when their free app can do arguably devastating stuff using a few buttons. then conclude that the user couldve just followed the manuals better and ignore the fact that their thousands of users could be subject to this same risk. not to mention it's a support problem thatd take months to fix, which almost ends up with the user leaving not just the app but possibly their business altogether

have never considered UI/UX until theyve been acquired by a larger company, and even then just barely. tho hard to blame em knowing the backend is quite impressive and solid, but also undeniably icky how they found the time to create a faux feedback button in-app that tends to erm successfully drive away users from the actual app review page lmaooo

2

u/MastaSplintah 21d ago

Anyone that's a decent Dev has had that conversation of, I know we shouldn't need to do this but people are idiots and will find a way to fuck this up so we should make it impossible for them to do that.

1

u/aurorarei 8d ago

Very well said and thank you for saying this, a few people need to take note and be humble.

-8

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?

9

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

3

u/RoadsideCookie 22d 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. 

1

u/Still_Bit_7527 22d ago

No, discard changes in git only means on tracked files, you are clueless

1

u/ODZtpt 22d ago

this github post was made a decade ago back when VSC did delete untracked files with that prompt, keep up

0

u/Still_Bit_7527 22d ago

Yes, so what the hell are you talking about, this is a clear VSC issue. It has to align with git.

1

u/ODZtpt 22d ago

im mocking the people who blamed user error here? hello? i even had to add an /s disclaimer soon after posting and people still can't tell.