this post was submitted on 20 Nov 2024
473 points (100.0% liked)

Programmer Humor

421 readers
60 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
top 50 comments
sorted by: hot top controversial new old
[–] MystikIncarnate@lemmy.ca 12 points 10 hours ago

While I have some sympathy for anyone who loses months of work, as an IT administrator by day, all I have to say about their lack of backups, and lack of RTFM before messing with shit is:

HAHAHAHAHAHAHA HAHAHAHAHA. you got what you deserved fucker. GL.YF.

[–] MonkeMischief@lemmy.today 7 points 10 hours ago (1 children)

Man I get paranoid about synchronization programs for this very reason. There's usually some turnkey easy-mode enabled as soon as you first launch that's like:

"Hey you wanna back up your entire NAS to your phone?! That'll be fun, right?!"

And you're like "...No."

And then it wants to obliterate everything so it's all "synchronized", often it's not easy to find a "No, stop, don't do anything at all until I configure this." Option.

iTunes was SO BAD about this.

Syncthing is the least-bad sync software I've ever run. It's got some footguns but it's still brilliant.

I would imagine there's still ways to back up version controlled software right?

[–] Lifter@discuss.tchncs.de 1 points 9 hours ago* (last edited 9 hours ago)

Any professional would have a code repository and probably a build server which spits out binaries left and right, off site of course.

Bonus points if that is the easiest way to deploy the software, so all developers actually use it.

Edit: typo

[–] PanArab@lemm.ee 6 points 14 hours ago* (last edited 14 hours ago)

So VS Code isn't just slow and bloated, it also deletes your files. So glad I was turned off by its excessive memory consumption and deleted it before it deleted my files.

Edit: also why I only ever used git from the command line, I never found a git UI that is easy to understand, and never trusted them.

[–] shekau@lemmy.today 1 points 10 hours ago

VSCodium better

[–] RobotZap10000@feddit.nl 37 points 20 hours ago (3 children)

5000 files

0 backups

Someone's got their priorities mixed up.

[–] JackbyDev@programming.dev 3 points 11 hours ago (1 children)

And they were trying to correct their priorities by looking into the source control features, so I don't see how that's anything other than victim blaming for them not doing it sooner.

[–] MystikIncarnate@lemmy.ca 1 points 10 hours ago

I would argue that it's common sense to at least make a point in time copy, to... IDK, a USB drive? Before trying to implement a new source/control system.

Just plug in an external drive, or a thumb drive, copy/paste, unplug it, then proceed with testing.

I don't see how anyone who values their time and effort could do any less.

As for the files, undelete is a thing, and it shouldn't be hard to do.

[–] TheNSFWConnoisseur@lemmynsfw.com 14 points 17 hours ago (1 children)

having 5000 backups of 0 files is also kinda pointless.

[–] Reil 3 points 12 hours ago

Yeah, those are novice numbers. I have infinite backups of my 0 files!

[–] QuazarOmega@lemy.lol 9 points 19 hours ago

You have to lose it all to know what matters (speaking from experience 😭)

[–] _____@lemm.ee 68 points 1 day ago (5 children)

let's turn this into a constructive angle for future devs and current juniors: just learn git cli, I promise you it is much simpler than it seems.

all those memes about git having like a thousand commands are true, but you really will only use like 7 at most per month.

learn push, pull, merge, squash, stash, reset, im probably missing like one or two

I promise you again: it is much simpler than it seems. and you won't have to use these stupid git GUI things, and it will save you a hassle because you will know what commands you are running and what they do

short disclaimer: using git GUI is totally fine but low-key you are missing out on so much

[–] CodeMonkey@programming.dev 1 points 11 hours ago

For me, it is easier to learn to use git via CLI instead of a UI. When I first started using git, I learned a few command/flag combinations that I use every day and I barely learned anything else about git after. Everything I don't do regularly I don't remember, but have written down in a text file of incantations. It is harder to write down what buttons and what menus I have to click.

[–] sour@feddit.org 38 points 23 hours ago

