847
submitted 3 days ago* (last edited 3 days ago) by Maven@lemmy.zip to c/programmer_humor@programming.dev
top 50 comments
sorted by: hot top controversial new old
[-] _____@lemm.ee 121 points 2 days ago

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

[-] sour@feddit.org 64 points 2 days ago

im probably missing like one or two

commit. Lol

load more comments (1 replies)
[-] lurklurk@lemmy.world 16 points 2 days ago

You get pretty far with just clone, pull, add, commit, push

load more comments (20 replies)
[-] Phoenix3875@lemmy.world 32 points 2 days ago

Reminds me of a hilarious bug in early GHC: https://gitlab.haskell.org/ghc/ghc/-/issues/163

The compiler will delete your source file if there's any compile error. And the user complained only by sending a very polite email to report this bug. Simon Peyton Jones mentioned it in one of his talks and I still find it quite hilarious till this day.

[-] fibojoly@sh.itjust.works 8 points 2 days ago

Left the --hardcore compile option on. Easy mistake.

load more comments (2 replies)
[-] AnAmericanPotato@programming.dev 142 points 3 days ago

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.

[-] Omega_Jimes@lemmy.ca 69 points 3 days ago

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

[-] Michal@programming.dev 35 points 2 days ago

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

load more comments (4 replies)
load more comments (4 replies)
[-] cocobean@bookwormstory.social 40 points 3 days ago

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 (4 replies)
load more comments (6 replies)
[-] zarlin@lemmy.world 318 points 3 days ago

The real issue is already going 3 months without source control.

[-] Mixel@feddit.org 95 points 3 days ago

I have heard things from another apprentice who just does not use version control at all and the only copies are on his laptop and on his desktop. He is also using node.js with only 1 class and doesn't know about OOP (not sure if you even use that in js no clue 😅) and has one big file with 20k lines of code I have absolutely no clue how he navigates through it

[-] e8d79@discuss.tchncs.de 80 points 3 days ago

I know the type. Usually the kind of confident know-it-all who refuses to learn anything but delivers changes really quickly so management loves them. I had the misfortune to fix such a project after that 'rock-star' programmer left the company. Unfortunately the lack of professional standards in our industry allows people like that to continuously fail upwards. When I left the project they rehired them and let them design the v2 of the project we just fixed.

load more comments (4 replies)
load more comments (5 replies)
load more comments (1 replies)
[-] MystikIncarnate@lemmy.ca 22 points 2 days 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.

load more comments (2 replies)
[-] RobotZap10000@feddit.nl 60 points 2 days ago

5000 files

0 backups

Someone's got their priorities mixed up.

load more comments (4 replies)
[-] bitwolf@sh.itjust.works 30 points 2 days ago

It does warn you it will erase the file when you discard...

[-] JackbyDev@programming.dev 15 points 2 days ago

Go read the actual thread. There was a bug someone found that files you have in there that aren't even associated with git still get deleted. I'm not entirely convinced this was the poster's fault.

[-] Scoopta@programming.dev 11 points 2 days ago

It's not a bug, it's intentional. They consider changes to be any change since the last commit including in untracked files. They did update it to make this behavior a lot more obvious though.

load more comments (2 replies)
load more comments (1 replies)
[-] kalpol@lemmy.world 12 points 2 days ago

Warns you that changes will be discarded....not quite the same words

load more comments (9 replies)
load more comments (1 replies)
[-] DelightfullyDivisive@lemmy.world 24 points 2 days ago

I'm sure that the "three months of work" was completely shit code. Anybody who is unfamiliar with source control (or even backups!) is prone to making stupid mistakes. Republican voters are likely to have a similar experience over the next 4 years.

[-] xorollo@leminal.space 20 points 2 days ago

What a delightfully divisive statement. We do all need to start somewhere though, and losing months of work is very discouraging!

[-] AusatKeyboardPremi@lemmy.world 40 points 2 days ago* (last edited 2 days ago)

I always found Git GUIs, especially the ones built into IDEs, to be more confusing and clunkier than working with Git on a terminal. It often feels like unlearning what one knows about Git, and relearning it the way that specific GUI demands.

