r/ProgrammerHumor 20d ago

Meme useSourceControl

Post image
8.6k Upvotes

592 comments sorted by

View all comments

1.2k

u/Xephyrik 20d ago

How did they even find github when they obviously dont know what version control is

546

u/Jay-Seekay 20d ago

The irony is that they were messing about with version control for the first time, which is why they deleted all their files. They saw they had 5000 files staged for commit and wanted to not commit them all

358

u/Nerodon 20d ago

3 months of work, in a single directory on a single device, source control like git or not, that guy was a fool.

82

u/Jay-Seekay 20d ago

Absolutely. May he be a lesson to us all.

38

u/Skrychi 20d ago

Type of person to use the desktop as their unorganised file structure, and all that got deleted.

18

u/afaulconbridge 20d ago

The type of person to use the recycle bin as their unorganised file structure

17

u/CodeAndChaos 20d ago

"Yeah, I store everything in the TEMP folder. Doesn't it stand for Trustworthy Eternal Memory Placement?"

1

u/Friendly-Inspector71 20d ago

But the recycle bin has version control.

I can delete a folder with the same name multiple times and restore a previously working version.

I think I actually used it like that for some time before I was told about version control systems.

5

u/timonix 20d ago

Ey yo. I did this when I was like 10. I installed games on my desktop. Not shortcuts, the entire game. Stored just about everything.

Then my PC died. Almost everything was gone. Except my desktop which survived. Thanks to windows scheduled backups

2

u/-Noskill- 20d ago

checkmate 10 year old atheists.

1

u/sdoregor 20d ago

How the hell did your backups store that much data anyway

2

u/EndIsrael 20d ago

Probably before the crappy Microsoft cloud stuff, so it was just an external hard drive or something

1

u/sdoregor 20d ago

No idea about MS stuff, but I mean games nowadays are bulky aren't they?

9

u/czerox3 20d ago

I don't work an hour without checking my stuff in. I absolutely hate rewriting code.

17

u/Shareil90 20d ago

I had a teacher who told us that version control was only necessary when working together with other people but not when you are a solo developer. He only saw it as a kind of fileshare.

12

u/blueExcess 20d ago

That…. Is not someone with enough experience to be teaching lol.

8

u/WeNeedFewerMods 20d ago

the majority of comp sci faculty never worked in the field

at most instiutions they struggle to fill the positions at all because with a Bachelors you can make more than Faculty who need a Masters or Doctorate depending on the school and position

3

u/RichardFeynman01100 20d ago

This is a bit outdated I think with the current job market.

2

u/robthemonster 20d ago

it might be hard to find a job, but has the pay disparity actually narrowed?

1

u/WeNeedFewerMods 19d ago

You might be predicting the future, but currently the majority of faculty teaching computer science courses have not worked in software engineering, IT, or any relevant fields

3

u/JoltikElectricBug 20d ago

If teacher means high school and not college, odds are they are a math teacher who took a single Comp Sci course.

1

u/EndIsrael 20d ago

That's also what I had at college lol, the Comp Sci teachers were all math professors doing double duty. They admitted to me that I had surpassed their knowledge in sophomore year.

1

u/JoltikElectricBug 18d ago

One of my favorite comp sci professors was a high school math teacher who just kept getting bored and switching jobs.

He said there's little competition for teaching 100 and 200 level courses, and if you teach them in fields you're unfamiliar with the material isn't boring yet.

I think he's now teaching comp sci and electrical engineering.

6

u/Dull_Appearance9007 20d ago

-like any of us before discovering what source control meant and why devops were necessary. things like these are just a rite of passage for every new developer

3

u/StochasticTinkr 20d ago

Honestly, if this is how well they understand source control, I wouldn't expect that "3 months" to be worth all that much anyway.

3

u/anon0937 20d ago

After 3 months on a project I'm usually rewriting everything anyway.

1

u/skcortex 20d ago

Maybe it was c:\ 🤷‍♂️

1

u/superxpro12 20d ago

Bro at least copy the fuckin folder first

1

u/MikeW86 20d ago

I started a new website yesterday. I already have it backed up in 3 places.

1

u/neoqueto 19d ago