im probably missing like one or two

commit. Lol

[–] Piatro@programming.dev 6 points 19 hours ago

The main draw to the CLI for me is portability. I've been a dev for ten years now and used tons of different editors on different platforms and while each one had a different way to describe the changes, how to commit, or how to "sync" (shudder), the CLI hasn't changed. I didn't have to relearn a vital part of my workflow just because I wanted to try a different editor.

[–] TechieDamien@lemmy.ml 7 points 23 hours ago
load more comments (1 replies)
[–] computerscientistII@lemm.ee 18 points 19 hours ago

No backup, no sympathy.

[–] merthyr1831@lemmy.ml 2 points 13 hours ago* (last edited 8 hours ago) (1 children)

This is 2000% user error lmao even tho VS Code is a pain in the ass on w*ndows

EDIT nvm my reading is 2000% user error

[–] JackbyDev@programming.dev 3 points 11 hours ago (1 children)

Did you actually read the thread and see the bug they found where it deleted files unassociated with git?

[–] merthyr1831@lemmy.ml 2 points 11 hours ago (1 children)

I did but I must have misread maybe? Because what it looked like was it picked up the existing fucked up git repo but if vscode did the fucking up the less of a skill issue 😮‍💨😮‍💨😮‍💨

[–] JackbyDev@programming.dev 2 points 11 hours ago* (last edited 11 hours ago)

It was on this linked issue. They discuss the UX of it more there and I think it's a little better. https://github.com/microsoft/vscode/issues/32459

In particular, this comment helps explain why I think this is (was) a problem.

As we discuss this, keep in mind that most users who hit the "omg where are all my files" issue come into following these three simple steps:

  1. Oh what is this? Yes, let's initialize, git sounds awesome, people use it.
  2. Oh what is this? All my files appear in this list... but they didn't before. It looks like its touching my files, I don't like that, how to I get them out of here?
  3. Oh what is this? Discard all changes sounds a lot like what I want to do. 💀

People don't hit this issue because we have that action; they hit it because they want to clear that list. And they will go through great lengths to get there, even if not knowing what their doing or after warned that they are in dangerous waters.

Coupled with the behavior of this "discard all" being git clean rather than git reset, I get the complaints.

[–] AnAmericanPotato@programming.dev 84 points 1 day ago (5 children)

I feel bad for this kid. That really is a bad warning dialog. Nowhere does it say it's going to delete files. Anyone who thinks that's good design needs a break.

Half the replies are basically "This should be obvious if your past five years of life experience is similar to mine, and if it isn't then get fucked." Just adding insult to injury.

[–] JackbyDev@programming.dev 4 points 11 hours ago

It's so fucking infuriating that so many devs act like this. "This should've been obvious!" Fuck off, that's an unhelpful statement. "You should've been using version control! No backup, no sympathy!" Fuck off, they were literally trying to begin using version control for backups.

Even half the comments on this very Lemmy thread are disparaging this dev. I wonder how many actually read the thread and found that there was a bug discovered causing this feature to delete files not even associated with git?

But, congratulations to them, I suppose. Congratulations on making fun of someone. I hope it makes them feel powerful. 🙄 Devs can be so toxic.

[–] Omega_Jimes@lemmy.ca 44 points 1 day ago (4 children)

I'm not great at English, but "discard all changes" shouldn't ever mean "Delete".

[–] Michal@programming.dev 27 points 1 day ago (3 children)

In the context of version control it does. Discarding a change that creates a file means deleting the file.

[–] JackbyDev@programming.dev 2 points 11 hours ago

"Discard" is not a git operation.

load more comments (2 replies)
[–] stebo02@lemmy.dbzer0.com 3 points 19 hours ago

the alternative to deleting is emptying the file contents, which is essentially the same...

load more comments (2 replies)
[–] cocobean@bookwormstory.social 26 points 1 day ago (1 children)

Also, why not send them to the recycle bin? I never really thought about it before, but that does seem a reasonable UX improvement for this case

