r/programming • • Mar 27 '23

Twitter Source Code Leaked on GitHub

https://www.cyberkendra.com/2023/03/twitter-source-code-leaked-on-github.html
8.0k Upvotes

717 comments sorted by

View all comments

Show parent comments

872

u/ToughQuestions9465 Mar 27 '23

Thats not how git works. Its all or nothing. Interrupting a push would result in no changes to remote repository.

302

u/roboticon Mar 27 '23

Presumably the code was stolen onto a thumb drive or uploaded somewhere, then later whatever they got was published on GitHub as a git repo

286

u/Wingfril Mar 27 '23

I mean when I was there as an intern 5 years ago, that’s how they distributed the code… through a thumb drive.

169

u/Anomynoms13 Mar 27 '23

Wait what

622

u/oalbrecht Mar 27 '23

IT came around the corner with one of those TV carts filled top to bottom with 3.5” floppy disks. It only took a few weeks to get the source code off of those. But that’s how they kept the source code secure. No one is gonna steal your code if it’s on floppies.

There was also no need to use GitHub. You just call over and say: “Hey! Which floppy is X class on again?” Then you would walk over to the cart and pick up floppy disk #3252 and load that onto your computer. Then make your changes and write back to the floppy.

Elon has no idea how efficient we were with our system. You could ship a small feature in a little over a year. It was a blazing fast system we had.

326

u/gefahr Mar 27 '23

Some journalist is going to turn this into a hard-hitting investigative article within hours.

107

u/DevonAndChris Mar 27 '23

"This as-told-to was reported to Business Insider. BI confirmed that the person has a reddit account."

→ More replies (1)

54

u/electricprism Mar 27 '23 edited Mar 27 '23

Here at TrustMeBro™ news, could ancient aliens have been at the first thanksgiving? Professor PhD Kyle Broflovski says "yes"*

6

u/wrosecrans Mar 27 '23

I'm pretty sure that documentary will be on Netflix soon.

→ More replies (1)

7

u/josefx Mar 27 '23

Hope they include how air gaping the network makes it high security. Also the way any changes you made would be guaranteed to have no conflicts as only a single instance of the code can be checked out at any time appeals to me.

→ More replies (1)
→ More replies (2)

84

u/romple Mar 27 '23

You got floppies??? When I worked there the cart had giant stacks of dot matrix printer paper and I had to retype everything by hand!

Every day someone comes around with the latest changes printed out for you.

58

u/HiroariStrangebird Mar 27 '23

You guys get physical copies? Huh, maybe my company should upgrade from the town crier making the rounds each morning. Sometimes it's a little hard to hear and I have to spend half the day debugging the diff...

49

u/pm_plz_im_lonely Mar 27 '23

At our work we use Git and GitHub to share our work. If you start working on a new feature, you create a new branch on Git. Then once you're done with the feature, you make a PR (Pull Request) on GitHub. Then once that's done it sits there for 1-2 months before a reviewer closes it because it's too old.

→ More replies (1)

4

u/remog Mar 27 '23

Then there was that time he got laryngitis. Rough week. Or the time he hit is head and could only speak Latin and Fotran. Two other interns jumped off the roof that month.

→ More replies (3)

7

u/nzodd Mar 27 '23

If you're not pressing sharpened reeds into clay tablets you scooped out yourself from the local riverbank to write esoteric APL incantations, to be seen and understood only by Lord Enki, from now until the Euphrates spills over again to engulf the Earth and destroy all of mankind, can you even call yourself a real programmer?

→ More replies (1)
→ More replies (1)

9

u/RoadsideCookie Mar 27 '23

Man and do you remember though how bad it was before? The switch from 5.25" was a shit show but damn did it improve our lives.

→ More replies (2)

8

u/sorressean Mar 27 '23

Real devs print out all their code, then read it out of binders... I hear elmo tried that already though!

2

u/SpaceSteak Mar 27 '23

You just described a process that's still more advanced than the IRS's yearly personal tax process.

→ More replies (7)

53

u/Wingfril Mar 27 '23

You heard me. We got our laptops during orientation, the guy leading it was like ok time to import the code, and proceeded to give us thumb drives. Still better than a mid sized startup where my mentor (some kid two years older than me) zipped the code and sent it through slack

0

u/[deleted] Mar 27 '23

[deleted]

15

u/Wingfril Mar 27 '23

What do you mean? I mean we committed code to the actual repository (it’s been too long since then that I don’t remember what we used besides Phabricator.)

→ More replies (3)

13

u/thisisjustascreename Mar 27 '23

Most likely they were onboarding tons of interns and didn't want everyone pulling the entire repository and DDoSing themselves.

37

u/[deleted] Mar 27 '23

A bunch of interns pulling the repo (or parts of it) shouldn’t ddos them

→ More replies (3)
→ More replies (4)
→ More replies (6)
→ More replies (1)

2

u/ksknksk Mar 27 '23

Thank god you were only an intern. I would judge any company very hard for doing something like that even 10 years ago

→ More replies (2)
→ More replies (1)
→ More replies (2)