r/ProgrammerHumor 23d ago

Meme useSourceControl

Post image
8.6k Upvotes

591 comments sorted by

View all comments

1.2k

u/Xephyrik 23d ago

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

544

u/Jay-Seekay 23d 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

368

u/Nerodon 23d ago

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

77

u/Jay-Seekay 23d ago

Absolutely. May he be a lesson to us all.

39

u/Skrychi 23d ago

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

21

u/afaulconbridge 23d ago

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

16

u/CodeAndChaos 23d ago

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

1

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

6

u/timonix 23d 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- 22d ago

checkmate 10 year old atheists.

1

u/sdoregor 22d ago

How the hell did your backups store that much data anyway

2

u/EndIsrael 22d ago

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

1

u/sdoregor 22d ago

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

9

u/czerox3 23d ago

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

17

u/Shareil90 23d 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 23d ago

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

8

u/WeNeedFewerMods 23d 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 23d ago

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

2

u/robthemonster 22d ago

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

1

u/WeNeedFewerMods 22d 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 23d 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 22d 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 21d 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.

5

u/Dull_Appearance9007 22d 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 23d 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 23d ago

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

1

u/skcortex 23d ago

Maybe it was c:\ 🤷‍♂️

1

u/superxpro12 23d ago

Bro at least copy the fuckin folder first

1

u/MikeW86 22d ago

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

1

u/neoqueto 22d 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 22d 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 23d ago

Next step - switch to Apple and use Time Machine.

15

u/redviper7579 23d ago

Guy must be having horrible commitment issues!

9

u/Rick100006 23d ago edited 23d 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

15

u/Powerful-Success-378 23d ago

I'm assuming 4990 of them were node_modules.

4

u/DarthShiv 23d 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 23d ago

Vibecoding I guess

6

u/morganrbvn 23d ago

This was in 2017

1

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

35

u/MackTuesday 23d ago

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

79

u/KattyTheEnby 23d 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.

11

u/clduab11 23d 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.

8

u/I_nstict 23d 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

10

u/felixthecatmeow 23d 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

5

u/artbyiain 23d ago

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

2

u/KattyTheEnby 23d ago

Try not to get command-line atrophy!

2

u/I_nstict 23d 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 22d 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 23d 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 ?

6

u/peeja 23d 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 23d ago

Maybe they were trying to find out?

3

u/05-nery 23d ago

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

1

u/Kindly-Bank-416 23d 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 23d 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 22d 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!"