load more comments (1 replies)
[–] Scary_le_Poo 1 points 15 hours ago* (last edited 15 hours ago) (2 children)

If you're going to use a git tool, you need to know how git works.

There are 0 excuses for not having months of work in a repo, none. I have no sympathy whatsoever. How the fuck do you spend so many months without backing up your project or stuffing it in a repo?

No sympathy. Dude is a shit developer and he learned an invaluable lesson.

[–] JackbyDev@programming.dev 2 points 11 hours ago (1 children)

If you're going to use a git tool, you need to know how git works.

I guarantee you at least half of git users would get glossy eyes as soon as you mention blobs and trees, yet they all still manage to use it daily successfully.

There are 0 excuses for not having months of work in a repo, none. I have no sympathy whatsoever. How the fuck do you spend so many months without backing up your project or stuffing it in a repo?

I need you to listen to me very carefully: THEY WERE FUCKING SETTING UP A REPO WHEN THIS HAPPENED.

[–] Scary_le_Poo 1 points 6 hours ago

No, by his own admission, he was playing around with the IDE. He wasn't interested in the version control, he was interested in the pretty editor.

I suggest you go read the original issue.

[–] AnAmericanPotato@programming.dev 6 points 15 hours ago

My guess is that this is a teenager, and this is probably their first experience with git and version control in general. Just a hunch.

Anyway, it is reasonable to expect a mainstream GUI app from one of the largest companies in the world to be approachable for people who do not know all the inner workings of the command line tools that are used behind the scenes. And it is reasonable to expect any destructive action to have clear and bold warnings. "Changes will be discarded" is not clear. What changes? From the user's perspective, the only changes were regarding version control, so "discarding" that should leave them where they started — with their files intact but not in version control.

Have mercy on the poor noobs. We were all there once.

[–] kehet@sopuli.xyz 3 points 18 hours ago

Came here to say this. No one deserves this, not even new programmers who try to learn things.

Some programming tools are really powerful compared to what new users are used to. If you come from the world of Microsoft Office and Apple whatever it's called, everything is saved automatically to cloud and there is some local backup file somewhere which you can just restore. Modern programs are designed to protect users against their own mistakes, and when suddenly that is taken away, it can be a jarring experience.

[–] JackbyDev@programming.dev 34 points 23 hours ago

I fucking HATE when abstractions over git use cutesy names that git doesn't use.

[–] Michal@programming.dev 3 points 17 hours ago (1 children)

If the files were already staged then git should have blobs in the git folder, so they should be recoverable.

[–] JackbyDev@programming.dev 3 points 11 hours ago

Did you read the thread? There was a bug that deleted all files even ones unassociated with git.

[–] ICastFist@programming.dev 2 points 15 hours ago (1 children)

Same account that complained about the christmas santa hat

[–] CanadaPlus@lemmy.sdf.org 6 points 13 hours ago* (last edited 13 hours ago)

Link? It being "ghost" just means the user has been deleted so I can't actually go looking.

[–] mox@lemmy.sdf.org 101 points 1 day ago* (last edited 1 day ago) (1 children)

In case anyone else is wondering, or simply doesn't like reading screen shots of text, this is apparently a real report:

https://github.com/microsoft/vscode/issues/32405

load more comments (1 replies)
[–] Artyom@lemm.ee 14 points 1 day ago (1 children)

If you ever happen to have 5000 uncommitted files, you shouldn't be asking yourself if you should commit more often. You should be asking yourself how many new repos you should be making.

[–] expr@programming.dev 1 points 16 hours ago

Monorepos are a thing. But obviously this is something entirely different.

[–] onlinepersona@programming.dev 40 points 1 day ago (6 children)

The reactions here are why people don't join forums, don't ask questions, or choose to learn alone. "duh, I knew that". Yes, the dude didn't, which is exactly why he's frustrated. I think too many have forgotten what it's like to be a beginner and make a fatal mistake, which would explain the mocking responses here and things like recommending new linux users Arch.

Anti Commercial-AI license

load more comments (6 replies)
load more comments
view more: next ›