this post was submitted on 20 Nov 2024
863 points (97.5% liked)

Programmer Humor

19623 readers
1935 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
(page 3) 50 comments
sorted by: hot top controversial new old
[–] kamen@lemmy.world 4 points 16 hours ago* (last edited 16 hours ago)

I agree with the "learn the CLI", but to newcomers I'll also suggest to look at the IDE/editor's output channel - if there's GUI for Git, there are also most likely logs for what's happening under the hood - even if a little noisy, it can be a good learning resource. And of course if you're learning and unsure of what's happening (with the CLI or through a GUI), do so in a non-destructive manner (by having proper backups).

[–] zarlin@lemmy.world 329 points 1 day ago (2 children)

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

[–] Mixel@feddit.org 102 points 1 day ago (7 children)

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 86 points 1 day ago (4 children)

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.

[–] AlexWIWA@lemmy.ml 1 points 12 hours ago

We really need some kind of board like the one that controls the title for engineers.

load more comments (3 replies)
load more comments (6 replies)
load more comments (1 replies)
[–] ICastFist@programming.dev 4 points 16 hours ago (1 children)

Same account that complained about the christmas santa hat

load more comments (1 replies)
[–] Korne127@lemmy.world 45 points 1 day ago (2 children)

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

[–] GreenAppleTree@lemmy.world 11 points 20 hours ago

Even reset hard wouldn't delete untracked files. This was a complete overreach by the GUI, performing a clean (and likely a forced one, as git's requireForce defaults to true).

And they did rectify that eventually, giving a warning, and an option to simply reset. It's unfortunate this poor person had to be the trigger for that change.

[–] JackbyDev@programming.dev 1 points 12 hours ago

WORSE! If you read the thread and linked issue, it was closer to a clean.

[–] Michal@programming.dev 5 points 17 hours ago (7 children)

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

load more comments (7 replies)
[–] mox@lemmy.sdf.org 169 points 1 day ago* (last edited 1 day ago) (2 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

[–] eating3645@lemmy.world 125 points 1 day ago (28 children)

Steps to Reproduce:

1.Go near this fucking shit editor.

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

🤣

load more comments (28 replies)
load more comments (1 replies)
[–] LengAwaits@lemmy.world 39 points 1 day ago (7 children)

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

load more comments (7 replies)
[–] Artyom@lemm.ee 24 points 1 day ago (3 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.

[–] Korne127@lemmy.world 43 points 1 day ago (5 children)

The person didn’t have any git repository; probably a new programmer that didn’t know how version control works and just clicked discard without understanding what that means in this situation.

load more comments (5 replies)
load more comments (2 replies)
load more comments
view more: ‹ prev next ›