Heck, I am going through the aforementioned feeling as I force myself to use Magit on Emacs. It just does not feel intuitive. But I will not give up until I have made an honest and full attempt.

The only sensible Git GUI I ever used is Sublime Merge[0], after a coworker praised it immensely. Even that is reserved for the rarest of the rare times when the changes in the workspace gets unwieldy and unruly. For every other instance: Git CLI on a terminal.

[0] https://www.sublimemerge.com/

E: typo, and link to mentioned GUI.

load more comments (2 replies)
[-] mox@lemmy.sdf.org 159 points 3 days ago* (last edited 3 days ago)

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

[-] eating3645@lemmy.world 116 points 3 days ago

Steps to Reproduce:

1.Go near this fucking shit editor.

2.Commit the deadly sin of touching the source control options.

🤣

[-] jmcs@discuss.tchncs.de 88 points 3 days ago
  1. Ignore the scary warning VS Code shows you when you press the button.
[-] Hawke@lemmy.world 107 points 3 days ago

I dunno, “discard changes” is usually not the same as “delete all files”

load more comments (11 replies)
load more comments (11 replies)
load more comments (1 replies)
load more comments (1 replies)
[-] JackbyDev@programming.dev 51 points 2 days ago

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

[-] kamen@lemmy.world 23 points 2 days ago

That has the same energy as complaining that a file manager has "Delete" in the context menu.

[-] Swedneck@discuss.tchncs.de 13 points 2 days ago* (last edited 2 days ago)

except that the "delete" in file managers is actually "trash" and that's for precisely this reason. Anyone not using the trash bin for a GUI that is capable of deleting files is either incompetent or malicious.

frankly rm should default to using the trash bin as well, for desktop-focused distros.

[-] mvirts@lemmy.world 38 points 2 days ago

Obligatory mention of file recovery as an option if you get in this situation.I recommend testdisk but there are other more gui friendly options.

NTFS takes a relatively long time to destroy the data so chances of recovery are good on Windows.

[-] mindbleach@sh.itjust.works 8 points 2 days ago

Fuck all victim-blamers. "Discard" is not how you label a button that permanently erases anything.

[-] wowwoweowza@lemmy.world 16 points 2 days ago
[-] computerscientistII@lemm.ee 25 points 2 days ago

No backup, no sympathy.

[-] LANIK2000@lemmy.world 35 points 2 days ago

Honestly no idea why someone would go around a completely unknown menu in a new unknown editor and randomly click things with caution completely out the window. Not having a copy or trying a blank project, not even reading any messages. I mean even if we don't know it's a nuke button, God knows what other edits it could do to your code without you knowing.

This goes beyond rookie mistake. This is something 12 year old me would do. Same with the issue page being 90% swear words.

[-] calcopiritus@lemmy.world 22 points 2 days ago

I don't even know why people ITT are blaming the IDE and completely ignoring this.

When you learn git, you do so on a dummy project, that has 5 files which are 10 characters long each.

An IDE is not made so you can't break things, it is tool, and it should let you do things. It's like complaining that Linux will let you delete your desktop environment. Some people actually want to delete your desktop environment. You can't remove that option just because someone can accidentally do it by ignoring all the warnings.

load more comments (10 replies)
load more comments (6 replies)
[-] Korne127@lemmy.world 41 points 3 days ago

Poor guy basically did a git reset —hard HEAD without even a git repository

load more comments (2 replies)
[-] joyjoy@lemm.ee 72 points 3 days ago

Say you don't know how to use git without saying you don't know how to use git.

load more comments (16 replies)
[-] Havald@lemmy.world 69 points 3 days ago

Skill issue

[-] onlinepersona@programming.dev 55 points 3 days ago

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

[-] Zagorath@aussie.zone 40 points 3 days ago

I understand the impulse to be empathetic and kind. But it's very hard to respond in good faith to someone who just made a post where more than half the words are "fuck you".

load more comments (5 replies)
[-] LengAwaits@lemmy.world 37 points 3 days ago

Looks like someone forgot about the 3-2-1 rule. Teachable moment.

load more comments (7 replies)
load more comments
view more: next ›
this post was submitted on 20 Nov 2024
847 points (100.0% liked)

Programmer Humor

19623 readers
1 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