Supported by Our Partners • Swarmia - The engineering intelligence platform for modern software organizations. • Sentry - Error and performance monitoring for developers. - Why did Meta build its own internal developer tooling instead of using industry-standard solutions like GitHub? Tomas Reimers, former Meta engineer and co-founder of Graphite, joins the show to talk about Meta's custom developer tools - many of which were years ahead of the industry. From Phababricator to Sandcastle and Butterflybot, Tomas shares examples of Meta’s internal tools that transformed developer productivity at the tech giant. Why did working with stacked diffs and using monorepos become best practices at Meta? How are these practices influencing the broader industry? Why are code reviews and testing looking to become even more critical as AI transforms how we write software? We answer these, and also discuss: • Meta's custom internal developer tools • Why more tech companies are transitioning from polyrepos to monorepos • A case for different engineering constraints within the same organization • How stacked diffs solve the code review bottleneck • Graphite’s origin story and pivot to their current product • Why code reviews will become a lot more important, the more we use AI coding tools • Tomas’s favorite engineering metric • And much more! - Timestamps (00:00) Intro (02:00) An introduction to Meta’s in-house tooling (05:07) How Meta’s integrated tools work and who built the tools (10:20) An overview of the rules engine, Herald (12:20) The stages of code ownership at Facebook and code ownership at Google and GitHub (14:39) Tomas’s approach to code ownership (16:15) A case for different constraints within different parts of an organization (18:42) The problem that stacked diffs solve for (25:01) How larger companies drive innovation, and who stacking diffs not for (30:25) Monorepos vs. polyrepos and why Facebook is transitioning to a monorepo (35:31) The advantages of monorepos and why GitHub does not support them (39:55) AI’s impact on software development (42:15) The problems that AI creates, and possible solutions (45:25) How testing might change and the testing AI coding tools are already capable of (48:15) How developer accountability might be a way to solve bugs and bad AI code (53:20) Why stacking hasn’t caught on and Graphite’s work (57:10) Graphite’s origin story (1:01:20) Engineering metrics that matter (1:06:07) Learnings from building a company for developers (1:08:41) Rapid fire round (1:12:41) Closing - The Pragmatic Engineer deepdives relevant for this episode: • Stacked Diffs (and why you should know about them) • Inside Meta’s engineering culture • Shipping to production • How Uber is measuring engineering productivity - See the transcript and other references from the episode at https://newsletter.pragmaticengineer.com/podcast - Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email podcast@pragmaticengineer.com. Get full access to The Pragmatic Engineer at newsletter.pragmaticengineer.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_01What does actual development look like when you join? Fabricator is our internal code review tooling. Fabricator is well integrated with Sandcastle, which is our internal CI tooling, which is integrated with OnDemand, which are our internal dev boxes, which is integrated with Landcastle, which is how code makes its way out to users. And sort of the thing goes from there. And then it doesn't just stop at code review, it's integration across the rest of the developer platform. For example, Meta built its own task system. And so tasks and pull requests could be very deeply integrated in a way that we just don't see out here.
One tool that I kind of experienced because of Fabricator was called Herald. Herald, if I recall correctly, was the rules engine, which later got replaced by ButterflyBot.
SPEAKER_01And the idea of both of them was the same. It was being able to match events that might happen in the normal course of code review. I used to work on internal developer tools there. When we were deprecating APIs, you might go ahead and do something like create a Herald rule that would say something like, if a user calls this function or uses this API, post a comment letting them know, hey, this is deprecated. Also, the new syntax is this. And then as you got later and later into the rollout, you could start to do things instead like, hey, notify me if anyone's adding call sites of this API so that I can go ahead and
SPEAKER_01leave a comment saying, hey, like, no, we're really trying to deprecate this.
SPEAKER_00Meta is famous for its customer internal tooling. Devs at the company use the likes of Fabricator, Sandcastle, or ButterflyBot. But what are these tools and why did Meta not use a more standard stack to build software? We get answers from Thomas Rainer who was previously at Meta working on developer tooling before co-founding Graphite, a developer productivity platform. Today we talk about what stack diffs are and how they became the de facto way devs at Meta work with pull requests. Why Meta moved to a monorepo and why there seems to be an industry-wide trend in companies moving from polyrepos to monorepos.
SPEAKER_00Why AI coding tools will make code reviews a lot more important and more. If you're interested in how effective engineering teams work these days and approaches trending in this group, this episode is for you. If you enjoy the show, please subscribe to the podcast and consider leaving a rating. This is great to help the show. And with this, let's jump in. Thomas, it's great to have you on the podcast. Great to be here. So before you started Graphite, you worked at Meta, and Meta is known for a lot of their in-house tooling. Can we talk about when you joined,
SPEAKER_00what was interesting tools that you didn't see at other companies before?
SPEAKER_01So funny. It's a great question, too. And yes, certainly. When I joined, I was a new grad. So I had just graduated college. I joined Meta. I used a lot of the tooling. My frame of reference was personal projects. I used to do a lot of hackathons back in college and internships. And so I think when I joined Meta, a lot of it came in sort of... eyes wide, sort of like, I was about to say eyes wide open, but I mean the opposite of that, of I came in sort of just like blissfully unaware that this wasn't industry standard.
SPEAKER_01When I left was when I had the bigger shock, because I think I had used tools like GitHub before, I'd used analytics tools before, I had left Meta after having really gotten sort of immersed in all of this wonderful tooling. And then when I had to start to do all of these same activities myself, I found myself reaching for tools that didn't exist and there weren't clear analogs for.
SPEAKER_00Yeah, it's usually the other way around, right? Like usually people who work in industry at a startup or even at a larger company go to meta. And unless you've been in like Google where, you know, it's all custom, it's just a shock because I think most people imagine like, okay, you know, they must use GitHub or at least something similar. But what does actual development look like? You know, when you joined, right? Like you went into bootcamp, I assume. What does it look like to like, you know, like they didn't even push a pull request, but that's not what they call it, do they?
SPEAKER_01No, no, they call it a diff. Good, good, good trivia for it, by the way. I think that, though, if I had to use one word to describe Meta's internal tooling, it would be integrated. Everything, everything, everything integrates with each other. And I tell this to people, and they never really understand the extent of it. Meta builds its own internal calendar. So meeting room scheduling can be integrated in with the rest of the tooling. And that really sort of permeates the whole thing. Fabricator is our internal code review tooling.
SPEAKER_01Fabricator is well integrated with Sandcastle, which is our internal CI tooling, which is integrated with OnDemand, which are our internal dev boxes, which is integrated with Landcastle, which is how code makes its way out to users. And sort of the thing goes from there. And then it doesn't just stop at code review. It's integration across the rest of sort of like the developer platform. For example, meta built its own task system. And so tasks and pull requests could be very deeply integrated in a way that we just don't see out here. What was Soundcastle? So Sandcastle was the internal CI system.
SPEAKER_01So out here, a lot of people use GitHub Actions. They use BuildKite. And Sandcastle was just our flavor of that. It allowed us to build versions of our apps and websites before we released and went ahead and tested them for us.
SPEAKER_00Yeah. You mentioned this integration. When you say it, it sounds like it's just a word, but in practice, what did it mean? You did mention that, for example, tasks, which is, I guess we can give it the JIRA or linear or whatever that is, that was integrated with the other stuff. And this was like 10 years ago, right, or so?
SPEAKER_01Actually, yeah, I think integration here, I think one of the best examples I have of integration was actually a translation system. So at scale, internationalization becomes a real problem, right? You need to be able to include internationalization as product developers start to update the website, create new pages, et cetera. There's always this question or this tension that happens of, well, how do we know that the string that we're pushing has a translator equivalent? At Facebook, that could actually just be built into the code review tooling, right? And so the code review tooling can tell you something like,
SPEAKER_01hey, this diff is using a string for which the translations don't exist. And because of that, you can't deploy it yet. Or what was more interesting to me was when you looked at a diff that had been merged, that had been landed, That was what we called it. You would see on that same page like, hey, this diff has been rolled out to employees. This diff has been rolled out to 1% of users. This diff has been rolled out to 10% of users. Also, if this diff included any feature flags or sort of like AB tests, here are the results of those AB tests. And so you had this wonderful ecosystem where everything was
tightly tied together. And so you as a developer could just go to one place and be like, I know what I'm looking for.
SPEAKER_01I'm looking for this piece of like code that I landed. Let's go see like how it's changed statistics or how it's impacted users. And you could see that all in one place. And then there was a bunch of other stuff that started to make its way into the public tool chain now of if you wanted to revert a diff, you could just go ahead and do that directly from Fabricator.
SPEAKER_00This episode is brought to you by Swarmia, the engineering intelligence platform for modern software organizations. Swarmia gives everyone in your organization the visibility and tools they need to get better at getting better. Engineering leaders use Swarmia to balance the investment between different types of work, stay on top of cross-team initiatives, and automate the creation of cost capitalization reports. Engineering managers and team leads get access to a powerful combination of research-backed engineering metrics and developer experience surveys to identify and eliminate process bottlenecks.
Software engineers speed up their daily workflows with Swarmy as two-way Slack notifications,
SPEAKER_00working agreements, and team-focused insights. You can learn more about how some of the world's best software organizations, including Miro, Docker, and Webflow, use Swarmia to build better software, faster, at swarmia.com slash pragmatic. That is S-W-A-R-M-I-A dot com slash pragmatic. Fabricator was a really central part of this. I know because at Uber, we use Fabricator. It was an open source tooling, and I think Uber, and you mentioned Dropbox, also took it on. Maybe a few other companies, but not as many.
SPEAKER_00So for a while, we kind of... used it. I saw some of this integration, but It sounds a little wild because I don't really know any other company, maybe outside of Google, where you can have this thing that, as you say, you deploy a code and you can see the experiments, the localization, the rollout, all from one UI. Usually it's different systems. Even at Uber, it was different systems. We had an experimentation system. It was called Morpheus at the time or Flipper, the feature flags. I had this list of
SPEAKER_00like systems that I, you know, like a cheat sheet of where I would go to check the rollout, the internationalization, et cetera, et cetera. So all of this was really kind of like one click away.
SPEAKER_01I think that's the way it exists for a lot of people today. You know, I think when we look of right now, best in class dev tooling is starting to become more integrated. I think around like linear, it's now starting to post the linear issue in the GitHub pull request. And you can see, and it updates the status as the pull request moves through review. You're also seeing the same with Rissell, right? When you create a PR, Rissell can go ahead and be like, hey, went ahead and like made a preview environment for you. You can go ahead and click that there. I think what was so magical about Facebook is that all of that
was native and it
SPEAKER_01didn't appear to be integrations, but just part of the system.
SPEAKER_00And who built this tool, right? Like the developer tooling, you know, Fabricator, the Sandcastle, all of these things. Was it just like devs? Like, OK, I'm going to build this. Obviously, it was internal teams, right? But was it like dedicated teams or people just kind of went and like went and tweaked stuff?
SPEAKER_01I think it really depends on the tool. Some internal dev tools were just built by developers themselves. They saw a problem. They're like, nothing's addressing this. I need to fix it. It's a wonderful culture to be a part of where you can solve your own problems. But some of it came more from the like, oh, we as a company have noticed that there's an issue here. We need to address the issue. Let's spin up a team to do it. And then the place where all of these tools ultimately found their home was under
SPEAKER_01the dev infrastructure team. So developer infrastructure at other companies called Developer Platform and Developer Velocity really maintained the bulk of Facebook's developer tooling.
SPEAKER_00Yeah, and I guess one tool that... I kind of experienced because a fabricator was called Herald. I'm not sure if you know. Yeah, of course. You could set up special rules on the code base, anything. Like if basically on a commit, anything happens, like weird rules could run. Were there like, do you remember some, like there were some really creative examples of like using Herald rules for developers to start to create their own rules or code ownership
or that kind of stuff?
SPEAKER_01Totally. So Harold, if I recall correctly, was the rules engine, which later got replaced by ButterflyBot. And the idea of both of them was the same. It was being able to match events that might happen in the normal course of code review. Something like someone puts up a PR that includes some line of code or calls some function or CI fails regarding something. And then what it would do is it could take a variety of actions. So some of the examples that I remember was when I used to work on internal developer tools there.
SPEAKER_01When we were deprecating APIs, you might go ahead and do something like create a Herald rule that would say something like, if a user calls this function or uses this API, like post a comment letting them know, hey, this is deprecated. Also, the new syntax is this. And then as you got later and later into the rollout, you could start to do things instead like, hey, notify me if anyone's adding call sites of this API so that I can go ahead and go leave a comment saying, hey, like, no, we're really trying to deprecate this, like, please stop. And then you could take it from there.
SPEAKER_01Other examples were simpler. I remember there were some cases where there were, let's call it privileged or important parts of the code base. And what you'd say is like, if someone goes ahead and creates code that touches that part of the code base, just make sure this team is added as a reviewer or at very least as a subscriber. Subscribers were an idea and fabricator of being able to CC people. It wasn't that you expected a review, more just that you wanted to keep their eyes on it. And there were a handful of rules like that.
SPEAKER_00And do I remember correctly that code ownership was super, super important for Fabricator and for Facebook? And it was just really trivial to say, I own parts of the code and then set up different rules around that.
SPEAKER_01No, so that's a great question. So code ownership actually became, code ownership went through a few stages at Facebook. There was a while where code owners were required at Facebook. And so you could have like different parts of the code base could have different owners. Then the company took it away. And they said, actually, we don't believe that we should have code owners. We're a collaborative environment. We should go ahead and get rid of that. It was then reintroduced. And I think it was then again taken away with the idea of like, we're not sure. The company alternated between,
oh, they're really privileged parts of our monorepo. And we can talk more around sort of how Facebook structured their code that need
SPEAKER_01certain people to review it. And while actually we should trust our developers, developers need to be able to understand organizational practice. One thing that was always existing within the platform, though, was this idea of if you're in some part of the code base, tag the correct reviewers. And so I think one of the things that actually I most missed when I got out here was the ability to structure repository in a way where you could say, oh, if you touch this part of it, we should tag these people in. I think in GitHub, code owners is a very coarse approximation of that,
SPEAKER_01where you have to define one file. It's at the root of the repository. It's difficult to use. A person who I've heard has done this even better company is Google. So in Google, code reviewers were assigned hierarchically. And so in every folder, you could basically say like, hey, if you touch code in this folder, like you need to go talk to these people, either as a heads up or as a requirement. And it allowed people to get, there were two really nice aspects of that. One was that it was really easy to define ownership. And then the second was that it was easy as you were writing
pull requests there to
SPEAKER_01be able to go ahead and say like, who does own this code? Who can I go ask for? And so if you're in a say that you're using an API that you weren't certain of, you need to figure out like, who can I go talk to about this API? What you could do is you could just navigate the file tree, find the team or people in charge of it, and then just go DM them. And so that became a really powerful system there.
SPEAKER_00Now, you've gone back and forth between Facebook, there was code owners, no code owners, and you're now working at a startup. You actually work with a lot of startups and larger companies. What is your unfiltered view on code ownership? Is it a good thing? Is it a bad thing? Is it necessary only when you're bigger or when you're smaller? I'm sure you've got some opinions now.
SPEAKER_01I work at a startup now, Graphite. We have the privilege of working with some of the largest DevTools teams in the world, which is really cool. At this point, I think I've heard all sides of the story. We are in a financially regulated market, and because of that, we have a legal requirement to have code owners. And so I've heard that side of the world. I've also heard the side of the world of, oh, we couldn't possibly do code owners here. It would just slow us down too much. And so I think it really depends on the nature of the business. I once saw this matrix which I really liked, which is if you trust people a lot and are willing to tolerate
small mistakes,
SPEAKER_01you should lean on culture, not process. As you start to get into a place of, oh, actually, maybe I trust the people less or I can't tolerate mistakes at all, you move to automation and enforcement. And so it really depends on where your business falls on that. I also will say that I think that as Facebook's grown, the way they treat different parts of their code base has changed. Whereas some parts of the code base absolutely cannot go down. Things that deal with privacy cannot go down. That's not a place where you can move fast.
SPEAKER_01Some other things, perhaps, maybe the way that you display comments if it's not a big deal, that actually is a little bit easier or a new product even. There you have a little bit more leeway to move quickly and so maybe code owners isn't the right match.
SPEAKER_00Yeah, and one thing that I've kind of learned over time is maybe inside a company, as much as you'd like to think that there's one engineering culture, maybe that's not the answer. Maybe a new startup inside a company, like an established company like Meta, a new startup, maybe it should operate differently because maybe they'll be shut down in six months if they don't find product market fit and they should just throw away the things. At the same time, I think companies don't really like to admit it, but... And maybe even inside a smart company, right? Like if you start just a small prototype project,
SPEAKER_00see if it goes anywhere, you're probably not going to have the same rigid thing as when you're deploying to customers who actually count on it. It needs to stay up.
SPEAKER_01I think that's a really wise point. I think that ultimately... Engineering anywhere exists within a system of constraints, and I think those constraints within a company can be very different. And so recognizing what are the constraints on the product I'm building right now and architecting your systems around it is an engineering problem like any other. I think the place where this actually comes to me most clearly is when I deal with developer tools teams who release mobile apps versus web apps. So web apps tend to release on an hourly basis,
SPEAKER_01maybe multiple times a day, but probably not slower than that. Whereas mobile apps release on a weekly cadence. Because of that, just the shape of problems they deal with are so different, even within a company. So mobile app teams generally don't have to hold pagers because even if something goes down, what are you going to do? Submit a fix to Apple? Great, that's two days. Yeah. Versus a web app team, like paging is an important part of the culture, right? As you're shipping things really quickly, things will break, things will go down, and you're on the hook to fix them. And so watching the difference between those cultures,
SPEAKER_01I think, is probably the two extremes you see within a company. And then, again, as you start to work in different parts, if you work on payment processing versus abuse and fraud detection versus the consumer front end versus authentication, you actually have different constraints, which are subtly different. And I think that, as you're saying, engineering organizations can develop different cultures around how they need to treat them. I like to think of constraints and how, you know, at least the different practices.
SPEAKER_00Now, one thing that really surprised me at Uber, which came really from Meta, from Fabricator, is we use this thing called stack diffs. And we did a deep dive into Pragmatic Engineer. It'll be linked in the notes below. But it's something that just really clicked for me and also everyone around me, everyone I talk with at Meta. You've now actually built a business on top of this. But can we talk about what is stack diffs and how did you come across it? And why is it so useful once you get a hang of it?
SPEAKER_00Absolutely.
SPEAKER_01So you're right. We've spent a lot of time talking to people about stacking, about stack diffs, and so stack VRs, as they're called on GitHub. And I think that we've had a lot of practice about how to talk about it. I think the way I like to introduce stacking is by talking around the problem that it solves. And the problem that it solves is in any given engineering organization, you have a bunch of engineers who at any given moment might tell you they're blocked. They're blocked on code review. And I think when you really start to ask, well, why are they blocked? Why is CodeReview blocking them?
SPEAKER_01What it comes down to is in most engineering organizations, the way development works is you have a main line. So you have a main branch or a master branch. You go ahead, you fork off of that. You go ahead and you create your feature branch. And then you kind of get stuck because before you can continue to develop on top of that feature branch, it needs to merge back into main. Exactly. You need to merge it back because you only create feature branches off of main. The downside of that, though, is that your personal development process now becomes blocked on review.
SPEAKER_01Because you've created some PR, you've created the perfect way to do, I don't know, authentication, login. And you now want to build forgot password. And so your options here are you can either add forgot password back into that branch, but suddenly that branch is going to become really big and your reviewer is not going to be able to review it. Or if they review it, they're going to give it a rubber stamp, looks good to me.
SPEAKER_00Yeah, yeah. There's no point in a code review when you do that.
SPEAKER_01Exactly. And so Google has a funny academic paper where they refer to it as reviewer frustration. As pull requests get longer, reviewers buy out of the process and end up just approving things rather than actually reading them. And so the solution... The solution which Meta stumbled upon is what they called stacking. Google, I've heard, has stumbled on something similar. There might be some cross-pollination with Meta there. But the idea is you create your feature branch, you put it up for review, and rather than waiting for it to be reviewed for you to start building,
SPEAKER_01you just branch off of that and keep going. And you create another feature branch. And then you put that up for review. And then while you wait for that to be reviewed, you create another feature branch and you create that to be reviewed. Now, people who have been using Git long enough, most of them have tried something like this. And I think inevitably you end up with a few questions. One is, well, what if like someone rightly calls out that that earlier PR needs to be updated? The general answer is that's actually fine. Generally, when you need to update a PR, you're not changing the abstraction boundary between PRs.
An example of how you might break it out is if you're building a new feature,
SPEAKER_01I have server and then I have front end. And so even if someone's like, hey, can we refactor the server? Usually the endpoint abstraction is actually staying in place. And so the next PR can continue to be stacked on top of it. The other question is, well, how do I know what I'm supposed to break up? And I think for that, generally, and this is actually really interesting to me, generally developers build their systems in order, right? You might start building the server and then building the front end. I think stacking is just a way to communicate that same order
to your reviewers.
SPEAKER_01A lot of people do this automatically using commits, right? They just say like, oh, I'm going to build commits in the order I would build them, and you should review them by commits. Stacking goes a step further and says, well, if the first three commits in a branch are approved, why not merge those while you wait for the latter ones to be approved? And that has a few other benefits. You can run CRM separately, you can reduce merge conflicts, and you tend to be able to reduce your time to merge. Because if there are sticky things, you get stuck there but can still merge a lot of other code. The other advantages then happen sort of afterwards of...
SPEAKER_01In the case that there's an error or something like that, you can go ahead, quickly identify which PR was offending. And if you tell me a 10-line PR is offending as opposed to a 2,000-line PR, it's much easier for me to identify the issue.
SPEAKER_00So basically, you get to work in just smaller increments. It's almost like forking off of your... Your current branch, you know, like smaller and smaller, have a bunch of small forks, except it's just a tooling, right? That like, so why do people not do this? You know, like, just forget about like the tooling that might have, but you could just literally, you know, create a branch and then create yet another branch. But I guess it's just really complex to look at what's happening, complex to merge it back. Yeah.
SPEAKER_01I think Git makes it scary, and I think GitHub makes it scary. So in Git, the most basic way to do this would be to create branches off of branches. But then if you need to update something, you need to go ahead and rebase it. Now, that's where I just use a really scary word for a lot of people, rebase.
SPEAKER_00Rebase. Oh, we hate rebasing. I mean, okay, I can't talk for anyone, but I'm going to admit it always freaks me. Having the rebase conflict and figuring out what I need to do, yeah.
SPEAKER_01It scares me, and I've been doing this for years. I actually have a Stack Overflow post bookmark, which is the three types of rebase, because depending on how many arguments you give it, it behaves differently. And so super frightening. I think that's the place. I'm very fortunate that I learned this at Meta because I think what Meta has and what I've learned Google has and what I've learned places like Stripe and Uber have built are internal tools to handle this for you, where you can basically say, like, I'm creating a stack now. I now need to update a branch in my stack. Do that for me. And under the hood,
it takes care of this intricate set of rebases that while you can do by hand are
SPEAKER_01easy to mess up. Now, there's a lot of tooling that does that client side portion. The other half of this is the pull request side. If wherever you have your pull request does not have support for stacking, I think stacks can look very foreign. Because what you end up looking with is a lot of PRs that appear to be recursively merging into different branches that they were all based off of. And so it can be hard to understand what's going on. And without any clear explanation or affordance in the UI,
SPEAKER_01your reviewer might become confused too.
SPEAKER_00So I'm kind of like wondering if you have a theory, why did, you know, like a few companies like Meta and Google invent this? And why is it just not part of Git or GitHub? I'm sure you've speculated about this. You must have.
SPEAKER_01Certainly. So why I think some companies built this. I think first and foremost, the current tools weren't solving their own needs.
SPEAKER_00Current tools being Git and GitHub-like.
SPEAKER_01Git or whatever they had at the time, right?
SPEAKER_00Mercurial. Yeah.
SPEAKER_01I think they were shipping a high volume. I think they were really early on monorepos. And I think that they were getting to this point where, okay, I'm blocked on review. Progressively larger parts of this org are blocked on review. And as you sort of like start to grow up as a company, you realize like, oh, like if developers are spending 20% of their time waiting, that's actually a lot of inefficiency that's being created across the org, right? Most people that run an org of over 100 engineers would be like, I would love to have 20 more engineers. Second thing is that they saw the potential impact.
SPEAKER_01So I think for a lot of people, they sort of like saw that lift of like, okay, Facebook, for example, really prioritized being able to improve their ship velocity for whatever reason. It mattered to them a lot. Google, I think, did as well of, well, we're a web company. If we can continuously deploy, we can continue to improve things. And thirdly, I think they had near infinite resources. And this is the thing that I think most of us don't have, which is they saw the potential impact, they saw a problem, they had the resources, and so they could build a solution. I think it's much harder when you're a startup or even just a
smaller scale company than one of the three most valuable companies in the world to be able to say,
SPEAKER_01I'm going to take a few engineers and I'm going to build this.
SPEAKER_00Yeah. I mean, these are companies who are printing money despite having, you know, thousands of engineers, even tens of thousands. So, so they, I mean, obviously they're going to like, like be rational. They're not just going to create a team out of thin air, but this is very interesting because what you mentioned is, I remember I talked with Nicole, with the doctor, with Nicole Forsgren about developer productivity. And, you know, one of the things that, came up when we discussed this, well, you do want to measure certain things just to get a sense. And one of them is typically code review. Or how long does it take from writing the code to getting it in there?
SPEAKER_00So I have a feeling that companies like Meta, Google, and some of these bigger ones who did have the resources, they start to measure it earlier. Therefore, they decided, let's build better tooling. And one interesting part that I've only learned recently, I was talking with one of the three Linux fellows, Greg And he told me something interesting, that Git was created by the Linux community. Well, specifically not Star Wars, but it was to solve their issue of Linux development,
SPEAKER_00where they had about three to four changes per hour or so. And it was an email-based list. So they created Git to solve their own problem. And now I think they have something like 40, 50 changes per day or per hour, something like that. I think it's per day, actually. That's their rate. And they built it. It's all for them. They open-sourced it, but it was for them. There's this Linux. It's also a monolith. The changes are...
SPEAKER_00pretty small for the most part. There's not as much, let's say, user-facing code, etc. But they sell for themselves. So I wonder if they just didn't really have the problem that StackDiff does because they don't have... If you look at the average Linux change, it's a lot smaller than, let's say, a new feature being added to some of the codebases like Meta or Uber. I think you hit the nail on the head with it's really important to use tools that
SPEAKER_01are built for your use case. I think that open source development generally, and Linux specifically, stacking makes no sense for. So people always ask me sort of like, who is stacking not for? My answer is open source. And the reasoning is that in open source, you're dealing with a lot of untrusted authors who come to you. They're like, hey, I have this feature. It's partially built. I don't have tests for it yet. I haven't fully tested it. Can I merge it? And it's funny in that in a company, if you're like, I have this feature, it's partially built. Maybe you even have some tests for it,
but the feature's not totally there.
SPEAKER_01You're like, I know you're going to be here tomorrow, right? And so, cool. Thank you for doing your job. I appreciate that you're contributing back to the code base and that you're going to prevent me from having to resolve rebase conflicts later, merge conflicts. I think that in Linux, you kind of see the opposite, right? And if you've ever spent time on those email lists, you'll see people throw back and forth sort of like patches. And what will happen is that they'll say like, oh, like this isn't complete. You're not going to work on this edge case, right? And rather than saying like, you know what? Like we can put this behind a feature flag and merge it.
SPEAKER_01They're instead like, go take this back, fix it, fully finish it, wrap it in tests and documentation and everything else. And only then can you merge it. and that makes a ton of sense in open source right having worked on open source repos myself the biggest fear is that the contributors is going to disappear it happens more often than we like to admit they get busy something happens and so in that case you don't want to land partial stacks you want to make sure that the thing is fully complete before you even consider like reviewing it truthfully yeah and this is actually like when i had a discussion this trust
came up so much with
SPEAKER_00with open source so i It's interesting how, like, you know, as you said, the context, like inside a company where you have people, you can actually trust them that they'll follow up or if they don't follow up, it's not a big deal. You know, like it might be deleted. Interesting how this context makes such a big difference. Now, another thing that is unique, I guess, maybe not just to large companies, but it kind of started there, monorepos. So what was, you know, Meta and Google were probably one of the two companies to start
doing monorepos.
SPEAKER_00You've seen it at Meta. What was the history with the monorepo story there and the pain points you saw? Yeah. Yeah, totally.
SPEAKER_01I think you have to remember, so first things first, you have to remember that source control at Meta has a funny history. When that company started, and this is well before my time, rumor has it the way they did source control is emailing back and forth zip files. And so at some point, I mean, that wasn't so uncommon, right? Git itself is a fairly new innovation, came around in 2007, 2008. And so I think that when Facebook started to do source control, they had this idea that,
SPEAKER_01well, we want to be able to version everything together. And I think there are a lot of advantages to that. I think one is it makes collaboration a lot easier. It makes discovery a lot easier. I think it makes it easy to put dependencies between different services. So I think all of us have had that case where it's like, oh, well, I need to change this, but that also means I need to change the call sites or that also means I need to change this other thing. Um, monorepos allow you to do that, right? Because what it's saying is there's one like unified state of the world that we can look at, can make sense and everything's good.
SPEAKER_01We can test against even, uh, poly repos, the opposite of that when an organization has many, many repositories, I think have different advantages. Um, you can version them separately. You can, uh, have different practices within them. You can, uh, have entirely different owners within them. I actually think that GitHub on many companies pushes a culture of polyrepos because it's what's common in open source. So again, going back to this narrative of sort of like, oh, open source is different than closed source. I think in open source you actually want things like,
I don't want to have to version at the same time that all of my dependencies are
SPEAKER_01versioning on. That doesn't make sense. I'm not really collaborating with my dependencies. Yes, I depend on other open source projects, but perhaps I'm not contributing to them. I think within a company, those constraints change. Within a company, you're looking at constraints of like, I want to collaborate with other people. I want to be able to version things. And so you get pushed towards sort of like one unified source of truth for like, what is the state of our code base? By the time I was there, Facebook wasn't even one monorepo. It was multiple monorepos. I remember hearing someone refer to it as a polyleth,
SPEAKER_01which made me laugh a lot, where there was the main web monorepo. There was Instagram, which was separate. There were the mobile apps, which were separate than that. There was internal tooling. Yeah, which was completely separate. And they were on a mission to try and unify these into all of them, into one massive monorepo, because the negatives of not having one monorepo were starting to affect the company. Some examples of that might be that if you wanted to do an end-to-end test on mobile apps, I remember there was some tests that would pull down a copy of the other repository,
SPEAKER_01spin up a server from that repository, and then spin up the mobile app such that they could test against that. And that led to all sorts of conflicts. Right. Like it makes your CI flakier. It makes it hard to version against when we had dependencies between repositories. That was a nightmare. And so by bringing everything under one roof, it allowed you to really collaborate across the company more actively. And it allowed you to collaborate across the company more actively and allowed you to share dependencies.
SPEAKER_00So Facebook was being slowed down despite having a few mega repos, if you will, or these large ones. So they saw this advantage. In the end, did they move to one unified monitor between iOS, Android, and even web?
SPEAKER_01When I was leaving, they were on the journey to. Wow. I remember hearing recently that they're still on the journey to.
SPEAKER_00That's really, it's such a different code, especially for native mobile. Yeah.
SPEAKER_01But the advantage of it, though, and again, going back to it, is I think that it allows you to enforce a common set of eng practices and requirements, right? Like the idea of like, oh, every repository should have at least one reviewer, right? In a company, yeah, that probably is a company-wide requirement. But in open source, I can't be guaranteed that every open source project wants the same set of requirements, right?
SPEAKER_00And it's interesting because it's not just meta. Other companies, when they grow a certain size, they start to have the same journey. I've seen it at Uber. As far as I understand, Shopify is doing similar things. I assume that as companies go larger, it typically starts with, oh, what about a vulnerability of a library being updated? Would it not be nice if it was in one place? Now... You've seen more of these obviously through Graphite when you're integrating with some of these companies.
Do you see some trends of when monorepos are starting to become important?
SPEAKER_00And if they are starting to become more important, why do you think we're not seeing GitHub support too much of this still?
SPEAKER_01It's a great question. So first and foremost, I think that we're watching an industry-wide move towards monorepos. Most companies we're talking to are already in a monorepo or are migrating to a monorepo. At least for the people that we talk with in Silicon Valley, a lot of people have decided, you know, this is actually the future. I see the advantage. The tooling's there. Someone should be moving here. And so we're actually seeing a broader sort of like trend towards monorepos. Why do I not think GitHub supports it? I think it doesn't make sense for open source. I think we're just starting to see the advent of monorepos in
open source.
SPEAKER_01I think React is closer to a monorepo than not. I think that Vercel follows the same pattern, probably a lot of the same energy there. I think we're seeing a lot of repos say, well, maybe multiple packages should be in one repo. But there are a lot of advantages to being able to put them all together. But I still think it's not the norm. When you look at the JavaScript ecosystem or the Rust ecosystem or the Python ecosystem, we still live in a world of many separate packages from many different authors with many different cultures. And the way that you want to manage those is through polyrepos.
SPEAKER_00And then when you say you see a lot of companies having, can you just get a sense of what types of companies in terms of the size, the funding stage? I appreciate you might not be able to say specific names here, do not advertise it, but it was pretty surprising for me to say that a lot of the companies you work with.
SPEAKER_01A lot of them are moving. I'd say that Graphite tends to work with Silicon Valley based companies that are somewhere between, call it like 100 and high thousands of people, maybe 10,000 people. And so for us, I think it's a lot of the forward thinkers who are really investing in developer velocity, as you were talking about earlier, that are starting to invest in the like, how do I speed up my team, are very quickly realizing that the coordination overhead of poly repos makes it harder to speed up your team. It both slows your team down in code review and weird,
insidious and second order effect ways.
SPEAKER_01And it makes it hard to enforce a common culture. So when we talk to DevTools teams and they're like, oh, we want to migrate CI, when you're in a monorepo, that is a somewhat straightforward operation. When you're in a polyrepo, that is a multi-year journey that you're on.
SPEAKER_00Oh, yeah. I think I can emphasize with this. Yeah, and I think what you said, it needs to be some investment. It doesn't just happen like this. I mean, there's better tools now, but you need to have dedicated people looking at vendors who are doing it, etc. So it probably makes sense that the teams who are investing in better tooling are probably the ones who are looking at these alternatives.
SPEAKER_01And there's probably some selection effect in who we talk to. When teams want to invest in tooling, they start talking to us. And at that point, they've already started to consider the monorepo journey. Well, I mean, you don't need to tell me because I've seen the benefits of monorepo. I mean, I see the costs as well, but it was so good at Uber, so many benefits. And like I would, you know, if I had a magic wand, I would say, let's do monorepo.
SPEAKER_00Obviously, there's a cost. So I see this. I'm just surprised that it's kind of an encouraging way that there's so much of this happening. Yeah.
SPEAKER_01I think another place where things got confused, let's call it, is that people associate microservices with many repos.
SPEAKER_00I think,
SPEAKER_01again, that's because that's a way that I think GitHub very much encourages you to think of like, oh, you have abstractions between code, you should have different repos. And I think that I have a friend also from Facebook who likes to joke that the discovery of monorepos is really just a discovery of folder structure. Yeah. it's like well yeah so you have multiple you have multiple uh different pieces of code but you can just put them in different folders that's okay yeah i think you know the probably the one of the best examples uber is known for advertising how they have 5 000 plus microservices and they do have mono repos
i think per language like four or five but yes you you can it's not dependent it's totally independent
SPEAKER_00from one another Exactly right. Now, one other trend that's happening now everywhere, especially with the forward thinking companies, is AI tools for code generation or for coding. How do you see this changing how code is written, both through the companies that you work at or maybe even at Graphite?
SPEAKER_01It's incredible. It's been a whole conversation at Graphite and it's definitely been a whole conversation with a lot of the companies we work with. I think the most immediate impact of how will AI impact software engineering is there will be more software written. There is going to be more code written as the tools make it work. easier and easier for developers to ship code. I think what's not as obvious is the second-order effect, right? If you have more code written, well, what needs to happen? Well, more code needs to be reviewed, and if more code is reviewed, more code needs to be tested, and more code needs to be merged, and more code needs to be deployed.
That's suddenly the place where we're seeing people run into issues where they say,
SPEAKER_01okay, I think that we're ready to adopt one of these AI tools that helps us generate code, that helps our developers code faster. Let's do that. And then what immediately happens is we see the volume of pull requests go up. We see the size of those pull requests go up. We see the amount of bugs or CI bills also go up. And I think getting ready for that transformation is a thing that the industry is just starting to grapple with.
SPEAKER_00This episode was brought to you by Sentry. Buggy lines of code and long API calls are impossible to debug and random app crashes are things no software engineer is a fan of. This is why over 4 million developers use Sentry to fix errors and crashes and solve hidden or tricky performance issues. Sentry calls debugging time in half, no more soul-crushing lock sifting, or vague user reports like, it broke, fix it. Get the context you need to know, what happened, when it happened, and the impact, down to the device,
SPEAKER_00browser, and even a replay of what the user did before the error. Sentry will alert the right dev on your team with the exact broken line of code so they can push a fix fast, or let Autofix handle repetitive fixes so your team can focus on the real problems. Sentry helped Monday.com reduce their errors by 60% and sped up time to resolution for next door by 45 minutes per dev per issue. Get your whole team on Sentry in seconds by heading to sentry.io slash pragmatic. That is S-E-N-T-R-Y dot I-O slash pragmatic.
Or use the code pragmatic on sign up for three months on the team plan and 50,000
SPEAKER_00errors per month for free. Now, you know, this is speculative, but it's good to speculate sometimes. How do you think successful companies will cope with it? And this is, we can just speculate, right? Like we know there's going to be more code being churned out. Devs will be able to generate stuff faster, build features faster. And yes, it will have all these. A lot of them will just tap, tap, tap, accept. They're going to not notice certain things being there. We'll even have like attacks of like, you know, some companies trying to have malicious, a bit like, you know, stack overflow,
SPEAKER_00copy paste, and you have the memory leak. We'll have more of those. What, you know, let's just do the thought experiment. Like how, how will good teams deal with this?
SPEAKER_01I think AI necessarily is both the problem and the solution. So I agree with, I think that the fastest moving teams are going to adopt AI. I think we've moved past the world where you can say like, ah, this is a fad, this will pass. AI is going to mean a lasting change on the software development industry, period. I think that you're right. It's going to create some problems, right? You have developers just clicking tab nonstop, probably importing code that they neither read nor reviewed.
SPEAKER_00Well, we already have it, right? It's called vibe coding.
SPEAKER_01Yeah. I love the Twitter memes about it. But yeah, vibe loading is a thing, right? You have developers at your company who are probably just talking to their computer, telling it like, yeah, create this website. No, I'm not going to read that code. And they're pointing up for code review. And I think that to me, that just emphasizes the point of code review. Because if the author didn't read the code, then someone else certainly should. And the question is, how are we going to make sure that happens? And so I have two answers for you. One is, I think a lot of the practices that already existed at these major companies, at the Google and Facebook,
SPEAKER_01and to a lesser extent, but still an extent, Uber, Twitter, Snapchat, which are used to seeing a high volume of changes written by a diverse employee pool, a lot of those practices are going to percolate down. Because those used to be the problems of like, well, you only run into this issue if you have 100 developers. We see it on Twitter. People are saying teams of 10 can start acting like teams of 100 developers. And so that also comes with the problems of hundreds developers. The second solution is I think that AI is going to transform the way that we view code review.
I think the largest change which has happened, something which we are trying to... keep up with internally is that I think we're seeing the same advent that happened when something like Grammarly or the grammar checker in Word happened where AI can
SPEAKER_01actually check a lot of the minutiae or mechanics of code review. It can tell you that like, yes, this code works or yes, this code does what it intended to do. The question though of code review then isn't Is this code literally bug free? It's is this aligned with what we wanted it to do? Right. Is this I originally we spec'd out the system. It was supposed to work this way. Or maybe we have built the system and it does work this way. What are the other effects of that? How does this interplay with everything else we do at this company? What's going to happen there? And I think that we're going to see AI tools built.
SPEAKER_01We're building one ourselves, our AI reviewer, that let developers automatically check this code for sort of like the simple stuff, allowing the reviewers to focus on the more complicated stuff. Do you think testing will become more important in this world where we do have a
SPEAKER_00lot more AI tools, a lot more AI code, a lot more pushing to production? Yeah.
SPEAKER_01I think testing is going to change. And so is it going to become more important? Probably. In some form, definitely. Because as I said, I think that if developers are not putting thought into every keystroke, but instead we're just seeing this code written quickly, checking that code for correctness, both the literal does the function work as intended and the end-to-end correctness of are the buttons in the right place and is it usable, are critical. Now, I think what's really interesting or the trend that we're
seeing is that it appears
SPEAKER_01that AI can actually write tests for you in some limited cases. And when we look at some of the more advanced AI agents, they actually do this as part of their coding, right? If you ask an agent to generate a change and also test it, it'll do a pretty good job. And I think that a lot of the previous types of tests that before were restricted to QA people or to humans of like, look at this website and try to like click around it with the mouse where before we had to use, we had to use an intent testing tool. It was hard. We'd kind of be like, oh, go click at like XY location this.
SPEAKER_00At Uber, we even hired testers who we call the sanity testing. You describe what to do, go there, take a credit card. And that was because I was on the payments team. We actually had some of the fake credit cards that were take one of them, enter it there. And we did it because we couldn't really automate it for different reasons. The payments is a bit tricky, but yeah. It was, it sounded pretty terrible job to do, but someone had to do it and someone was being paid. So.
SPEAKER_01Exactly. And it's, uh, I think that, again, the machines can start to do a lot of this work. I think the question that we have to grapple with then is, so what is the purpose of this review step, right? And I think that for a lot of people, this is a question we used to talk about like three years ago. And I think with time, with advantage of time, we've had a lot more clarity of like, the purpose of code review isn't just the mechanical. It's not just, hey, can you proofread my essay for me because I want to make sure there are no grammar mistakes in it.
SPEAKER_01I think there's also a type of shared learning that happens of, hey, I want other people to code review this because I want to distribute my knowledge of how the system works. And I think that there is an alignment checking that happens of, hey, this is how we build software here. And there's tribal knowledge that maybe more senior staff level engineers at your company have that they disseminate through the process of code review. And I think that as we take away these mechanical parts or reduce their need, you're going to see those latter two become a lot more emphasized.
SPEAKER_00I am a little worried, though, about there is a big... We do see that AI tools are very capable of generating code. And I think, you know, like experienced developers who've been in the industry for 10 plus years and have seen, for example, they work with the teams of junior engineers and you see what happens. You know, it's a bit of a mess and you need to really clean it up. Like they... I think they see that this has limitations, right? It's a very powerful tool when you know what good output is, when you can check it, when you can step in and say, this is BS, stop. Or you just stop prompting after a while because it's not going anywhere.
SPEAKER_00And you start to take over and you just write whatever you need to do. But I do feel that people overindex on how good it generates code. I have a feeling that a lot of companies, especially company leaders, even CTOs, they'll kind of ignore this part of learning because it's invisible. You don't really see the difference between two teams. One, there's no code review or just AI code review. Everyone's doing their own thing and they're both shipping for a while. And at some point, something breaks. And this team where people are actually doing code reviews,
SPEAKER_00they're thoughtful, they understand the code. they can start, nothing slows down, they build the new features, they innovate. Whereas this one kind of gets stuck, there's just bugs, no one knows why. But because it's not visible, I have this feeling that there might be, I don't wanna be all negative about it, but It's just so many steps removed from the work that I wonder if few companies will appreciate it. A bit like how few companies used to appreciate developer tools. It's only fashionable these days, right?
SPEAKER_00If you think about it 10 or 15 years ago, everyone was looking like, why is Google having a dedicated team to build internal dev tools? That's weird. Yeah.
SPEAKER_01I think it became popular with... I'll give a lot of credit to Heroku. I think I remember just growing up in that era. There was... there was a lot of love for like, oh, this is what good can look like, you know? And I think it really set a standard of like, oh, we don't have to accept worse. We can actually, we can have better tooling sort of like in the popular opinion. And then a lot of Heroku developers went on to go to companies, brought a lot of that energy and feeling with them. And then we started to see it there. But yeah, I remember when Google, there was a lot of sort of like question marks around like,
SPEAKER_01what is Google doing? Like, why would you invest so much in this? And meta too. I think that, Where this will be different with AI is the fact that... At the end of the day, code has really profound business decisions. If you decide that you want to give a refund or you want to charge this or the user experience wants to look like this or this is the way the product works, that's at the end of the day a business decision. And I think that what leaders will agree with is that they don't want the machines making business decisions.
And so at that point, at some level, that means that a human needs to be reviewing it.
SPEAKER_01And now the question is sort of like, what is that level and what is that granularity that we review on? But I think that we can... We can find a common understanding and like, okay, humans will need to at least check for intent the same way humans prompt. And that's not to say that prompting is bad or it doesn't work. It's more that just, I think fundamentally, human natural language communication is flawed. You and I have a conversation and you can understand something different than what I mean. And so at a company, the way we get around this is we then check on the other side. We align at the start and we check at the end.
SPEAKER_01And I don't think that's going to go away.
SPEAKER_00Yeah, I like this thinking. And also, I wonder if we might have more companies discover. Again, I'm just a little bit inspired by Linux, as I recently talked with Greg from there, that the way Linux works, you know, when I talked about how the whole project works, I was really surprised in how much it's about people. And the core concept there is when you take a patch, they call a PR a patch there. you now own it and you are personally responsible for it. And this actually, you know, if something goes, and this is how there's a pyramid of like subsystem owners,
SPEAKER_00system owners, and then in the end there's Linux Torval. So every single release for Linux, it goes through, it's still to this day, it goes through him. He owns it. And, you know, he's very happy to take that responsibility. But, And Greg was telling me that because of this, if you think about it, it's very open. The whole world sees your changes. So because of this, people take pride in this. They will both review, but there's also trust levels, right? So if you're a system owner and there's a subsystem owner, you've worked now for 10 years, you know this person is solid. You're not going to spend all the energy.
SPEAKER_00And I wonder if the correct response to AI is like, yeah, just go wild. Use these tools. But responsibility... Maybe it needs to go back to developers. So we'll see.
SPEAKER_01I suspect that is what we'll see. And as I said, that's not to say that AI is not going to solve your problems. I think AI will actually free the humans to focus more on those bigger picture things. I think AI is going to be able to take away the like, oh, does this function do what it intends to do? Because it can understand that. It can tell us that. But I think it's going to be a tool in them saying, and so does this holistic change do what you want it to do?
SPEAKER_00Speaking of change, one thing that I was really surprised that when I worked at Uber, I talked with other companies and stacking didn't really take off anywhere else because Fabricator was just not there. Why do you think that didn't take off and how did you get the idea to start graphite around this idea of building this tooling to make it accessible for a lot more people?
SPEAKER_01Yeah, of course. Well, so I'll start by saying I actually don't think that stacking caught on inside Meta at the start. So originally when it was built, it was built into Mercurial. It was advertised at the company. There were a few senior engineers who saw the vision, felt blocked, and picked it up. And I think that, not in an exaggerating way, they saw themselves get 3x faster. And what happened was those senior engineers started to become evangelists. I had one on my team who was like the stacking evangelist.
And they used to go throughout the organization and literally give PowerPoint
SPEAKER_01presentations of like, this is how stacking speeds you up. Like, you need to believe me. I've seen the other side. And at the time, I think you had a lot of developers who were very skeptical. Who were like, I've been doing Git for so long. Like, I don't need you to tell me how to change my workflow.
SPEAKER_00Why would I do that? I hear all the signs from current people who hear about stacking. And then what ended up happening was that as these evangelists made inroads and
SPEAKER_01started to convince people, like, no, no, no, it's actually speeding you up, people would adopt it, see the value, and become that evangelist themselves. We like to joke that once you stack, you don't go back. um i i think why it works so well is it did two things really it was like the perfect uh convergence of two forces one is that it gave individuals what they want so i think no developer likes being blocked right if you ask a developer like what is the feeling towards code review um or towards having to wait on code review oh yeah it's almost always negative no one's like i love that
feeling negative
SPEAKER_01People are like, it sucks. It's the worst part. And I think that even if you have a more senior developer that's been doing, that's had code review for 20 years, if you ask them like, why do you enjoy coding on personal projects as opposed to company projects? The overhead of collaboration becomes quite clear there of like, yeah, because when I work with others, things just slow down. We need to review things. We need to align on them. They get a lot slower. Yeah. And I think what stacking did is it took away some of that overhead,
right? Where rather than having to wait on other people to review your code that you
SPEAKER_01already thought was pretty good and you had already aligned on before, you could just keep going and keep building without needing to sort of wait for them. The second side is on, I guess it was great for three parties. The second side was the reviewer. The reviewer started to get smaller PRs. Yeah. And whether you know it or not, when I send you a 10-line PR, you are so much happier than if I send you a 2,000-line PR.
SPEAKER_00Yeah, but so many companies eventually, when they write down code review guidelines, they're always going to have small peers. At Uber, at some point, we had recommendations within the team for 50 or 70 lines, whatever that is. But you realize, I mean, there's jokes going around, and I think it was viral on social media of the 5,000-line review looks good to me, and then the 10-line, which gets like 10 comments.
SPEAKER_01Exactly right. And I think people, as we were saying before, people buy out of it. And the third is I think it really gave the company something they needed, which is that they started to see their engineering organization speed up. They started to see time to merge go down. That's usually a metric that people measure, and we can talk about engineering metrics separately. And in the case that something went wrong, it made it much easier to correct things, right? In the case that QA or even users found something that wasn't working the way it should be, it was much easier to then go to history and be like, which one of these changes did it?
Then when the changes were like monolithic feature, monolithic feature, monolithic feature.
SPEAKER_00Yeah. Now, you know, you build this tooling and you are still a pretty small startup. How do you convince companies to, you know, like use a pretty small startup, pretty unknown methodology? You know, rumors are Meta uses it a lot because I assume it's not a really easy sell, is it?
SPEAKER_01No, it's not an easy sell at all. Well, so back to the company's origins. So I don't know if you know this. We didn't actually start as a code review company. So we actually started by building tools for mobile releases. That's the background of the founders. That's the area we wanted to build in. I was fortunate enough to have two of my teammates from Meta join the team. And I think one of the things that the three of us felt was like, oh, like the tooling out here, I think they were both new grads when they joined Meta, had been there for a handful of years, call it like four.
SPEAKER_01And then when they left, they had the same experience I did, which was like, oh, like the tooling out here is different. And at the start, we kind of were like, well... We must be the weird ones. And after about a few months, we were like, no, there's actually something missing here. And I think the context that I now have that I wish I had then was, one, most companies, if you have more than 50 people, you have at least one person who builds tooling on top of GitHub. And I think that if you've worked at one of these companies, you kind of just take that as a truth of like,
SPEAKER_01yeah, I have the DevTools team, DevPlatform.
SPEAKER_00But these days, Jenkins is GitHub Actions, so same difference.
SPEAKER_01Exactly. You have someone building tooling there to make your developers faster. The second thing is that these companies, so like Meta and Google, so GitHub released their pull request page back in 2013. They haven't really made a ton of major edits to it since. those companies had their changes then and have continued to iterate on their tooling for like the past decade. And so when we say their tooling is like a decade more advanced, that's a quite literal statement, actually. That's not a figurative one. And so we realized that.
SPEAKER_01We were like, hold on. Like, there's missing tooling out here. We tried a lot of the alternatives. As I said, stacking was sort of that first pain point. And so we tried a lot of the sort of like open source CLI first alternatives. Realized it It was like an approximation of what we wanted, but it wasn't quite it. And then we built it. And then what happened actually was a lot of our old coworkers, many of whom had gone on to startups, ended up asking us like, hey, code review out here is different.
SPEAKER_01How do you all deal with it? And we're like, we built that. Let us know if you ever want us to tell you how to build it. And they're like, I don't, but like, can I just use your thing? And after we heard that for a few months, we ended up pivoting back in, I guess this would have been November of 2021. Okay. So quick pivot in the beginning of the, just, so basically, did you just feel a pull?
SPEAKER_00Like, okay, like this is a good idea. Seems like there's a man for it.
SPEAKER_01I don't think it was... The other company idea was working quite well. I think what we felt was we had all of our friends asking us for this thing that we had built and it wasn't the thing that we were selling. And you can only listen to that for so long before you decide to say, maybe we got this one wrong. Maybe this is the thing.
SPEAKER_00It's just fascinating. I guess it's hard to... Appreciate if you're not working at a startup, because, you know, my my imagination of joining a startup, I have friends and my brother was working at a startup, but I didn't join a super early stage startup ever is you would imagine you're joining. This is what we're doing. This is what we're going to do. But, you know, sounds like you need to be flexible enough because you might do something different that actually works and there's a bigger demand for it. Yeah, we were fortunate enough that at the time that we pivoted, we were just six people.
SPEAKER_01And so it was six people and three of us had felt the pain from Facebook. So it was us telling people like, no, no, no, we've heard it. Like our coworkers have heard it. We'd gotten other people at the company to buy into this workflow at that point. And yeah, it was certainly stressful, but it was also a thing we just had enough conviction in. We were like, this is the way the world will build software. It's more a question of who's going to bring it into the world, not if.
SPEAKER_00Yeah. You previously mentioned engineering metrics. What are engineering metrics you see these fast-moving companies measure and actually care about and want to improve? So I'll start with the statement that all engineering metrics are a proxy.
SPEAKER_01So I think that measuring engineering velocity is an art, not a science. And I think that the value of engineering metrics is to create some holistic metrics so that you can see major outliers and be like, what's going on here? Yeah. The kinds of metrics which I see most people measure are number of pull requests as just a proxy for sort of like how's velocity doing, time to merge of those pull requests. And then my favorite metric I've actually ever seen came out of Uber.
SPEAKER_01And so maybe you might have more context on this than I, but it was basically time that a pull request is just spent waiting in review with no clear action. And so the idea was if an author puts up a pull request and is just waiting on review, you take that, then the reviewer goes ahead, requests changes, and you then ignore that time. You then put it back up for review, you start summing that time again, and you end up with this composite of this is the amount of time this pull request just sat waiting on review without clear next steps.
SPEAKER_00So this metric was introduced after I left Uber. I think I might have covered it in one of the deep dives on how Uber did it. But this was a really big problem at Uber because we were distributed sites and my team specifically had this problem where we would have to wait almost 24 hours for something to happen in the pull request because we had the... We had strong code ownership, and I think Uber still might have it to this day. When I was there, we still had it. So the mobile platform team would own the platform code in San Francisco and Amsterdam.
Last thing at night, you would make a change, and you would have to head off.
SPEAKER_00And it would go to them, they would reject it because of whatever reason you come back in the morning, you know, it's now nighttime in San Francisco, you fix it quickly. And then you have to wait another like eight hours and then stay late. So like, I'm glad that they started to measure it because, and this is one of the things where it's not really a big deal if you're a startup, if you're in the same time zone, if you're in the same location, but And then, you know, we came up with creative workarounds. Like we started to get like, we onboarded someone to be an owner of, essentially, you can do a lot of things,
SPEAKER_00but it was really killing us. Like, and I knew it because I was the manager of the team and this was the number one complaint. So we actually, you know, we took it into our hands and we solved it. But so many teams were doing this independently. And then it kind of goes back to like, You know, like as a dev, I didn't really like to hear too much about strategy and whatnot. But there is a thing of like, you know, who owns what, how do you place your teams? It's kind of easier when you have teams working on similar stuff close to each other in terms of time zone. So, yeah. And, you know, one other thing that Uber measured, which I'm not sure how successful it was, but it was an interesting thing,
is they tried to measure focus time on how much uninterrupted focus blocks devs had.
SPEAKER_00Yeah. I think it's really noble. It's just really hard to measure. But it's true that when I was always happier developing when I actually had time, it wasn't fragmented with the random meetings here or there, etc.
SPEAKER_01Yeah, totally. I mean, maker's schedule, manager's schedule is super real. I think that as we were going back to before, though, these problems, which used to be more isolated to big companies, I think as we start to see a higher volume of pull requests and more of the time is spent in code review, not authoring pull requests, they're going to become everyone's problems. And I think the question is how ready are companies for that change?
SPEAKER_00Yeah. I like this thinking because this will happen. So it's interesting how small companies might need to take some of the lessons from the larger companies on how they solve it and prepare for it. Because it's going to come. I'm kind of tempted to agree with you on this one. It'll be fascinating to see. It'll be also fascinating to see if small companies speed up a lot more than, let's say, big companies where there's larger teams and there's now more dependencies. It'll be an interesting one for us to... I think small companies are certainly better positioned to
embrace the change.
SPEAKER_01I think big companies will be slow. I think small companies, we've already seen them adopt a lot of AI tools faster. I think some of the most advanced big companies are just trying to adopt them at the same pace as these small companies, but they're definitely not trying to outperform them. And I think we've seen this actually in quite a few areas. Every time that you have a new technology that makes something... more accessible easier. The same way I think AI is making coding more accessible easier. I think what ends up happening is that practices that were previously only meant
for the tippity-top of the market start to distill their way down to everyone.
SPEAKER_00So you're a co-founder of a DevTools company, and I think this is a little bit of a dream of a lot of engineers. I actually see this pattern pretty much as you join a company, you work on a product. If it's a big enough company, there's a platform team. A lot of engineers gravitate to there because you can solve pretty cool problems. In your case, you were on a DevTools team. And then you... you find the courage or find the right people to actually start a startup. And what better thing to do as a dev and what, you know, you already know how to do this is built for other developers.
What is something that you've kind of learned the hard way of starting a dev tools company?
SPEAKER_00Because I assume it's a bit trickier than what you imagined? What was different than when you started out? Because it sounds like the dream, right? You kind of went out, you actually managed to raise some funding, and now you're going to build these cool tools for developers. And you're a developer. It's great. You know, your customer is wonderful.
SPEAKER_01I mean, a ton of things. I think that building a company can be very rewarding in a lot of ways. I think there are a lot of challenges. I think some of the things that you learn to deal with, some of the things I think we've learned to deal with here are sort of the diversity of engineering workflows across, even across Silicon Valley and non-Silicon Valley style companies, right? Of like, what does code review mean to them? What are they trying to get out of it? What's the purpose of it? And finding the middle road to blend all of those things to blend all of those,
SPEAKER_01I don't know, needs, desires, et cetera, is difficult, is challenging, is something we build. I think one of the things that has most surprised me coming out of Facebook is what we talked around earlier, is the tooling. I think working within a company, you probably have that team that is building really awesome tooling, and they really benefit from that. When you come out here into the wild, as I call it, a lot less of that exists, and you find yourself being like, okay, how can I set that up? How can I get back to that? A company which I'll give a shout out to is Statsig.
So Facebook had really wonderful experimentation tooling, feature flagging tooling. And when I left immediately, not immediately, but six months in, I was like, okay, cool.
SPEAKER_01We probably have our first feature flag. How do we go ahead and turn this on? And I think you just mentioned you're at Uber. You had wonderful tooling there too. There's all of this stuff that's set up for you that you just take for granted. And once you come out and have to build it, you have to start to be like, OK, how do we do this from scratch again?
SPEAKER_00You know, or who can do this for me? Awesome. So with that, let's wrap up with some rapid questions. I'll ask a question and you just shoot whatever comes to your mind. Cool. So first, what is a tool that you saw inside Facebook that is now outside Facebook as well and that can be used and you think is pretty cool?
SPEAKER_01I think Statsig is still the answer I'm going to give here. It's very cool having the feature flag system that it's used to. And it's actually an amalgamation of a handful of different Facebook tools. Our feature flagging system, Gatekeeper, and then our experimentation feature, Deltoid. And so it's cool to see both of those. And QE2, I guess. It's kind of cool to see that reborn outside of Facebook.
SPEAKER_00That's awesome. And this is the beauty of like, I think, you know, there was this like several years where DevTools got funded because I feel a lot of the things that were hidden inside these companies are now outside as well.
SPEAKER_01Totally. I think also one of the things that's, having worked at DevTools within Facebook and out of Facebook, I think one of the things that's so funny to me is that in Facebook, building DevTools is a lot easier. You don't need to worry about things like marketing. You don't need to worry about things like hiring. And I think it takes a lot of courage and it's a very difficult path to build a tool outside of one of these large companies and say, no, I'm going to figure out how to make this work for the market. Because again, the engineering cultures are different. The constraints are different. The The other tools you're integrating with are different. And so you have to start to rebuild all that.
SPEAKER_00And so what is your favorite programming language? Always an interesting question.
SPEAKER_01TypeScript, by far. I think TypeScript is one of the most beautiful languages. And you're talking to a person that learned JavaScript when he was like 10. And then the type system on top of TypeScript, I think, is really clean and does a great job with the constraints they have. I remember when TypeScript was created and I remember there was a bit of skepticism
SPEAKER_00around A, it was Microsoft. B, do we even need this? Because, you know, the dynamic typing system is kind of like this wonderful thing that allows you to do so many crazy things. And yeah, like I think everyone has turned, well, not everyone, but like most devs have slowly or surely seen the benefits of what we get with typing and with a nice language. My controversial opinion is I'm glad Microsoft doesn't want to do it because I think that Microsoft has some really wonderful compiler knowledge locked inside of it.
SPEAKER_01And I similarly had that skepticism. I remember at the time thinking, we have flow, what's the purpose of this? And I think that the formal grammars and proofs that they've done around it are really, really excellent. You can go really deep on group theory or category theory just by looking at TypeScript. But Yeah, I frequently look at other untyped languages. I'm looking at Ruby and I'm looking at Python, and I don't think they've gotten close to what TypeScript has done to JavaScript yet.
SPEAKER_00And then finally, what's a book that you read and would recommend, fiction or nonfiction, one or two books?
SPEAKER_01So I am an avid mystery reader. So the mystery book I always recommend people is The Last Days of Night. It's a book around a Tesla, Edison and Westinghouse and the race to invent the light bulb. It's written as historical fiction. I think it's phenomenal. As one who currently works in technology in New York, there isn't a better book I can recommend to anyone in that position. Nonfiction, I read a lot of books these days. I've been actually reading a lot more product books. The Timeless Way of Building is a really interesting book about architecture. The beginning is a little abstract to get through,
SPEAKER_01but once you get to the sort of latter half, it talks around the importance of having the people who ultimately use tools or buildings be the ones who build those tools or buildings. Because that's the only way that you create a self-sustaining cycle.
SPEAKER_00I guess it kind of resonates with developers, developer tools. Yeah. Which seems kind of obvious because who else would program the tools that we use than developers? It's one of these weird things, but yeah.
SPEAKER_01There's an MC Escher painting to be made about that.
SPEAKER_00Well, this is really interesting. I'm glad we were able to go a bit deeper into stacking than we previously touched on that article as well. And thank you for your time. Cool. Of course. Thank you. This was always very fun. Thanks a lot to Thomas for all the details on Meta's tooling, stag diffs, and on tooling trends. You can find Thomas on social media as listed in the show notes below. For more deep dives on tooling at Meta and more details on stag diffs, check out the pragmatic engineer deep dives linked in the show notes below. If you enjoy the podcast,
please do subscribe on your favorite podcast platform and on YouTube.
SPEAKER_00This helps more people discover the podcast. A special thank you if you leave a rating. Thanks and see you in the next one.
Brought to You By: • turbopuffer - a vector and full-text search engine built on object storage. It’s fast, cheap, and extremely scalable. • Entire - The Git forge for agent-human collaboration. Built for the scale and...
Brought to You By: • turbopuffer - a vector and full-text search engine built on object storage. It’s fast, cheap, and extremely scalable. • Linear - the product development system for teams and agents. • WorkOS -...
Brought to You By: • Antithesis - verify your system’s correctness without human review or traditional integration tests - and avoid bugs or outages. • turbopuffer - a vector and full-text search engine built on object...
Brought to You By: • turbopuffer - a vector and full-text search engine built on object storage. It’s fast, cheap, and extremely scalable • Linear - the product development system for teams and agents • WorkOS -...
Brought to You By: • turbopuffer - a vector and full-text search engine built on object storage. It’s fast, cheap, and extremely scalable. • Entire - Git hosting, rebuilt for the agentic era. Every agent session, prompt...