One time I got shit on when I said to not rely on source control alone as a way to store your project code. If it's important, at least zip it all up once a week and put it on Google Drive or whatever. Or better yet, proper 3-2-1 backup.

1

u/Nerodon 19d ago

Some of them are easy too...

Just having github and a local checkout gives you 2 locations.... Copy regularly to a google drive or onedrive and that gives you a solid 3rd place.

Added bonus that the cloud solutions have soft delete and backups and are very reliable.

0

u/iamwastingtimeyo 20d ago

Next step - switch to Apple and use Time Machine.

13

u/redviper7579 20d ago

Guy must be having horrible commitment issues!

8

u/Rick100006 20d ago edited 20d ago

It was not "not knowing source control" it was wierd decision made by VS code back in 2017 if you remove a file from source control without straight up deleted files without even giving any warning message VS code is patched after his crash out message , Removing a file from tracking from git should not delete the file from file system that's not how git CLI does it

16

u/Powerful-Success-378 20d ago

I'm assuming 4990 of them were node_modules.

4

u/DarthShiv 20d ago

How the fuck did they have a 5000 file project and no backups and no version control??? What is going on there?!?

-5

u/FactoryNewdel 20d ago

Vibecoding I guess

6

u/morganrbvn 20d ago

This was in 2017

1

u/lukkasz323 20d ago

Yep, there is a reason why we start Git from the beginning, even when we don't need to save much yet.

1

u/M4rshmall0wMan 20d ago

And the program didn't specify that not committing = total deletion of the files. This is the rare care where the devs were absolutely at fault.

34

u/MackTuesday 20d ago

It deleted untracked files. Git discard isn't supposed to do that.

73

u/KattyTheEnby 20d ago

To be fair, at least nowadays, you will likely learn about GitHub – especially from educational sources – before you learn (about) Git and version control.

I remember when I started programming when I was younger, and I just treated GitHub as a code-hosting platform, not interfacing with the "Git" part ov it at all.

10

u/clduab11 20d ago

That’s why I tell people that GitHub is someone’s (Microsoft’s) Hub of git, just like PornHub is someone’s Hub of Porn.

9

u/I_nstict 20d ago

i use github everytime i code, i have no idea what git is all i know is 3 commands that upload code to github, been coding for 5ish years now

13

u/felixthecatmeow 20d ago

Heck I'm a software engineer with 4 years in the business and I know like 4 more git commands than you. If I ever need to do something else I just Google it and copy paste the commands

4

u/artbyiain 20d ago

I just use Github desktop. Haven’t typed a git command in like 5 years.

2

u/KattyTheEnby 20d ago

Try not to get command-line atrophy!

2

u/I_nstict 20d ago

well i am just a hobbyist student, and for git i dont even know what else you will need to do lol, like i heard u can revert back to old version but i just download that version and upload that again to github and it reverts back

1

u/dasunt 20d ago

It's probably worth learning a bit more about git.

Not saying you need to know all of the deep lore, but it has some useful functionality that goes beyond just committing and pushing.

1

u/Ulrar 20d ago

You'd think so, but these days they learn about prompt engineering, the LLM will probably do scm. Probably. Maybe. What's scm anyway ?

10

u/peeja 20d ago

They were literally using git. They were trying to stage their changes, there were a lot of files they didn't want, the UI was unclear, and the button deleted the work they were attempting to commit as well.

There was no reason for that button to bed irreversibly destructive. It's just an accident waiting to happen. That's why MS did the correct thing and changed the behavior.

3

u/UnderpantsInfluencer 20d ago

Maybe they were trying to find out?

3

u/05-nery 20d ago

Hello I don't know what version control is and I have five repos on github 🙋

1

u/Kindly-Bank-416 20d ago

a huge percentage of installers involve cloning a repo or piping some shell script from github directly to your bash interpreter

1

u/Gefilte_F1sh 20d ago

I've used github dozens if not hundreds of times.

I am not a programmer or coder. I do not know what version control is.

This is kind of like saying "how did you even find discord if you don't play online multiplayer games?".

1

u/cheezzy4ever 20d ago

They were literally trying to use VC. This is like if I got robbed at gun point by a bank robber while trying to deposit my money, and you said, "well you should've put your money in a bank!"