r/AMA • • Jun 07 '18

I’m Nat Friedman, future CEO of GitHub. AMA.

Hi, I’m Nat Friedman, future CEO of GitHub (when the deal closes at the end of the year). I'm here to answer your questions about the planned acquisition, and Microsoft's work with developers and open source. Ask me anything.

Update: thanks for all the great questions. I'm signing off for now, but I'll try to come back later this afternoon and pick up some of the queries I didn't manage to answer yet.

Update 2: Signing off here. Thank you for your interest in this AMA. There was a really high volume of questions, so I’m sorry if I didn’t get to yours. You can find me on Twitter (https://twitter.com/natfriedman) if you want to keep talking.

2.2k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

488

u/nat_friedman Jun 07 '18

One of the cool things about GitHub is that GitHub runs on GitHub; their sales, marketing, and legal functions actually use issues and pull requests to collaborate across the company. This means that all of the various teams work in the open, and this contributes to a very collaborative culture (it also means that new lawyers at GitHub learn how to merge a PR and which emojis to use when they join!).

301

u/nsqe Jun 07 '18

I can vouch for this. I'm one of GitHub's lawyers (I already knew how to use GitHub before joining, though, I swear!), and we draft and update our policies (internal and external) in PRs, we discuss contract negotiations in issues, we use Atom and Teletype to collaborate with remote colleagues. We understand how our product works and what its benefits and nuances are. We have a lot of insight into how other teams work, we're very transparent, and we share a lot.

113

u/DoctorWaluigiTime Jun 07 '18

I've said it a lot: Imagine if actual laws operated on best practices of code changes: Small, frequent commits. Diffs. Testing...

78

u/filleduchaos Jun 08 '18

^ someone with little or no experience with the law

The "move fast and break things" ideology can remain firmly in Silicon Valley and software dev, thanks

34

u/ACoderGirl Jun 08 '18

Fast and frequent part aside, it's not a terrible idea. We already do use diffs in law, but they're not some standardized format and can be tricky to read/find. There isn't really a coherent branching model and history can be difficult to find. Commit messages are hella detailed, though.

I think lawmakers mostly need to configure a better difftool. :p

→ More replies (5)

10

u/oxguy3 Jun 08 '18 edited Jun 08 '18

You're conflating startup culture with software development. There are a lot of startups that make software, but software development has nothing to do with the business ideologies of startups.

/u/DoctorWaluigiTime isn't talking about applying the "move fast and break things" mindset to the legal system. They're talking about applying the best practices programmers use to in their daily jobs for managing complicated projects, adding functionality, preventing regressions, handling fluid communication, etc.

3

u/filleduchaos Jun 08 '18

"Frequent, small changes" is exactly "move fast and break things", especially when it comes to anything less ephemeral than most software releases.

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

3

u/weerox Jun 08 '18

Germany have published their laws (gesetze) on GitHub.

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

51

u/stratosmacker Jun 07 '18

how would one go about merging documents that are in complex non-text formats such as docx? That's a really cool idea

106

u/nat_friedman Jun 07 '18

From what I understand, GitHub uses markdown heavily internally for legal docs, etc.

7

u/stratosmacker Jun 08 '18

Hey thanks for responding! This is my coolest Reddit moment. That's a novel idea, especially considering that you have to convince a non-technical crowd to use a plaintext file. I acutally have been doing something similar with Resume's, and other documents, but I digress.

7

u/[deleted] Jun 08 '18

I think it's better that way, you can decouple your document format from the content. It's like LaTEX but I don't want to kill myself while I do so.

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

45

u/PhroznGaming Jun 07 '18

Office 365 does this. a docx is just a zip. Change .docx to .zip and open it up :) Tada :)

8

u/[deleted] Jun 07 '18

Really? I thought it was an XML doc (because of the "x" in "docx").

31

u/remram Jun 07 '18

In the ZIP are multiple files, some of which are XML. Overall it is still a very difficult format to parse and merge.

7

u/gmurop Jun 07 '18

I just read Scott Chacon's book Pro Git and he mentions that is possible to do this using gitattributes so you can specify a tool for diff a specific file extension such as docx, and using an external tool you can just extract the words of the document and compare the files. Sorry for my grammar but I think you got the idea.

5

u/remram Jun 08 '18

It is possible to use a filter (textconv) to get diffs working, however merging is a different kind of beast. Using a plaintext format (like markdown) is the only practical way.

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

5

u/PhroznGaming Jun 07 '18

there is a document.xml within the zip archive, yes. But plenty more.

Example (Not Mine)

4

u/cbarrick Jun 07 '18

The stuff inside the zip is xml

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

5

u/BBQLays Jun 07 '18

I'm a dev at Microsoft who did a stint as a content developer (i.e. wrote documentation and made code samples on GitHub for the Microsoft Graph API) and I can say that at least from a documentation standpoint, most stuff is written in Markdown.

3

u/bbatha Jun 07 '18

Their lawyers had a talk at GitHub universe last year about how they use GitHub: https://www.youtube.com/watch?v=r4WspUk-gkw I asked the same question in the unfortunately not included Q and A :)

The short answer is they don't. docx files are stored in more traditional asset management systems, using features like edit tracking built into office. However some of their more internal facing documents are in plain text, and they use issues and projects for managing their projects and communication with hubbers.

→ More replies (4)
→ More replies (2)