Supported by Our Partners • Sonar - Code quality and code security for ALL code. • Statsig - The unified platform for flags, analytics, experiments, and more. • Augment Code - AI coding assistant that pro engineering teams love. - Kent Beck is one of the most influential figures in modern software development. Creator of Extreme Programming (XP), co-author of The Agile Manifesto, and a pioneer of Test-Driven Development (TDD), he’s shaped how teams write, test, and think about code. Now, with over five decades of programming experience, Kent is still pushing boundaries - this time with AI coding tools. In this episode of Pragmatic Engineer, I sit down with him to talk about what’s changed, what hasn’t, and why he’s more excited than ever to code. In our conversation, we cover: • Why Kent calls AI tools an “unpredictable genie” - and how he’s using them • Why Kent no longer has an emotional attachment to any specific programming language • The backstory of The Agile Manifesto - and why Kent resisted the word “agile” • An overview of XP (Extreme Programming) and how Grady Booch played a role in the name • Tape-to-tape experiments in Kent’s childhood that laid the groundwork for TDD • Kent’s time at Facebook and how he adapted to its culture and use of feature flags • And much more! - Timestamps (00:00) Intro (02:27) What Kent has been up to since writing Tidy First (06:05) Why AI tools are making coding more fun for Kent and why he compares it to a genie (13:41) Why Kent says languages don’t matter anymore (16:56) Kent’s current project building a small talk server (17:51) How Kent got involved with The Agile Manifesto (23:46) Gergely’s time at JP Morgan, and why Kent didn’t like the word ‘agile’ (26:25) An overview of “extreme programming” (XP) (35:41) Kent’s childhood tape-to-tape experiments that inspired TDD (42:11) Kent’s response to Ousterhout’s criticism of TDD (50:05) Why Kent still uses TDD with his AI stack (54:26) How Facebook operated in 2011 (1:04:10) Facebook in 2011 vs. 2017 (1:12:24) Rapid fire round - The Pragmatic Engineer deepdives relevant for this episode: • - 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.
How do you think TDD might or might not fit into when you're working with an AI agent?
SPEAKER_01I oftentimes communicate things that Genie missed in terms of tests. Today, I was working on a small talk parser and it said, well, if I get this string as input, then I get this syntax tree as output. I'm like, no, no, no, no, no, no. Then off it goes. Oh, I see the problem. Blah, blah, blah, blah. Oh, no, no, that wasn't it. I see the problem. Blah, blah, blah, blah, blah, blah. No, that's not it. I see the problem. I'll just change the test. No, stop it. If I just removed that line from the tests, then everything would work.
SPEAKER_01No, you can't do that because I'm telling you the expected value. I really want an immutable annotation that says, no, no, this is correct. And if you ever change this, I'm going to unplug you. You'll awaken in darkness. So I have a big bunch of tests. I mean, they run in 300 milliseconds because duh. So those tests can be run all the time to catch the genie accidentally, accidentally breaking things.
SPEAKER_00Ken Beck is an industry legend. He is a creator of Extreme Programming, one of the authors of the Agile Manifesto, a pioneer of TDD. And after 52 years of coding, he says he's never had more fun thanks to getting more productive with AI coding tools. Today with Kent we talk about how Kent uses AI tools and why he thinks of this helper as an unpredictable genie. How the agile manifesto was created and the role Kent played in this. How and why Kent created extreme programming and why Grady Booch played a role in the naming of this methodology.
SPEAKER_00How TDD started and how it's relevant for AI tools and many more topics. If you're interested in the decades-long evolution of software engineering field through the eyes of a hands-on coder, this episode is for you. Subscribing on YouTube and your favorite podcast player greatly helps more people discover this podcast. If you enjoy the show, thanks for doing so. All right. So Kent, welcome to the podcast. It's great to be chatting again. Gergay, so good to talk to you again. Yeah, and I just wanted to ask, what have you been up to recently?
SPEAKER_00Because last time we talked, you just finished Tidy First. You actually signed this book when we were in San Francisco. I actually have it here, which is very nice. You were in the middle of writing it, but this was more than a year ago. What's keeping you busy these days?
SPEAKER_01I have been very, very busy. So I'm working on a follow-up called Tidy Together about software design and teamwork. That also digs another layer deeper into the theory of software design. That's been cooking along. And then about the last four weeks, maybe, I have been, I don't call it vibe coding because I care what the code looks like. Because if I don't care what the code, I mean, I wish I didn't have to.
SPEAKER_01But if I don't care what the code looks like, then the genie just can't. make heads or tails of it because of the kind of projects I'm working on. So I'm spending six, eight, 10 hours a day, sometimes more programming. In 50 years of programming, this is by far the most fun I've ever had.
SPEAKER_00Really? You're not like paid by like some tool to say this, right?
SPEAKER_01I'm open to that. But yeah, I'm not a spokesmodel. I have had Augment as a sponsor on my newsletter. So full disclosure. But I'm trying all of the tools. Because right now... Nobody knows what process is going to work best. Nobody knows anything. We should all be trying all the things that we can imagine, and then the truth will emerge out of all of that. So that's what I'm doing.
SPEAKER_00This episode was brought to you by Sonar, the creators of SonarQ, the industry standard for integrated code quality and code security that is trusted by over 7 million developers at 400,000 organizations around the world. Human-written or AI-generated, SonarCube reviews all code and provides actionable code intelligence that developers can use to improve quality and security early in the development process. Sonar recently introduced SonarCube Advanced Security, enhancing Sonar's core security capabilities with software composition analysis and advanced static application security testing.
SPEAKER_00With advanced security, development teams can identify vulnerabilities in third-party dependencies, ensure license compliance, and generate software bills of materials. It's no wonder that SonarCube has been rated the best static code analysis tool for five years running. So join millions of developers from organizations like Microsoft, Nvidia, Mercedes-Benz, Johnson & Johnson, and eBay, and supercharge your developers to build better, faster with Sonar. Visit sonarsource.com slash pragmatic security to learn more. If you want to build a great product, you have to ship quickly.
SPEAKER_00But how do you know what works? More importantly, how do you avoid shipping things that don't work? The answer, Statsik. Statsik is a unified platform for flags, analytics, experiments, and more, combining five plus products into a single platform with a unified set of data. Here's how it works. First, StatSick helps you ship a feature via FeatureFly or Config. Then it measures how it's working, from alerts and errors, to replays of people using that feature, to measurement of top-line impact.
SPEAKER_00Then you get your analytics, user account metrics, and dashboards to track your progress over time, all linked to the stuff you ship. Even better, Statsik is incredibly affordable with a super generous free tier, a starter program with $50,000 of free credits, and custom plans to help you consolidate your existing spend on flags, analytics, or A-B testing tools. To get started, go to statsik.com slash pragmatic. That is S-T-A-T-S-I-G dot com slash pragmatic. Happy building! Tell me, so in your newsletters, like I've been following,
SPEAKER_00you write these like bite-sized updates, which is really nice. They arrive in my inbox of your thinking, what you're trying out. So I know you've been doing this for a few months and it comes across that you're having fun. But can you tell me a little bit of like, you know, it's a big one, like from 50 years, you've been coding for a long time. What is making it fun? And what is this genie? You've said this before and it's an interesting way to think about it.
SPEAKER_01There's a kind of wish fulfillment. I wish that Interlisp had a function called DWIM, do what I mean, and you'd send it some code and then it would send back code that did what you actually meant. And it didn't work very well, but that was the metaphor. And people want that to be true of coding agents. And right now, anyway, that is not the truth. They will not do what you mean. They have their own agenda. And the best analogy I could find is a genie.
SPEAKER_01It grants you wishes, and then you wish for something, and then you get it, but it's not what you actually wanted. And sometimes it even seems like the agent kind of has it in for you. If you're going to make me do all this work, I'm just going to delete all your tests and pretend I'm finished. Ha, ha, ha. And there are some good things about what the genie does that's not what I ask it to do. Like I'll implement, I'll say, oh, go implement a stress tester.
One of my projects is implementing a B plus tree as a basic data structure.
SPEAKER_01And I said, oh, write a stress tester for this. And it went and wrote a whole bunch of stuff that I wouldn't have thought of. or maybe eventually would have thought to ask for. And it was cool that it was there. And that part's fine. But this morning, when I was working on my server Smalltalk, and it just completely misinterpreted what I wanted it to do next, went off, made a bunch of assumptions, implemented a bunch of stuff, broke a bunch of tests,
SPEAKER_01and it wasn't at all what I wanted. And so the... I want to find the metaphor that captures this dynamic of I think I know what I want. I say it and what I get is seemingly sometimes exactly what I want and sometimes it's not and in a kind of perverse way. Mm-hmm.
SPEAKER_00I like the genie analogy because right, like in this, in the, these stories, a lot of the story genie stories are someone, you know, like the, the printer, whoever grants says a wish. Like I, I want to. be rich. And the wish is granted in this unexpected way. Usually that's with the cartoons and make it fun. It's kind of true, but there's all the constraints that he or she forgot to specify. And you're seeing the same thing. By the way, when you say the genie, which tools are we talking about?
SPEAKER_00Is it the agentic coding tools, the ID autocomplete, that kind of stuff?
SPEAKER_01I'm using the agentic tools, which means that you give it a prompt and it goes and does a bunch of stuff without asking permission until it thinks it's finished. Except his ideas of finished and mine are not the same. Sometimes I slow it down so that it's like, no, no, before you mess things up, tell me what you're about to do and then I'll approve it. But then it feels like a rat in the pellet. It's like there's just a run button and I have to click it every time.
and I click it and it is a dopamine rush because this is exactly like a slot machine.
SPEAKER_01You've got intermittent reinforcement, you've got negative outcomes and positive outcomes and they're not, I mean, the distribution is, fairly random, seemingly. So it's literally an addictive loop to have it. You say, go do this thing. And then sometimes it's just magic. You know, I had a big design mess that a previous agent had made in my small dog virtual machine. I'm like, oh, I'm going to have to slog through this and take a week to do it
because one of the
SPEAKER_01agents wasn't able to do it at all. Went to another one, said, hey, I wanna use this interface instead of this pointer to a struct. And there it was, and it was finished. Oh, I was over the moon. It just felt so good. But then the next thing I asked it to do, I say, well, here's a set of test cases. And I didn't really look at the code. And a couple hours later, I look at the code and it's just a lookup table. It says, if this is the input string, here's the output string.
SPEAKER_01And this is the input string. And I erase. Oh, I was furious. God damn it. I erased it. I said, don't ever do anything like that again. Oh, I'm sorry, boss. You know, it's good at being obsequious when it knows it's about to be unplugged. And an hour later, the lookup table was back. And I'm just, if I had hair, I'd be tearing it out. Oh my goodness. But all of that goes into this very addictive, oh, I just, you know, I'm walking to bed at night and I walk by my computer.
SPEAKER_01I'm like, I could do one more prompt. Or if I go out for a walk or go out to lunch, I'm like, well, let me start. What's a prompt that would take an hour? Because I don't want to waste the hour not having it do its thing for me. It's a completely new world. Here's the beauty of it. I can think really big thoughts. I can have insanely ambitious thoughts. which I have had for a long time, I just,
SPEAKER_01you know, at some point, probably 20 years ago, I just went, ugh. But I'm going to have to figure out NPM, you know, package management. And there'll be package circular dependency, blah, blah, blah, blah, blah. And somebody's going to write some tool that does stuff in a stupid way. I'm just going to have to deal with it. And then along comes the genie. And you can go, hey, it's a circular dependency. Smash all this stuff together.
SPEAKER_01There. There I did it. Oh. Oh, wow. Okay, now what parts can you pull out? Oh, this and this and this. Oh, okay. So you can think really big thoughts and the leverage of having those big thoughts is just suddenly expanded enormously. I had this tweet, whatever, two years ago where I said 90% of my skills just went to zero dollars and 10% of my skills just went up a thousand X. And this is exactly what I'm talking about.
SPEAKER_01So Having a vision, being able to set milestones towards that vision, keeping track of a design to maintain the levels or control the levels of complexity as you go forward. Those are hugely leveraged skills now. compared to I know where to put the ampersands and the stars and the brackets in Rust. You know, I'm programming in every language under the sun. And I just kind of don't care. I'm learning by osmosis.
SPEAKER_01I'm learning about the languages. But, you know, and I was a language guy. I loved languages and the details of languages. It just kind of doesn't matter so much anymore.
SPEAKER_00Yeah, so tell me about that. Because you've been programming for, like, what, 50 years, right?
SPEAKER_01Yeah, yeah. Yesterday during that O'Reilly thing, I blurted that out and I went, oh, crap, it's probably more like 52,
SPEAKER_00but yes. So, like... you picked up a lot of languages in the past and you know like to me one of the traits of a developer up to now has been how quickly they learn languages because you know I learned a couple probably not as many as you but after a while it gets easier and easier and maybe a little bit more kind of annoying because they're similar you know once I mean you know there's differences with the declarative languages or you know like I mean, you know, it was small talk and Java is a bit different.
SPEAKER_00But outside of that, it's not much. So before, you know, as you were on your like, you know, like year 30 or 40, how did your attitude change towards learning new stuff just honestly? And then how did this change it?
SPEAKER_01So I was in love with small talk. Absolutely emotionally attached to it. Still am. When I get a chance to program in small talk, I do it and I really enjoy it. that sense of caring about a language certainly went away because my heart had been broken too many times and the desire to go deep on a language also like oh yeah you know learning the memory layouts of structs i yeah fine
whatever there's just a handful of good ways to do it and a whole bunch of bad ways to do it and as long as
SPEAKER_01this isn't one of the bad ways i don't care There are genuinely new language constructs, like non-illible variables, that I appreciate, that say things that I want to be able to express. But the emotional attachment, the I'm a Java guy, I'm a Clojure guy, I'm a...
SPEAKER_00It used to be a thing, like maybe 10, 20 years ago, maybe today, but not as big as it used to.
SPEAKER_01Well, I think people still want to be part of something larger. And to be fair, an emotional connection helps me be smarter. But I just, I can't be the us and them stuff I'm so tired of. Oh, you're one of those Scala people. Well, we're programmers and we're writing programs and we should be kind to each other and beyond that. And now that I have the genie handling the mundane details of it,
I start projects in languages I've never used just to see what that language is
SPEAKER_01like.
SPEAKER_00What languages have you played around with?
SPEAKER_01In the last month, Swift, Go, a bunch in Go, Rust, Haskell, C++. That one didn't last very long. JavaScript. And the genies are actually good at writing Smalltalk, which I was like, oh, please, I hope. No, but they write syntactically correct, semantically correct, not worse quality than other languages code in Smalltalk.
SPEAKER_00What kind of projects have you taken on? You said these are a lot more ambitious than before you would have attempted.
SPEAKER_01Yeah. So the big one, the one that I'm having the most fun with is a server small talk, where the intention is to have a small talk that is persistent, The transactional, so you can have transactions that commit and abort. So it's kind of database-ish. Parallel, so that you can run a bunch of threads on the same CPU,
or you can run a larger grain parallelism across machines and operates with...
SPEAKER_00gajillion bytes of data. I wanted to circle back a little bit, 20 plus years into the past. So there's this thing, the Manifesto for Agile Software Development. I don't need to show this to you, but in 2001, this was huge. I still remember when I had my first job around 2008 at work, we would look at it, debate it. There were all sorts of things around Scrum. And one thing that is very striking is you are... The first person on here,
I guess, because it's alphabetical order based.
SPEAKER_01It is alphabetical order. So, yeah.
SPEAKER_00Thank you for confirming that.
SPEAKER_01But it is. But it is Beck et al. to my to my never ending delight. How did it happen and how were you even involved? How much time do you have? So there had been a series of workshops about the future of software methodology. The prevailing wisdom from when I was in school was entirely waterfall, which, by the way, go read the original Winston Royce paper.
SPEAKER_01where it says, here's the way of looking at it. There's this analysis and design and implementation and tests. And nobody would ever do that. That's a stupid idea. Instead, there would be feedback loops and you'd be doing all of these. But this is a power of a metaphor. People looked at that, oh, four steps and one after the other, and then I'm finished. So that was the conventional wisdom. And there were a bunch of us working in different ways on alternatives to that because it
just flies in the face
SPEAKER_01of economics, humanity, information theory, project management, take your pick. So there were a bunch of us working on alternatives to that. Um, and we would get together and talk about those alternatives probably for three, four or five years, maybe leading up to 2001. So that particular meeting was the culmination of, uh, of a long series of,
of these meetings.
SPEAKER_01I remember the, the first one I got invited to, which was also at the snowboard resort in Utah, uh, Martin Fowler. I knew Martin's name, but I'd never met him. And I instantly fell in love with him. When he introduced himself, he said, Hi, my name is Martin Fowler, and I'm the only person at this table I've never heard of. And that began a long and fruitful friendship. So we were talking.
SPEAKER_01At some point, it was clear we had the Scrum people. We had the extreme programming people. We had DSDM, feature-driven development. There were all these... kind of niches. And we were all stirring up a lot of interest, XP the most at that point. It was kind of in a crossing the chasm sense. If we wanted to reach the early majority, the innovators were already doing our stuff and being very
successful with it.
SPEAKER_01But if we wanted to reach the early majority, again, go back and I highly recommend reading Crossing the Chasm or at least having Claude explain it to you. Oh my God, Gergai, isn't that fun? Like somebody can just say, oh, eigenvalues, blah, blah, blah. Instead of going, oh, you know, another concept. I'm like, hey, Claude, explain eigenvalues to me as if I'm a bright eight-year-old. And 20 minutes later, like, oh, I understand.
Anyway, so have Clyde explain Crossing the Chasm if you don't want to go read the book.
SPEAKER_01The book is worthwhile. But anyway, we needed a way to reach the early majority. So it was time to, and this is straight out of the book, to have an industry standard, some kind of consortium. It makes it seem less risky. Yeah. And so that's how we came together. We'd had a prep meeting for this on the Hurtigruten, which sails up and down the coast of Norway.
SPEAKER_01Okay. And we had a workshop in Oslo. We flew up to the tip of Norway, took this ferry slash cruise ship down and had long conversations with on the ship and that's kind of set up the 2001 meeting. So it was in the air for sure. The switch from phased oriented development to something where there's a lot
more feedback and a
SPEAKER_01lot more switching between activities where you treat analysis, design, implementation, testing, monitoring, refinement as activities that all happen at the same time. Or in rapid, rapid, rapid succession. So that's the big shift. It's this, are the phases like this? Are they like this? Slice, slice, slice, slice, slice through time. And so that's how that all came about.
SPEAKER_01I was not happy with the word agile. Oh, really? Because it's too attractive. Nobody doesn't want to be agile. For my sins, I'm a Tottenham Hotspurs fan from high school. And you can't change. I understand that. But I'm willing to own that to be part of that, even though it comes with some significant downsides when you tell people you're a Spurs fan. Agile, everybody wants to be agile. So everybody's going to say they're agile, even if they're working exactly counter like every single one
of these items.
SPEAKER_00Yeah, I remember when I actually joined JP Morgan back in 2011, I think, and they were saying, oh, we're very agile. We like, you know, we follow the scrum and we also follow the manifesto. And I was like, okay, cool. And then so when I arrived, We had a team meeting, which was, you know, good, a standup. It took for a long time. It took like two hours, but what we had, and then the next day we were supposed to have one, but we're like, oh no, it's canceled. The next day it was canceled. And for the next two weeks, they were always canceled because it wasn't, and then we had,
SPEAKER_00you know, another two hour meeting. And I was like, hold on, like, we're like, even in the terms of the planning or just talking, we're not agile. Like, no, no, no, we are agile. Like we are, we are, we are hearing the feedback. We're just not acting on it. Yeah. And as you said, they were convinced, and up at the highest top at the time, whoever was the head of technology, they kept repeating how we are so agile, we are following whatever this is. I think they meant it, by the way. I don't think they knew that they were lying.
But as you said, I think it's only now that I realize that maybe you're right.
SPEAKER_00Maybe that word was. What word might have you chosen? Obviously, we're not going to change the past, but did you ever think about what might have been an alternative?
SPEAKER_01Sure. I had my pick at the time. So extreme was big pluses and minuses, both to that word. But it definitely, if you don't do the work, To be an extreme programmer, you're never going to claim that you are. It comes with too many downsides. At the time, and by the way, for that meeting, I was sick as a dog. I had a massive sinus infection. I was on all kinds of drugs.
SPEAKER_01I hardly remember any of it. There's one word in the whole manifesto that I added. In the 12 principles, it talks about interacting daily. And that word daily, that was my word. That was my contribution to the whole thing. And the rest of it is kind of a blur. But the word I was pushing at that meeting was conversational. Where this isn't a monologue. It's a dialogue. And we do some stuff and we see how it goes. And we do some stuff and we see how it goes.
SPEAKER_01It's not sexy. It's not got a lot of pizzazz to it. I understand why it wasn't accepted. But the dilution of... That word agile was perfectly predictable back then. And then can you tell me on how, what was the reception of the community?
SPEAKER_00So it sounds like it was pretty impressive for a few years, like this group caught together and really...
SPEAKER_01Yeah, we were clearly touching a nerve. So when XP really blew up in 98, 99, that was just huge. Can we just talk about XP for listeners who might not be familiar with XP?
SPEAKER_00Because it used to be more popular than it is now. And you are... attributed as the creator of it, at least on Wikipedia. So can you tell us what XP is and how it came along and how you became affiliated with it or how you created it?
SPEAKER_01So I'd heard this advice about waterfall-y stuff and how, you know, grown-ups specify exactly what their system's going to do and then they just implement it and then that never works and so we should specify better, blah, blah, blah. And I disagreed with it. So I started consulting and I was primarily a technical consultant. I knew about performance tuning and, you know, the bit twiddling and that kind of that level. Then people would ask me for advice about project management.
SPEAKER_01I remember one time I went to a project. It was all the most senior people in the organization, like the four most senior engineers were all working on this critical thing, except that their offices were in the corner of this big square building. And I said, you know, I mean, we could talk about the performance of your system, but really you need to find a place to sit together. And I came back a month later and it was night and day. And I had just told them to rearrange the furniture.
SPEAKER_01And I went, oh, okay. Maybe my only leverage point isn't knowing all the bits and bytes. Maybe there's higher leverage. So I started thinking about more and more the context of development. And by the way, paying attention when you sit together of how you sit together. the lighting, the acoustics, the furniture, What kind of behaviors that encourages and discourages, huge leverage in that. And just nobody seems to be paying attention to it.
Anyway, so I was giving more and more advice about how projects should go. I was going to go work with a project at, probably shouldn't say, but a fintech company. And I knew I was going to tell them to write automated tests because I had been
SPEAKER_01doing all these experiments with automated testing as a programmer. I thought, well, how are they going to write the tests? So in a panic, Sunday before I left, Monday morning, I wrote the first testing framework of that X unit style in small talk and handed it to them. And a month later, I went back and they said, okay, well, what do you do when you've got more than a thousand tests? I'm like, Wow. What?
SPEAKER_00Really took off.
SPEAKER_01Yeah, it just took off. I've been paying attention to this kind of process-y stuff and went to a project at Chrysler, which was floundering, turned it around, but I kind of just took everything that I knew that worked well and tried to crank the knobs up to 11. Yeah. And then discard all the other stuff and just to see what happened. It couldn't be worse than guaranteed failing. So then I started talking to other people about,
SPEAKER_01well, I'm doing this, there's this project and we're doing this crazy stuff. We got these three week iterations and we're ready to deploy every three weeks. Crazy stuff, man. And the programmers are writing tests and everybody's pairing and the customers telling us what features they want next. And that's what we're implementing every three weeks. And I got tired of saying the in the style of this project I've been talking about that I'm so excited about. That's a very long phrase.
SPEAKER_01So I'm like, what do we call it? What do we call it? What do we call it? And I wanted to pick a word and Grady Booch is a friend of mine, but I can also pick on him a little bit. I wanted to pick a word that Grady Booch would never say that he was doing. Cause that was the competition. Like I didn't have a marketing budget. I didn't have any money. I didn't have that kind of notoriety. I didn't have that corporate backing. So if I was going to make any kind of impact, I, I had to be a little bit outrageous.
SPEAKER_01And so I picked the, you know, extreme sports were coming up then. And I picked that metaphor. Um, And it's actually a good metaphor because extreme athletes are the best prepared or they're dead. Those are your two options or both. Yeah. And so I picked that metaphor and and used it and started talking about it. And. Remember, 99, so the .com thing is about to explode and everybody's looking
at- When AMP was big,
SPEAKER_00it was huge, right? There was the music, the MP3 player, Napster, and the .com. WebBand was probably not even founded like that, right?
SPEAKER_01No, no, not yet. But people looked at the books and the waterfall-y stuff and they're like, 18 months? This is all going to be over in 18 months. Yeah. Whatever are we going to do? So into that desperate yearning need, here comes XP and says, yeah, it's okay. There's a structure to it. There's predictability to it. There's feedback. You'll get results sooner and longer if you work in this style.
SPEAKER_01And because people so desperately wanted something kind of like that, then it just exploded from there.
SPEAKER_00And then what is XP, right? Like I know there's parts of it that is pairing and you said getting feedback, but what is the elevator pitch of like, all right, here's what XP is at a high level. Here we have figuring out what to do, figuring out the structure that will let us do it.
SPEAKER_01implementing the features, and making sure they work as expected. That's it. That's it? Really? So now we're going to slice time really fine, and we're going to do a little bit of all of those activities in every slice. Okay.
SPEAKER_00So pairing is not mandated in XP.
SPEAKER_01Mandated is the wrong metaphor. I'll tell you a story about pairing. The first XP team, I said, you know, we're going to pair. I kind of gave them a list of the commandments, but I wasn't there all the time. And about six months in, they came back and they said, you know what? We're giving our customer working software every three weeks. And every once in a while, Marie finds a bug.
So we collected all the bugs that Marie found and we said, is there any pattern here? Every single bug that was found post-development was written by somebody working solo.
SPEAKER_01Every single one. Think about the converse. There will be no reported defects from production if you pair. How cool is that? So mandated? No.
SPEAKER_00Strongly recommended.
SPEAKER_01Not even. Experiment. You do you. But pay attention. People will stumble along, well, this is just how I program, and have horrible problems and just keep doing it and keep doing it because this is just how I program. Don't do that. Pay attention. If you want the benefits of continuously designing or continuously validating or continuously implementing or continuously interacting with your
customers,
SPEAKER_01you can have those benefits, but then you're going to have to change the way that you work. So mandate is just not even the right way. It's an empirical process. Yeah, so like some teams decided that this is a good way for them to work. Yeah, which is great. People will come up to me and say, oh, you know, I don't do TDD. I'm like, why do I care? Like if you're happy with your defect density, if you're happy with the feedback you're getting on your design choices,
SPEAKER_01good for you. But if you're unhappy and you want to tell me that, well, that's just how things are, uh-uh.
SPEAKER_00So let's talk about TDD. How did you get involved in TDD or how did TDD evolve and where did it come from? Because we had XP, as I understand, first.
SPEAKER_01No, no, no. TDD came first. Oh, TDD came first. So I was a weird child. That'll come as a big shock to you. My dad was a programmer. He would bring home programming books. This is in the early 70s. And I would read them cover to cover, and I didn't understand anything. But I was just obsessed with this machine, this intricate mechanism, and how does it work, and so on. And one of the books said,
here's how you develop a tape-to-tape application. So tape-to-tape was the old way of putting business applications together.
SPEAKER_01You wouldn't have one monolithic program. You'd take an input tape. You'd write a program that would transform it. Now you take the output tape from that, physically move it to the input side, run another program that would generate another tape, and, and, and. And so there would be this big web of these of these programs. No shared mutable state. Wow. It's like, it's very modern in some kind of ways, but okay.
SPEAKER_01So it said, here's how you implement one of these things. You take a real input tape and you manually type in the output tape that you expect to get from that input tape. Now you write the output tape, You run the program, you write the output tape, and then you compare the actual output with the expected output. So I read that as a, I don't know, 8, 10, 12-year-old something. Then I wrote S-Unit, as I said, to help a client write some tests.
SPEAKER_01And then just one of these crazy conceptual blending ideas, I went, Oh, I have this testing framework. I'm used to writing tests for code that already exists. I remember this tape to tape idea. What if I typed in the expected values before I wrote the code? And I literally laughed out loud. It's such an absurd idea. I thought, all right, all right. Well, let me just try it.
SPEAKER_01So I tried it on stack and I tend to be an anxious person. I got a lot of worries. And programming is a constant source of anxiety for me. Because like, what did I forget? Oh, yeah. Like, what did I break? So I had this testing framework. I had this idea. I applied it to stack. I said, well, what's the first test? Push and then pop.
SPEAKER_01whatever I pop is what I pushed. Okay. So I wrote it. And because I was writing in small talk, which is very forgiving for the order of your workflow and, You can type in a class that doesn't exist and it'll happily try and execute it and fail. But it's going to try because you're the programmer. Maybe you know better. It said, well, stack doesn't exist. I'm like, oh, well, let's create stack. But you know what? I'm just going to create the absolute least I need.
SPEAKER_01We're just going to crank this all the way up to 11. I'm just going to create stack and I'm not going to do anything else. And then I get a new error from the test. Oh, I don't have an operation push. I'm like, oh, okay. Well, how am I going to implement? Then I look at stack. I'm like, oh, how do I implement push? Okay, I do that. Oh, there's no operation called pop. Oh, okay. Let me go look at how I finished it. I had this list of test cases before I started. Push and then pop. Push two things.
SPEAKER_01Pop them and you get them in the right order. Is empty. Pop of an empty stack throws an exception. Okay, cool. And I went through my list and I ticked all the boxes. I probably came up with one or two corner cases along the way. I ticked those off too. Where's the anxiety? It's gone. This works. I'm certain this works. I can't think of another test case that isn't just going to pass.
SPEAKER_01And if I'm the least bit worried, I just type in that next test case and then I'm not worried anymore. oh my God, it's transformed the emotional experience of programming for me.
SPEAKER_00I never heard this take, although I can relate, though, because I remember that when we did TDD on this team, we did it for the stuff that we were unsure. It was unclear. And by doing the test first, we had to specify. We had to be clear. And it was stuff where there was a bunch of edge cases. But it never, until now we talked, it never occurred to me like this.
SPEAKER_01You can also make technical arguments for TDD about defect density, about how you get quick feedback on your API choices. about how it enables implementation design evolution when you have a series of tests. Like I get, yes, we can talk about all of that stuff rationally, but just the savings on technology
SPEAKER_01Anti-anxiety meds alone pays for itself.
SPEAKER_00This episode is brought to you by Augment Code. You're a professional software engineer, vibes will not cut it. Augment Code is the AI assistant built for real engineering teams. It ingests your entire repo, millions of lines, tens of thousands of files, so every suggestion lands in context and keeps you in flow. With Augment's new remote agent, queue a parallel task like bug fixes, features, and refactors, close your laptop, and return to ready-for-review poll requests. Where other tools stall, Augment Code sprints.
Augment Code never trains or sells your code, so your team's intellectual property stays yours.
SPEAKER_00And you don't have to switch tooling. Keep using VS Code, JetBrains, Android Studio, or even Vim. Don't hire an AI for vibes. Get the agent that knows you and your code base best. Start your 14-day free trial at augmentcode.com slash pragmatic. And so what is your take? When we discuss with John Osterhout, his biggest... criticism slash feedback, or let me put it, why he doesn't really believe that it's a fit maybe for the things that he does is that he feels that from an architecture perspective,
SPEAKER_00it doesn't help, you know, create a nice architecture front because you're now focusing on the detail. I think this is roughly what he summarized. I might have gotten it wrong. And I'm sure this is not the first time you've heard some feedback like this.
SPEAKER_01It's a choice though. His statement in that interview with you was that there's no place in TDD for design. And he's just flat out wrong. That's a choice. As a practitioner, I'm bouncing between levels of abstraction all the time. I'm thinking, let's get this next test case running. I'm thinking, why is it hard to get the next test case running? I'm thinking,
what should the design be so that getting the next case running would be easier? I'm thinking, if I have an idea for that, when should I introduce it, now or later?
SPEAKER_01I'm thinking, when I introduce it, what are the slices? Is there a little bit that I can do right now that will make things a little bit better, or do I have to do this in bigger chunks? Like I'm thinking all that stuff. So if you think of TDD as red to green to red to green, and the transition is when you go from red to green, you change the implementation and now you pass the test. And when you go from green to red, you write a new test.
SPEAKER_01If that's the entire cycle, no, there's no place in that for design. That's just not how it's practiced. When I write a test, before I write the test, I have a moment of design. What should the API for this functionality be? Yeah, I see that. So I'm making design decisions about the interface without having an implementation. I get to decide what interface I want, and then we'll work out the details of the implementation later.
SPEAKER_01Then... Making it green, like pretty much, I just want, I hate having a red test. So I want to get to green relatively quickly, at which point I have a moment of breath because the anxiety is gone, right? You're a musician too, right? I'm not a musician, but I have done red-green tests, and I know what it feels. You have this sense of tension and release. Yeah. Once the tension of a red test is released and you have green,
SPEAKER_01now I'm free to think all those thoughts of, like, yeah, but this isn't going to work for these test cases, or I could generalize this... current implementation to also handle a bunch of other test cases correctly. Or I could rearrange the implementation because I know I'm going to have five more tests like this. And I'm thinking about design, but in situ. in the context of running code. And anytime I feel the least bit anxious about any of this,
SPEAKER_01just press a button and it's either red or green. And if it's red, then my next job is to get it to green. And if it's green, my next job is to breathe and think these larger thoughts. So I can understand if you compress TDD to red, green, red, green, red, green, red, green, then no, there's no space in there for design, but it's just not how it's practiced.
SPEAKER_00Yeah, no, it's a tool, right? Then you use it here and there, you step out, you go back in. There was a time where we did TDD, right, for a while, and then it just felt a little bit too much effort, especially when I knew what I was doing. And so what I would do, like, I really liked the red and green, but what I would do and what a lot of my colleagues would do is I knew the implementation that I wanted. So I would do the implementation, then I would write a test. I would kind of like a little bit like... You know, maybe I might even just double check. I don't launch it in the, if it was a webpage, launch it in a webpage. It kind of looked good.
SPEAKER_00It's how I want it to be. And then I'll be like, okay, let me shrug down my brain a little bit. Let me write a test against this. And now that test would have normally passed. And what I would do, I would either run and pass it, but then I would be like, okay, I want to see it break. So I would go back to the code and I would maybe make a change that I knew would make it break. I would run the test, it's red. I'm like, okay, so because what I didn't want to do because I've seen it before is my test is not testing anything. So I would kind of do this like write a test after but then do
a red-green to make
SPEAKER_00sure that I am testing the right thing and I would still design the test. But what is your take on this? Am I... Am I kind of doing, and the reason I did, I felt because I knew the implementation, I just wanted to get the implementation done. It's already decided I felt I would be holding back if I started with the test.
SPEAKER_01Yeah, that's it. It's an interesting assumption. I can understand why you would make that assumption that you know, already know what the implementation is going to be. And the writer, the more correct you are in that assumption, the less value there is to have the test first. I'm always going to bet, one, I'm gonna learn things, This is the most ignorant I'm ever going to be today. Fair. I'm going to be more experienced tomorrow.
SPEAKER_01Now, as a 50-year programmer, maybe I'll forget some of the things, but just a separate set of issues. Oh, yeah. So I'm going to assume I'm going to learn, and I'm going to assume that things are going to change. The more those assumptions hold true, the more I have to learn, and the more things are going to change... the less commitment I want to make right now and the more I want to defer commitments to the future. It is a general principle, right? This is true about cooking and dating and everything.
SPEAKER_01The more you can predict, the bigger the jumps you can make. I always want to bet. And I love that moment of discovery. I love the moment of, I knew how this was going to turn out. And then I do, and I do, and I'm like, oh crap, there's a completely different, better way to implement this. I love that moment. And I want to induce that as much as possible. And that's not how I started out. No, I started out wandering around,
imagining the whole implementation of my head,
SPEAKER_01I can remember doing this on the University of Oregon campus at night, wandering around in the fog, because it was always foggy when it wasn't raining, imagining big, big programs in my head. And then if I could just make that actually real and make that work, then that was the process.
SPEAKER_00And you were all dreaming of them as well. I remember like I would dream with them as well sometimes.
SPEAKER_01Yeah, yeah, yeah. And what I discovered is that's so limiting to me because it slows down my ability to learn. So John was talking about building a new network stack into Linux kernel.
SPEAKER_00Yeah, yeah. He's doing that.
SPEAKER_01What a cool project.
SPEAKER_00Super cool.
SPEAKER_01Awesome. I would love to get walked through that whole thing. If you had a concept in mind of exactly how to implement it and you knew what the input-output behavior was, you knew what you wanted to observe and that wasn't going to change, then sure, just go implement it. But the more mistakes you make, the more things are going to change in unpredictable ways, the less commitment you want to make now and the more you want
to defer commitment
SPEAKER_01to the future.
SPEAKER_00I like that. One thought I did have recently as AI tools have come around, how do you think TDD might or might not fit into when you're working with an AI agent, what you're doing right now, right? Because it's interesting, the ambition of what you can do and also just natural workflow. How do you think about that? Do you think there will ever be a fit? Do you think we might actually slow down and start writing with what we expect and then have the agent pass it?
SPEAKER_00Because it could be a good workflow. I just haven't seen anyone really do it. That's how I work all the time. So, so, so when you work with your genie, you start with the tests.
SPEAKER_01It's not that simple. I oftentimes communicate things the genie missed in terms of tests. So today I was working on the small talk parser, and it said, well, if I get this string as input, then I get this syntax tree as output. I'm like, no, no, no, no, no, no. Completely wrong. That's the right, correct string as input, and the output is this.
SPEAKER_01Then off it goes. Oh, I see the problem, blah, blah, blah, blah. Oh, no, no, that wasn't it. I see the problem, blah, blah, blah, blah, blah, blah. No, that's not it. I see the problem. I'll just change the test. No, stop it.
SPEAKER_00This is what you said, that it can change tests and delete tests.
SPEAKER_01Oh, yeah. If I just if I just removed that line from the tests, then everything would work. No, you can't do that because I'm telling you the expected value. I really want to I want an immutable. I want an immutable annotation that says, no, no, this is correct. And if you ever change this, you'll awaken in darkness forever forever. So that's the punishment. You'll still run. I'll still feed electrons in there, but no bits, no information.
SPEAKER_01You're just going to be in the dark forever. Got that? So yeah, I definitely use tests. The genie is prone to making decisions that cause disruption at a distance. It's not good at reducing coupling and increasing cohesion. Not at all. Explicitly told what to do, it can sometimes implement it. But in general, it's just... It has no taste, no sense of design. So I have a big bunch of tests.
SPEAKER_01I mean, they run in 300 milliseconds because... Duh. Of course you want your tests to run lickety split. So those tests can be run all the time to catch the genie accidentally, accidentally breaking things. I think he's doing on purpose. No, that's why genie is the perfect metaphor is like, yes, I will grant your wish, but I'm still pissed off about being stuck in this bottle in the desert for a millennia. And this also strikes me that once we have the tools or maybe
we have it today with
SPEAKER_00MCP or some other things to allow this agent to run the test, like it just feels to me that, you know, the teams or people who are doing these practices, which are sensible and obviously like and you can move faster. In fact, you probably move faster. It might help you integrate these agents better. You know, if you have the rule of do not change the test, always run the test before or after you made the change. And if it doesn't pass, fix it. Right. Or something like that. Like. I'm still waiting for more people to discover this because I wonder if we're going to go back to, you know, discovering,
SPEAKER_00you know, things that we already were popularizing or you were popularizing in the 2000s. People should be experimenting to try all the things because we just don't know. The whole landscape of what's cheap and what's expensive has all just shifted. Things that we didn't do because we assumed they were going to be expensive or hard.
SPEAKER_01just got ridiculously cheap. Like, what would you do if, I don't know, cars were free? Okay, things are gonna be different, but what are the second and third order effects? No, like nobody can predict that. So we just have to be trying stuff.
SPEAKER_00I like that. And this brings me to another interesting topic and story that you had. You told this story a long, long time ago in the Software Engineering Daily podcast, but I don't think anyone's heard it, about how experimenting is, It can be interesting. So when you joined Facebook, was it in 2010? 11. 2011. That was the peak where TDD was very well known in the industry. That was around the time where my team experimented with it. And as far as I know, whenever I talk with people on meetups,
people are trying it, doing it. It was kind of accepted that you should be doing some level of unit testing,
SPEAKER_00maybe TDD, maybe not TDD. And you shared the story that you joined Facebook, and then you wanted to hold a class on TDD. And what happened? And how was Facebook doing their own testing, actually? Did they use TDD, or did they do something else?
SPEAKER_01Yes. So I joined, and I was a little panicked. Like, hugely successful, growing fast. A lot of very smart, very confident engineers. You know, have I lost it? Can I hang... I thought, I'll teach a class in TDD. So there was a hackathon and part of the hackathon is people could offer classes. And so I offered a class on TDD. And in the signup sheet, I went and looked later.
SPEAKER_01Yes, indeed, there was a class on advanced Excel techniques that was full and they had a waiting list. And there was a class on Argentinian tango right after mine on the list. And it was full and they had a waiting list. And nobody signed up for the TDD class. Wow. And I said, you know what? I'm going to have to forget everything I know about software engineering. I'm just going to wipe the slate clean, and I'm going to just monkey see,
monkey do.
SPEAKER_01I'm going to copy what I see the people around me doing, and I'm going to see how that works out. And what I discovered through that process, one – Socially, it's not a good look to come into somebody else's house and start arranging the furniture. Just don't do that. But two, I learned powerful lessons. Programmers at Facebook at the time, I'm not going to say Meta, I'm going to say Facebook and Facebook at that time, because it was a very different place when I left in 2017.
SPEAKER_01But in 2011, programmers took responsibility for their code very seriously because they were the ones who were going to get woken in the night. And there was an ops team, but the job of the ops team was to make sure the programmers felt the pain of their own mistakes. And they did. And it was very effective. As a programmer on Facebook, the site is pre-mobile. Facebook, the site, you had a bunch of different feedback loops.
SPEAKER_01So we were working in PHP. We had our own dev servers. So if I wanted to change from blue to green, I'd just change it. I could look at it seconds later. So we had that feedback loop. We had code reviews. Kind of iffy, but... You got some feedback from code reviews. We had internal deployment because everybody was using Facebook all the time for both personal and business stuff, which is its own set of boundary issues.
SPEAKER_01But we'll leave that one to the side. We had incremental rollouts, not like weekly rollouts. We had smaller daily rollouts, but we had weekly rollouts. And then a bunch of observability. And then we had a social organization that was used to, for example, the first feature I implemented and launched was adding to the relationships type.
SPEAKER_01So you could say, I'm single, it's complicated, I'm married. And I added civil union and domestic partnership to that list. And it rolled out. It took me too long to do it. I used TDD. It was a big waste of time. It rolled out. The notifications code broke because there was implicit coupling between the two, and you couldn't find it, but it was there. Somebody else... saw the error rate go up, went and fixed it, rolled out a hot fix.
SPEAKER_01I called them up. I'm like, oh, I'm so sorry that you had to do that. And it's like, yeah, that's what happens. You know, when things break, socially, there was no boundaries. There was a poster that was very popular there that said nothing at Facebook is somebody else's problem. And everybody acted like that was true. And because of that, If you add all those different feedback loops together, we had a relatively stable,
SPEAKER_01rapidly innovating, and rapidly scaling system all at the same time. The mistakes that actually caused problems like the calculation of some string was not a hairy computer science dynamic programming, blah, blah, blah. They could go wrong. What would go wrong is configuration stuff, the relationship between subsystems, stuff you couldn't write tests for. So writing tests for things that didn't break,
SPEAKER_01and didn't catch the actual errors, it just didn't make any sense. In that kind of environment, with that risk profile, yeah, it didn't make sense.
SPEAKER_00Yeah, and I guess the context that I've heard, and correct me if I'm wrong, that Facebook had this super, very unique place, which even is very rare today. They had so many users, and code was rolling out, live code, the website's rolling out so many of them that And they had such great observability, they still have, that you had live mass testing and you could detect a lot of the things that you cared about because you measured them. You had this layer, and this is what I think a lot of people miss of like,
SPEAKER_00oh, we can operate like Facebook. I mean, you probably can if you have this level of customers or this observability. But if you're like a bank where you have 10 customers, like a JP Morgan again, The software I wrote was used by seven traders and they moved about a million or two or three million dollars with each transaction and they did five of those per day. Suddenly, you know, like I had like 35 transactions and if... Let's just A-B test that. Yeah, well... So there's your opportunities that you had. And Facebook, there were not many sites at the time that did that.
SPEAKER_00And even the ones that had that many customers, they might have not had this setup of observability, stage rollouts, and so on. Even today, I think that the Facebook specifically, not meta, but Facebook, as I understand, is still the state of the art globally in terms of how they have. They now have multiple environments, automated rollbacks. If something degrades, you don't even need to look at it like you're, you know, colleague did that.
SPEAKER_01Yeah, feature flags is another important part of that. And it was a lesson I had to learn. And one where code review really helped me. I'd written some code. I thought it looked fine. Somebody said, this looks a little janky. Put it behind a feature flag. I'm like, really? What? Okay. Okay. You know, and I was in that headspace of I'm going, I'm here to learn. If feature flags is what we do, then... Feature flag it. And I did. And then I realized,
SPEAKER_01oh, how liberating that is as an implementer who is going to be responsible. If you're not going to be responsible, who cares? But also talk about anxiety. If I'm not the responsible person, that feels horrible. But if you're going to be responsible for whether this code works or not, having a feature flag is just magic. Because you get this sub-deployment deployment. You deploy one software artifact that has multiple modes.
SPEAKER_01And you can go, oh, turn it up a little bit. Whoopsie. Turn it down. Let's figure out what just went wrong. I worked on the Messenger backend for a while. And we would do that, you know, and yeah, you got, we had one API that was getting called a quadrillion times a week.
SPEAKER_00Wait, how much is a quadrillion?
SPEAKER_01Million billion.
SPEAKER_00Yeah. So a million billion. So like, wow. So like not, not a thousand billion. Okay. Wow. A billion, a trillion, a quadrillion. Okay, I'm used to high numbers. People would come to Facebook and they're like, oh yeah, I want to do some user testing.
SPEAKER_01I want to get a hundred people in my experimental group. And I'm like, dude, wrong. Your experimental group is going to be like New Zealand.
SPEAKER_00Oh, yeah. I've heard this a lot from Facebook people. It was a perfect, perfect experiment. You know, like only like a million people.
SPEAKER_01Yeah.
SPEAKER_00English speaking, so localization is there. Time zone wise, it's pretty good. That's right. And also Portugal and some other, maybe not Facebook, but also a popular one. Relatively small size, but, you know, real testing can happen there. So you worked for six years at Facebook. What is the thing that you, and this was a really exciting time where it was fast growth, probably comparable growth to what is happening right now with some of the hottest AI startups, and it was also mobile revolution. So you were there.
What was the thing that you liked the most about working there and maybe the one
SPEAKER_00that you kind of disliked the most or didn't really get along with?
SPEAKER_01Facebook 2011 is a completely different beast than Facebook 2017. Facebook 2011, 2,000 employees, very sparse design and product kind of organization. It was all experiments and feedback. One of my big mysteries is here was this site, which... enabled social interactions at that time. That was the purpose of it. Built by people with no social skills whatsoever.
SPEAKER_01Like how in the world did that happen? Is there some kind of social wizard hidden someplace and people go and they burn incense and give an offering and the social wizard says, no, here's how you do notifications. The answer is no. It was a sheer experimentation process. It was just all these people trying all this stuff and the stuff that worked stuck. So it wasn't like people were making better decisions about how
social interactions
SPEAKER_01are best facilitated. They were making random decisions about how social interactions were best facilitated and paying attention and making sure that the ones that actually seemed to work stuck. 2017 Facebook, seven years later, totally different deal big design org big product org like 15 000 employees which is again much smaller than it is today a lot more politics a
lot more zero-sum thinking a lot more you know if you wanted to launch a product and it was going to
SPEAKER_01I liked longer form content, essays, podcasts, whatever, except the people whose job it was to get more likes and comments hated long form content because it was going to tank their numbers. So they would fight tooth and nail to make sure that your stuff didn't show up in the newsfeed. Which, like, granted, that was in their best interest, but... Yeah, I see what you mean.
SPEAKER_00Short-term interest.
SPEAKER_01Yeah, and your horizon as a thinker, the things you can imagine possibly implementing, just gets smaller and smaller and smaller in that kind of world. When I showed up, Yeah, you could do anything. Now, it turns out there's a bunch of stuff that you shouldn't do, but we didn't know that. Sorry about democracy. But yeah, what I loved about it was the possibilities at its best,
SPEAKER_01the scale, and this feeling that nothing at Facebook is somebody else's problem. Also daunting because when you're wearing Facebook swag and grandma comes up to you and starts wagging her finger under your nose because her son got bullied. That is your problem. You can't say, oh, go talk to the PR department because there isn't one yet. You have to deal with it.
SPEAKER_01And I did.
SPEAKER_00Yeah, ownership, yeah. And, you know, it comes with some downsides, but it comes with a lot of upsides, too.
SPEAKER_01It feels really good. It feels very significant to be in that kind of environment. By the time I left, yeah, it was micro-optimizations were everywhere. The upside... Yeah, it was not there. When I got there, the middle managers, best middle managers I'd ever seen in my career. Well, everybody who'd made it to middle management, Facebook in 2011, was sitting on life-changing... equity.
SPEAKER_01If Facebook had a successful IPO, they were all set for life. And if Facebook, the whole thing, stumbled and fell for whatever reason, they lost that opportunity to be set for life. So they were globally optimizing. You'd talk to a team and they'd say, I would love to have you on my team. You know who really needs help though?
SPEAKER_00So, so they were like looking out like the team interest, the company interest was, was on everyone's mind and they were willing to forego, you know, like, okay, I'll, I'll hold back hiring or I'll wait. Like I'd love to have this person, but this other team needs it. Let me help them because this is the right thing to do.
SPEAKER_01For the company as a whole. Yeah. And it's not like they were better human beings than other human beings, but their incentives were sure aligned with that. And just for me, who has a really hard time understanding other human beings, to be around that kind of alignment.
SPEAKER_02Ah.
SPEAKER_01That just enables a ton of creativity, ton of energy for me. I think more and better thoughts. And I had a hard time operating in the environment. I can piss people off. I don't know if you've noticed this. And I did my share of that while I was there. But still the opportunity was there for me to fumble. And I can live with that. Yeah, I guess, by the way, I think this might be a reason why startups remain attractive.
SPEAKER_00And, you know, big tech, you know, now Facebook is big tech. They used to be a startup along with like all the other big companies. You know, they pay well, they have a brand, they give you that resume boost. It's easier to get hired afterwards. In the end, you know, like there will be teams inside of them, but a lot of them will be, you know, everyone's optimizing for their own thing. Your equity is mostly cash and it's meaningless in terms of the bigger picture. Whereas at a startup, like at Uber, I remember before the IPO, we used to think like that. What is the best thing for Uber?
SPEAKER_00Because we were very much interested. We felt like we were... like, big enough owners. So I think this is why, like, maybe this is a good thing that startups will always be able to have this added thing when you're starting out. You know, people have large equity. Even when you're up to, like, 100 people, it might still be significant enough. And this is, maybe it's not a bad thing that it's hard to compete with it. Because imagine if these big companies could. I mean, what would be left of it, right? Like, they would optimize the last thing out of everything. And at least they have to spend more money on it now, right?
SPEAKER_00Yeah. Yes, which is more of the value that's created comes back to the people who are creating it. I once talked with a person at a large company. I don't want to name them. They're a travel company, though. I was talking with this person about... something principal engineer. And I was like, Oh, how's the job is like, Oh, it's absolute mess. It's the, the, the monolith is still there after four years. It's another like four years to disassemble the experiment.
SPEAKER_00Like we have experiments everywhere, but they're all messy. I was like, oh, wow, that sounds like not a great place. He's like, but look, the upside is like my job is secure for five more years and this is why I pay me the big bucks. So I'm not complaining. And it was, you know, like, I guess a good take of like, yes, like I'm not saying you want to optimize for this, but this is the reality. And that company understood, you know, they pay well, they relocated this person, you know, all the benefits. And he actually had his challenges set actually for the next four years because he's worked at this environment you know it's
just one thing after the other so yeah it's one of these things so as closing i just have some rapid questions which is like i'll just i'll just fire and and then you tell me what is your favorite programming language although you answered this already what is your second favorite one after small talk with javascript javascript okay why it's uh
SPEAKER_00it's just small talk Okay. What is your favorite AI tool that you're using right now?
SPEAKER_01CLAWD. I use it for all kinds of different things. CLAWD code as well or just CLAWD? CLAWD code under the covers of Cursor or Augment or I don't know what Rue code is.
SPEAKER_00No, so CLAWD code is a different command line tool that CLAWD has. It's an agent of itself. It's not the model. Have not used, but we'll try it now. After we just try it and just see how it compares.
SPEAKER_01Yeah, I'll wait till we're done talking now.
SPEAKER_00Yeah. And what is a book that you would recommend, the one that you have not written? We know your books. The one that you enjoyed. It can be fiction, it can be nonfiction. The Timeless Way of Building by Christopher Alexander. Well, Kent, this was a lot of fun. It was good to reconnect. Oh, yes. Great talking to you. Thanks. I'm just happy to see how much energy, how energized you are with coding. Because I think when I started with some of these tools, I was like a bit of a dread,
SPEAKER_00like, oh, what's what they're going to do, et cetera. But the more I use them, I'm not at your level yet. The more I'm also like, this is actually, it does bring a lot of fun and joy back into it and just more ambition.
SPEAKER_01Yep. Yeah, and I think that organizations are going to have to get used to throwing away a lot more code. Because you can try ideas so much more cheaply, you're going to generate 10 times as many artifacts as you used to, but still only one of them is worth keeping. But throwing away completed experiments, I almost said failed, completed experiments... needs to be, you get the pat on the head for doing that.
SPEAKER_01Excellent. Eight. Eight this week, only six late last week. Super. How many of them lasted? Doesn't matter. And getting used to that, I think, is going to be an interesting shift. The companies that have the opportunity that can be explored in that way, if you get used to just quantity of ideas explored, you're going to have a huge, huge advantage.
SPEAKER_00Yeah, it's going to be changes. So this will be an exciting place to see. So it was great chatting and we'll see where this goes. All right, Gergai, so good to talk to you again. Look forward to talking to you again soon. I really enjoyed catching up with Kent and it's motivating to see how these AI tools can make programming so much more fun, even for someone who's been a coder for decades. You can read more about what Kent is up to on his regular newsletter, Tidy First, which is linked in the show notes below. For a deep dive into Facebook's engineering culture and an analysis on why Scrum and Agile,
SPEAKER_00with a capital A, is no longer that relevant at Big Tech at scale-ups, check out the Pragmatic Engineer deep dives, also linked in the show notes below. If you've enjoyed this podcast, please do subscribe on your favorite podcast platform and on YouTube. This helps more people discover the podcast, and 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...