96: Pete Hunt on Seven Years of Reconsidering Best Practices
To celebrate 7 years of React, we have a very special guest: Pete Hunt.
He’s the one who asked us to give React just 5 minutes, to reconsider our established frontend practices, and see if separation of technologies was serving us as well as we thought.
Pete tells us about the early days of React — it’s rocky community reception, Facebook’s struggle to create meaningful open source, and betting big on CommonJS and a little-known bundler named Webpack.
Featuring
Links
- Tom Occhino and Jordan Walke: JS Apps at Facebook — React.js announcement at JSConf 2013
- Vjeux
- Tom Occhino
- Jordan Walke
- Angular
- emberjs
- SproutCore
- Pete Hunt: React: Rethinking best practices — Pete’s landmark talk at JSConf EU 2013
- Facebook Open Source
- James Pearce
- Paul O'Shannessy
- webpack
- Backbone.js
- page.js
- TypeScript
- Closure Compiler
- TypeScript Compiler API
- ts-morph
- webassembly
- Twitter acquires anti-abuse technology provider Smyte
Sponsors
Infinite Red
In over your head with a React or React Native app? Infinite Red can help. They're React Native core contributors who've been designing, building and shipping apps for over 10 years. reactpodcast.infinite.red
Transcript
[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. First and foremost, a very happy birthday to our good friend, React. 7 years and you're still the king. To celebrate 7 years of React, we have a very special guest, Pete Hunt. He's the one who convinced all of us to give React just 5 minutes. To reconsider our established frontend practices and see if separation of technologies was serving us as well as we thought. Pete tells us about the early days of React, its rocky community reception, Facebook's struggle to create meaningful open source, and betting big on CommonJS and a little-known bundler named Webpack. Before we dive in, let me tell you about Infinite Red. It's always good to have a friend who knows a lot about the technology you're using, especially when that friend understands how hard it can be to learn something for the If you're building a React or React Native app, Infinite Red is that friend. They want to help you finish and fix that app that will change your life. They've compassionately taught tens of thousands of developers through open source and their annual React Native conference, Chain React. Get the help you need and 2 free tickets to Chain React in 2021 when you start a new project. Referrals count as well. Visit reactpodcast.infinite.red. And with their help, build a beautiful, functional app today. Pete Hunt, welcome to React Podcast.
[00:01:38] Pete Hunt: Hey, thanks for having me.
[00:01:40] Michael Chan: It's super good to have you on because, I mean, you- you are the person who got me into React. And I'm really excited to like kind of go back a little bit. You know, we're coming up on 6 years of React. And I just thought it'd be kind of fun to to go through a little bit of the history, like when React wasn't a foregone conclusion as like the main front-runner framework for the web. Um, and you're the perfect person to talk to. So, uh, how are you how are you doing right now? I know we're kind of like cooped up, but-
[00:02:12] Pete Hunt: Yeah, we're well, you know, other than the global pandemic, uh, everything's going great. Uh, but no, it looks like it's starting to starting to ease up a little bit. So I'm I'm cautiously optimistic.
[00:02:26] Michael Chan: Yeah, yeah.
[00:02:26] Pete Hunt: But uh I'm surviving. Fortunately, work uh work at a tech company, so I'm able to still work and still work and be somewhat productive. Yeah.
[00:02:34] Michael Chan: Absolutely. So I thought we'd dive into kind of the moment right after the announcement. So it's like May 2013, I think. And uh you know, uh Tomo and uh Jordan walk had like just announced to JSConf, kind of like the big JavaScript conference at the time, like that Facebook made a framework. And um I'm kind of curious, like kind of like right at that moment, like were you in the room? Were you close by? Were you like watching like remotely? How was that going?
[00:03:05] Pete Hunt: Yeah, so this is this is a funny story and this is um what, 6 years old at this point?
[00:03:13] Michael Chan: Yeah, almost exactly actually. Yeah, yeah.
[00:03:15] Pete Hunt: Yeah, um so I'm I'm I'm probably gonna my brain's gonna start inserting things that didn't happen or or emphasize certain things, but I'll I'll do my best to to give I'll give my account of it anyway. So so to to put this into context, um Facebook has a culture, or at least did back then, of like all-night hackathons and like working your working your butt off. And you know, I was in my my mid-20s at the time and and enjoyed kind of being a workaholic. And a lot of people that that were were um my coworkers were of like kind of a similar similar mindset. And so there wasn't an official React team, or or if there was, most of the people working on React were not a part of it. Um they were just kind of users of the the framework within Facebook that were really passionate about it. And so we all wanted to open source this thing. Um and so uh people like um Christopher Chedeau, who I had worked with really closely on the Photos team, Me and him were working together. Um, this guy, Michael Lumentz, uh, who was the designer at Instagram at the time, he actually designed the the React logo. And we were like, okay, we're we're gonna open source this thing at JSConf. Uh, Tom Oh and Jordan Walk, the creator of it, are are gonna give this keynote. Um, so we were back at home base. We didn't go to the conference.
[00:04:39] Michael Chan: Okay.
[00:04:40] Pete Hunt: And we were like doing the all night- the way I remember it was like an all night thing. Um, I think we we probably didn't stay up all night, but we were working late. Um. Getting everything set up. So make sure that the Google group is set up, make sure that the website is ready to deploy the instant that they say the word React and put the website on the screen, you know. Uh make sure that the the documentation is exciting and there's right marketing thing on there. And and we had a designer, like really good designer working with us, making a logo. It was just like, we and we were so excited about this. We had worked, we had been working with React for um for like a year at that point.
[00:05:14] Michael Chan: Yeah.
[00:05:15] Pete Hunt: And this was like, we're about to show warp drive to the world. And we're like, we're super excited about it. And so there's this thing that we put our heart and soul into. And if I remember correctly, like Tim Young um maybe was working on this as well, uh who I think at at some point became the manager of the React team or one of the teams that pairs with React. And so anyway, we're really excited about it. They're in Florida, um, and we're watching the livestream, and they go on, they say, um, hey, we've created this JavaScript framework called React. And everyone's like, okay. At this- at the time, you know, there were a million different-
[00:05:57] Michael Chan: Oh yeah.
[00:05:58] Pete Hunt: JavaScript frameworks. Knockout, uh, Angular, Backbone, Ember, um, Dojo.
[00:06:05] Michael Chan: I think just, just before, like, uh Like Twitter, just a couple months before Twitter announced Flight, maybe. It felt like everyone was gonna have like their own bespoke framework, like at this at this time in history.
[00:06:18] Pete Hunt: Yes, yes. It was like a Cambrian explosion of of all these different frameworks. And all these like- it was cool because there's like all these different ways to solve a problem. Yeah. And and so, you had some that were very like web-centric. Like Angular, for example, followed in like a long line of of um of templating languages that would like add magic attributes to the page to kind of add some dynamism. And then you had Backbone, which was kind of like uh taking the stuff that Apple was doing with key-value observation. Anyway, the the point is there's a lot of them, right? Uh and so they go and they announce this this framework and everyone's kind of like, okay, this is another framework. And then Jordan goes, and I think this was like his first and then last tech talk for like years. And he goes and he's like thought about this problem so deeply. He's a very smart guy, very thoughtful guy, very articulate person. And he goes and he's like talking about all this really interesting stuff. And then he shows XML in your JavaScript, like these like weird XML literals, these angle brackets. And the internet just like explodes. And just hates it. Um, and we're we're like kind of following along on Twitter. So you gotta imagine us back at HQ where we had just hit the button when he said it's called React. Uh, someone sent us a Facebook message that said, "Go live now." We hit the button and then we watched the tweets roll in and everybody's just trashing this.
[00:07:52] Michael Chan: Oh no.
[00:07:54] Pete Hunt: And we're like, "Oh, okay." That wasn't what we were expecting. It was just a very funny moment. Um, and, you know, I can get into what happened after that. But that's kind of the vibe that of uh of that evening.
[00:08:09] Michael Chan: That's brutal. So, so, it sounds like most of the hate was around JSX immediately. Is that kind of- is that pretty accurate?
[00:08:17] Pete Hunt: I mean, I think it's a number of things. Um, I mean, first of all, the— uh, yeah, I mean, people people wanted separation of concerns. This was like a real-
[00:08:28] Michael Chan: Yeah.
[00:08:29] Pete Hunt: Kind of complete different way of thinking about separation of concerns, and people didn't- weren't comfortable with that.
[00:08:36] Michael Chan: Yeah.
[00:08:36] Pete Hunt: I think there were some other factors at play too. I mean, this was before Facebook was kind of like this like ultra hated tech company, which it kind of is today. But, you know, it still didn't have a great open source reputation. Right. Like as a tech company, it was kind of like, oh, this really exciting tech startup that that um that people were, I think, were generally pretty supportive of as a business. But in the open source community, you know, we had thrown so much crap over the wall and abandoned it. So I think there were like a bunch of people that didn't really like Facebook Open Source. Sure. And also, I mean, think about like the way that I just described how we thought about it. Like we had warp drive and we were like sharing it with everyone. Like that's a little presumptuous, right? And I think probably people picked up on on On on the presumption.
[00:09:29] Michael Chan: Yeah, because it it if if I remember correctly, like at the time, like Angular had like a pretty like big head start in in the like the widespread adoption of a web framework. And Ember was like kind of picking up steam, but it wasn't nearly at the scale that like Angular was.
[00:09:48] Pete Hunt: Yeah, I mean, Angular um was and still has a enormous amount of traction.
[00:09:55] Michael Chan: Sure, yeah.
[00:09:55] Pete Hunt: But back then, I mean, it was- you would just go look at Google Trends and jQuery was highly popular, but then there was this hockey stick growth of Angular that was starting to dwarf everybody else.
[00:10:08] Michael Chan: Yeah, yeah.
[00:10:08] Pete Hunt: So that was definitely kind of the the the hotness back then.
[00:10:11] Michael Chan: Yeah. And it is such a like such a different concept than than you know like you said, there were so many different ideas, like like core concepts. And I think Angular was this kind of idea of how how can we augment HTML So that it could be like, you know, built for, you know, full-size programs. You know, and Ember was, I I I mean, it was kind of like the rails, I guess, of like, you know, it was just this kind of like pre-baked type of thing that you could just like start using and like start at the 40th floor and kind of like build up from there. And then React comes in with this like totally different concept of like, hey, we're giving you a component and that's it. And you're gonna write it in this thing that's not a template language. It's like not quite JavaScript, it's not quite HTML, it's this new thing. And it kind of felt like maybe too much, I guess. Like,
[00:11:01] Pete Hunt: yeah,
[00:11:01] Michael Chan: like this is too different than anything we've ever seen.
[00:11:04] Pete Hunt: So I I figure we're doing this podcast because you want to hear about the the olden days and and interesting tidbits of history that may be lost.
[00:11:12] Michael Chan: Yeah, yeah, yeah, yeah.
[00:11:13] Pete Hunt: Here's a really interesting one. Did you know that Facebook almost like Facebook acquired the company that that built SproutCore, which became Ember.js.
[00:11:23] Michael Chan: Oh, crazy.
[00:11:24] Pete Hunt: Yeah. Not a lot of people know that.
[00:11:26] Michael Chan: Wow.
[00:11:27] Pete Hunt: Isn't that weird?
[00:11:28] Michael Chan: That's wild. So like at what point in the like kind of like trajectory, because there was SproutCore forked to Ember and then was it like after after that or around that time?
[00:11:39] Pete Hunt: So, you know, I'm not, I don't really know that team personally and I don't have a ton of of like Ember or SproutCore insider info.
[00:11:48] Michael Chan: Yeah.
[00:11:49] Pete Hunt: But from what I can tell, it was one of those acquisitions. Where like some people came over and other people didn't. And I think the SproutCore team, it looked to me like it split in half.
[00:11:57] Michael Chan: Yeah.
[00:11:58] Pete Hunt: And half of them came to Facebook to work on other stuff, and half of them, I think, kind of became the Ember team. But there was all this like technology that that team had built that was pretty, um, yeah, pretty impressive.
[00:12:10] Michael Chan: Now that was actually used pretty heavily, if I remember correctly, for, um, MobileMe, which eventually became iCloud.
[00:12:19] Pete Hunt: I think so, yeah.
[00:12:20] Michael Chan: Yeah, crazy. So wild, like how many how many like overlapping stories there were at the time. So um so you have that that moment of defeat, you like press the go button, you think it's gonna be like amazing, the world's gonna get it immediately. Maybe you have a little bit of hubris kind of like going into it. You kind of like kind of get smacked around a little bit on Twitter. Like what do things look like like right after that? Like everyone regroups, like they come back to headquarters and you're like, What the hell happened?
[00:12:47] Pete Hunt: Well, um, I mean, it's, it's definitely mixed emotions. Um, so, you know, on the one hand, we were, we were definitely disappointed. Um, we, we, we thought that this was gonna be something that people really loved, and at least from where we were back, like, we weren't- we didn't go to the conference party and talk to people and stuff, but just the public reaction to it was not like particularly interesting. It was like, oh, these guys don't understand separation of concerns, uh, and then let's talk about other things. You know, it wasn't like- it didn't like even create like an interesting dialogue.
[00:13:24] Michael Chan: Yeah.
[00:13:25] Pete Hunt: So that was- that was kind of a bummer. But remember also at the time, like, Facebook was the type of place that had- it literally had like pirate flags on the wall and stuff like that. And we had just come off of like a huge war with Google over Google+ and, you know, feeling like we had just defeated the evil empire and we were like the young upstart start rebels or or small upstart rebels. Um, I mean, it was a different world, right?
[00:13:52] Michael Chan: Sure, yeah.
[00:13:53] Pete Hunt: And uh and so the types of people working on this stuff get motivated, um, when when people kind of hate their thing or or or threaten it. So, so, you know, it was it was definitely like weirdly motivating, if that makes any sense.
[00:14:09] Michael Chan: Yeah, yeah. Well, I remember like this kind of feeling of, you know, seeing it on Hacker News, everyone kind of like having the same complaint about it. And like even me, admittedly, I I saw it and right on the heels of, you know, Twitter's flight, I just kind of felt like, oh, everyone has to make their own framework. Like this is just the world that we live in. And I kind of had- I carried that opinion with me until your talk, I think it was a few months after that. It was like October at JSConf EU. And you kind of like emerged as like the React apologist, maybe. If that's a good way to put it. Like, and so, I'm kind of curious, like what- like what it went into, like went into that talk and kind of um the kind of like defense of React at that conference.
[00:14:57] Pete Hunt: So, the way I remember it was I was I was pretty disappointed And I was kind of like, remember I was early in my career. I didn't, I was still pretty stupid, um, and not wise at all. But I was kind of like, uh, you know, I'm clearly, we threw a ton out there in this one talk.
[00:15:18] Michael Chan: Yeah.
[00:15:18] Pete Hunt: And it was like way too much for like, like it, it was just, we, there was a lot that was thrown out there all at once.
[00:15:25] Michael Chan: Yep.
[00:15:26] Pete Hunt: Number one. Number 2, uh we didn't do a good job of like meeting people where they were. Um and so I think that's that was what's really important. Like it wasn't about, you know, HTML and your JavaScript. It was like you didn't like we didn't convince people that we looked at the world in the same way that they did, or like at least understood their point of view. Um so I you know I I thought that that was that was a little bit of a disappointment. But the way that it actually kind of came together was, you know, I- in the kind of weeks after that, there was, um, a group of us that were really leaned into the community. Um, again, I'm thinking about like me and and Christopher Chedeau specifically.
[00:16:12] Michael Chan: Yeah.
[00:16:12] Pete Hunt: Uh, we would go on IRC in all hours of the day and night and reply to people. Um, and that was actually really important because, uh, in a lot of our our kind of early adopters were in Europe. And so we would answer a lot of their questions and go on Stack Overflow and answer the questions and go build a binding to RequireJS or whatever the tool is that people wanted a binding to. Yeah. And we got really good at like answering people's questions and understanding their concerns, and we realized like there was just a there's this whole lineage of how Facebook thought about building UIs that was pretty diverged from how the rest of the world built them. And we had to like close that gap. And so we started like writing the documentation to address that. And we actually like pulled JSX out of the documentation because we said, hey, we don't want you to focus on that. We want you to focus on like the the you know your UI being a function of state.
[00:17:11] Michael Chan: Sure.
[00:17:11] Pete Hunt: Basically, that that is the real interesting piece. And eventually I was sitting next to Tomo and I remember this vividly, um probably one of the most important moments of my career. I was just sitting there and Tomo was like basically exasperated. He's like, "I really don't want to do this stupid keynote at this stupid conference." Like, 'cause I remember like the last time he did one of these keynotes, he basically got booed off the stage.
[00:17:36] Michael Chan: Yeah, yeah.
[00:17:37] Pete Hunt: He's like, "We're a sponsor and so we have to do a keynote." And like, like, you know, that's like a thing they gave us, an opportunity to give us. I was like, I literally overheard him, I was like, I'll do it. He's like, all right, fine, do it. I don't care.
[00:17:49] Michael Chan: Nice. Had you given conference talks at like up to that point, or was this uh one of your first?
[00:17:56] Pete Hunt: I had given one or two talks at like a college.
[00:18:01] Michael Chan: Oh, okay.
[00:18:02] Pete Hunt: As part of like college recruiting.
[00:18:03] Michael Chan: Wow.
[00:18:04] Pete Hunt: Here's like how PHP works, you know, that kind of thing.
[00:18:08] Michael Chan: That's amazing, because I I mean, for your first like I guess like, like global scale conference. I mean, that's quite a talk. And so we're talking about, um-
[00:18:17] Pete Hunt: The one at JSConf Europe.
[00:18:19] Michael Chan: Yeah. Rethinking, uh, best practices. And, uh, I mean, I was just looking at it. It has like, we had talked about it on Twitter and so many people like myself included, like that was the talk that got us to like, like, like it clicked during that talk. I remember, I remember specifically it was like, uh, I think you gave it in like, you know, October, it finally came out like online. And then, um, I was, I had some chores to do in my garage and I was like, ah, like, well, I'm out here. I might as well, like, you know, hear what this React thing is about. Like, give it a fair shake. And I just remember, like, I got nothing done during that time in the garage. And I was just like, I get it. Like, like it took me this talk, but like, I get it. Now, all of it is so well, like, spoken and well thought through. And it's, it's obvious that you had kind of gotten a lot of feedback from the community. What did creating that talk look like and what were your goals?
[00:19:12] Pete Hunt: Yep. So that- first of all, thanks. Uh, that's- it's a really nice compliment. Um, it's definitely nicer than the YouTube comments about my voice being raspy and get this guy a glass of water. It's like I was so jet-lagged. I've never spoken in front of that many people before. Yeah. Okay. So the main thing was there was all these cool things about React. That that I thought were great. And people just had to get over the JSX thing. Yep. So that that was kind of, I I guess, the the core thesis of it. Um, but really, I was I kind of came to the conclusion that I I wanted to approach it like the problem backwards. So a lot of times when people do talks, they'll show you how to do Hello World. And they'll make it really easy for you to get started. Right?
[00:20:02] Michael Chan: Yeah.
[00:20:02] Pete Hunt: And that's pretty much what the React talk did. You built a Hello World, the original one, built a Hello World component and like people couldn't get past the the JSX thing.
[00:20:11] Michael Chan: Yeah.
[00:20:12] Pete Hunt: And so instead I was like, let's let's make a talk where we just focus on making people care. Like let's have them come away from this, not knowing how to build an app, but just saying, oh, this is interesting. This is worth paying attention to. I'm gonna go. Like, go to the website and just check it out.
[00:20:28] Michael Chan: Yeah.
[00:20:29] Pete Hunt: And like, let's convince the community that maybe we're not dumb. Maybe like, this is just a- this might be a very different way of thinking about it, and it might not work for everybody, but at least it was like well thought through, and this is not some, you know, bad project or anything.
[00:20:44] Michael Chan: Interesting. Now I feel like there were so many like amazing takeaways that really like kind of set the foundation for like what it was that you were trying to like communicate. Um and like even to the point of, you know, talking about like components versus templates. Like the idea that that our whole concept as an industry of separation of concerns was around separation of technologies, not like actual concerns. And I remember that sticking with me is like, I guess, unique among the frameworks. Because I think that frameworks were getting more and more paternal. You know, like, hey, you don't know how to structure your app, so we're gonna take care of the hard work for you. And then you just put your codes in the edges and then, you know, this big machine's gonna take care of it for you. And the thing that really felt, I guess, empowering about your talk in React was that that notion of like, you're you're the domain expert. Like, you're a developer. We trust you to shoot yourself in the foot if that's what you want to do. But we're giving you the tools to figure out what your own separation of concerns are, not just like the boundaries between technologies. How did that kind of- I guess you mentioned this being part of the history of like Facebook engineering up to that that point. Like how does this concept kind of like tie into what you were doing before React?
[00:22:08] Pete Hunt: Yeah, that's a that's an interesting question. And there's there's a bunch of ways that you can go about that, but I think I think there's a couple of things. First first of all, and and you know I don't I don't work at Facebook anymore. I haven't worked there for a long time.
[00:22:23] Michael Chan: Sure.
[00:22:24] Pete Hunt: Uh I still hold a little bit of stock, but um and I still have a lot of friends that work there, um but I'm I'm generally like a big fan of of Facebook and I I really enjoyed my time there.
[00:22:33] Michael Chan: Yeah.
[00:22:34] Pete Hunt: Um and and so I you know taking-
[00:22:37] Michael Chan: Well, you were part of the- Part of the engineering before like the Facebook release. And so-
[00:22:42] Pete Hunt: Yeah, I mean, I was I was there for a bunch of really critical things early in my career. And I I don't know, I just, it was it was a great place to be, um, filled with great people. So, you know, some of some of what I say might like come off like a little overly positive or whatever, but it's how I I really feel about it. So what was I I saying? So so there was a couple of things that that came together. Uh, first of all, Facebook was a product company, and uh, it was a startup engaged in a very difficult battle in a number of different dimensions. It was it was fighting Google for Google+. Um, it was trying to figure out revenue, uh, it was because it was about to IPO, and so trying to figure out, hey, do we sell ads? Do we sell Zynga coins? Like, how does this thing make money? And like every week our metrics were getting worse, uh at least on photos, because people were buying smartphones and they were, they were moving to use our pretty early iOS or Android app or mobile web or BlackBerry app. And uh they weren't uploading photos as much, they weren't like using News Feed as much. We didn't like have ads on mobile. And so the demands being asked of engineering were actually quite high, and they're coming from Mark Zuckerberg, who's got a very particular vision, and you can't really like hide behind a committee. Like, he's like, get this thing done.
[00:24:08] Michael Chan: Yeah.
[00:24:08] Pete Hunt: And like, I've got high standards, go. So, so there's, there's one, one aspect of it, which is like, we got- we don't have time to like architecture astronaut anything. Like, we're- they built the site on like PHP and MySQL, right? Like, it's very pragmatic type of place. Um, and so it's pretty rare to see something like, it's like a science project come out of a place like that at the time. So it was very pragmatic. So it had a lot of escape hatches in there. Like it didn't have to take over the whole page. It didn't, you know, you could put an old legacy code inside of React. You could put React inside a legacy code. And then also the people that were around it, we had this combination of like, um, web-oriented people and more like CS-oriented people. Not that web people aren't CS-oriented, but like-
[00:24:53] Michael Chan: Sure.
[00:24:54] Pete Hunt: You had people like Tom Okino who had worked on MooTools and knew kind of everything there was to know about JavaScript at the time. And then you had some people come in kind of fresh, like Jordan, like me, with CS backgrounds and not really knowing much about web development. And it created this, you know, interesting mix where we're like, hey, you know, like like somebody would say, hey, like shouldn't React have a templating layer? And Jordan would be like, that doesn't make any sense. Why would we do that? You know what I mean? Like no other UI framework frameworks work like that except for the web. So.
[00:25:29] Michael Chan: Yeah, yeah, yeah. Yeah, and it's kind of I think this plays to some of the things that you talked about in um either that talk or a later talk where you're talking about the the virtual DOM and how it really more more than a web framework, it kind of modeled the way that like Doom the the Doom 3 engine worked. It looked it was a lot more like a gaming engine uh than it was like a web framework.
[00:25:52] Pete Hunt: Yeah. So that was— I had been reading um the— uh I forgot the name of the author, but he he writes these these breakdowns of game engines. And I had worked a little bit on a game engine a long time ago. And I was like, oh, there's a bunch of interesting parallels here. And and Jordan was like, oh, yeah, I thought of all that stuff already. Um so so you know, Jordan back in 2011 or 2010 maybe was like, oh yeah, this thing's gonna run on native and it's- and we're gonna have a bridge and it's gonna be called React Native and it's gonna be, you know. So he
[00:26:23] Michael Chan: just laid out the whole future, like 10 years of the future just in his head.
[00:26:28] Pete Hunt: Yeah, yeah, pretty much. He had laid out a lot of this stuff. So, um, he was- he was a very smart guy. But so the- one of the, the big concerns within Facebook, and once you got over And we we we managed to get people like online, like on Reddit and stuff, oh like to this point as well. And internally, a lot of people's concern with React was um not the JavaScript in your or the HTML in your JavaScript thing, but is this thing gonna be fast enough? Like what is the performance ceiling? And so we had to make a lot of- we had to put those concerns at ease. And because the reality is for 90% of apps, React makes the right trade-off, right?
[00:27:11] Michael Chan: Right.
[00:27:11] Pete Hunt: And there's a 10% where it doesn't, and in that case you use one of the escape hatches and and do it whatever the right way is. But we had to convince people that like for 90% of apps it works. And um we had to convince people, hey, we didn't just like create this architecture out of nowhere. You know, you can look around and see examples of of of similar approaches all over the place. And one place where it's really easy for you to read about it is the Doom 3 engine.
[00:27:37] Michael Chan: Interesting.
[00:27:37] Pete Hunt: So a lot of people, I think, misinterpreted that or retroactively kind of misinterpreted it years later and say, hey, React was going around telling people the DOM was slow and the virtual DOM makes the DOM faster. And it's not what I said. Um, like, React is like any abstraction, it adds a little bit of, uh, indirection, which will reduce performance to some amount. But it's you're much more likely to go on a happy path uh when you're when you're using like a virtual DOM system uh than when you're doing manual DOM mutations. That was the point.
[00:28:09] Michael Chan: Yeah, yeah. I'm interested. This is a little bit of a tangent, but I'm kind of curious, like through this process of trying to communicate something, like trying to like learn what your audience wants and kind of like speak to that. It seems like you've had a lot of moments where you'll say something and then it gets interpreted or like, you know, fixated on in a way that you didn't anticipate. And I'm kind of curious, like, what have you learned about messaging from this process of, you know, like, you know, between, you know, JSX or like, you know, the the the comment about the DOM being slow, you know, all of these things that kind of like come back to bite you in the ass. Is that inevitable or is there a way to like curtail some of the the uh irritation that comes back at you?
[00:28:54] Pete Hunt: Well, it's it's a complicated question and I think the short answer is it's inevitable. I I think the the way you get better at it is, first of all, you don't blame other people for hearing it wrong. It's like you blame yourself for saying it wrong.
[00:29:09] Michael Chan: Sure.
[00:29:10] Pete Hunt: Even if they heard it wrong, you take the attitude that you said it wrong, uh you're you're just gonna get better results. So You know, one one approach could be like, "Oh, like, we're Facebook, we're so much smarter than everyone else, and like these these idiots at JSConf don't know anything." That's like one approach someone could take, but I don't think that would be— you know, I don't think that's correct, number one, and I don't think that would lead to a successful uh you know framework, number two. Instead, saying, "Hey, maybe we didn't meet people where they were. Maybe we don't understand their concerns. Maybe actually the audience of web developers is pretty big and pretty diverse." And we have to actually like pick and choose which segments we want to talk to. Yeah. And so that's that's kind of another thing that I learned. Um so you know like I know it's such a cliché to like talk about empathy on like tech podcasts, but like it's it's actually a really powerful tool for refining your communication. Like if you can't empathize with the person you're talking to, like you're not gonna be able to convince them that they should try your thing.
[00:30:12] Michael Chan: Yeah, yeah. Well, I think that's something that- I think I think it's something we all face, right? Because there is that that that feeling inside of, you know, whether or not you've been doing this for, you know, like 5 years or like 20 years, you kind of feel like, I came up with this thing because I know my domain like really well. And so like you really need to like trust me. And um it like like it's a hard balance, right? Because sometimes, like a lot of times, you do know a problem better than somebody else. But communicating that and like having that empathy is what allows you to kind of like get on that same track instead of just people writing you off for like, oh, well, you know, like you do this thing that we don't like by putting your templates inside of JavaScript. So, like, see, we're not interested.
[00:30:54] Pete Hunt: Yeah, yeah. Uh, that's that's exactly right.
[00:30:58] Michael Chan: So, what is the- so, what did the team kind of like- how did the team start to develop? Because you mentioned it kind of like started from this hackathon. You had this idea. You showed it off. And then it seemed like maybe the the team around React and kind of Facebook's open source started to maybe develop from the core of like React getting popular.
[00:31:18] Pete Hunt: Yeah. I mean, like like anything, I I think this is a classic example of a bunch of people that did a bunch of things to to create opportunities to get lucky and then got lucky. So, you know, at like at the time, It was like, it was good technology. There were a bunch of passionate users of it, um, me included. I was like the first external user of it at Facebook, um, besides like Jordan, basically, I think. Yeah. Maybe I was the second. And I ended up contributing a ton of code to the project, um, as as a result of that, built, you know, a bunch of stuff for it. Um, so I'm not just, I'm not like a dev evangelist. I was an engineer on the on the team.
[00:31:58] Michael Chan: Yeah.
[00:31:59] Pete Hunt: Uh all of us were really passionate about it because we had written code before and uh or written front ends front ends before that were a huge pain. And then React came and saved us a bunch of pain.
[00:32:11] Michael Chan: Yeah.
[00:32:12] Pete Hunt: And we were like, oh boy, we really want to be able to use this at our next jobs, or um we really think that people will will really benefit a lot from this. So we wanted we wanted to open source it. Um Facebook did not want to open source it. Because anytime you're open sourcing IP, there's risk and lawyers kind of will default. They'll do their job of saying no. And then as engineers, we do our job of saying, no, no, the answer is not no. The answer is yes, but with a couple of strings attached. So what are the strings attached? Um, and and so through the heroic efforts of of Tom Okino and probably other people that I don't know, we were able to get approved um to open source it. And the lawyers went over my talk, by the way, and like, if you notice some weird phrasings of things in that talk, it's because I'm not allowed to say certain words. Um, I think you're like, render, you're not supposed to say.
[00:33:09] Michael Chan: No way, render?
[00:33:11] Pete Hunt: Yeah, there was something like that. Uh, I think it was like, I said the word representation a lot, which was a stand-in for something else. And I don't remember what that was.
[00:33:21] Michael Chan: Fascinating. Yeah. Fascinating. Yeah. Yeah. Like a rep- I think I remember like a representation of the DOM, uh, or, or something like that.
[00:33:28] Pete Hunt: Yeah. I think we wanted to say like a mock DOM or something, but we couldn't say that for some reason.
[00:33:33] Michael Chan: Yeah.
[00:33:33] Pete Hunt: Anyway, whatever. We, we got to a, a solution that we were happy with and legal was happy with. So.
[00:33:38] Michael Chan: Man, that's so wild. Now I remember, now that you mentioned, uh, legal, like, I feel like there was this constant battle about the like the open source licensing of React compared to other frameworks. Um, and I know that you were like involved in a lot of those discussions, but this was this was probably like one of the next big hurdles for React to overcome in in community adoption. What, like, what was the licensing like at the time? Like it's since been MIT, but um, what was licensing at the time? Was it like BSD clause?
[00:34:15] Pete Hunt: Yeah, so just to be clear, I left Facebook at this point, um, and so I was I was on the outside, um, which means I don't have a confidentiality agreement about this, so there's no confidentiality to break, um, because I don't know any insider info. But uh what it was at the time was it was a BSD license, which is generally considered like a nice open source license, uh, but it had this patents clause attached to it. Attached to it, um, where basically, from what I can tell, Facebook was in some patent fight with some other company or litigation.
[00:34:51] Michael Chan: Sure.
[00:34:51] Pete Hunt: Um, and they, you know, a lot of times, um, you know, if you if you don't defend your patent, if you don't actively defend your patent, um, you lose it effectively. Like, right, because if if then you go after another company, say, hey, you infringed my patent, the other company will say, "Hey, you didn't like go after any of these other people for infringing your patent, so like why are you singling me out?"
[00:35:11] Michael Chan: Sure.
[00:35:11] Pete Hunt: It's kind of the way the patent system works. And um not that that's like a good thing, it's just kind of like how it works. Um
[00:35:19] Michael Chan: yeah.
[00:35:19] Pete Hunt: And so from what I can tell, they were in a slap fight with somebody and um they wanted to make sure that they didn't accidentally invalidate some patent.
[00:35:27] Michael Chan: Fascinating. It's fascinating to me like how much goes into— like I think Even, you know, in the 7 years since, you know, React became popular, I feel like there was a- there was also kind of like a big uprising of people open sourcing things. You know, the component model made it so easy to share code that like a lot of people kind of like jumped into open source for the very first time. They're like, hey, I got this component that does this tiny little thing. And, you know, a lot of people were joining that conversation. And um, I felt like a lot of the industry was kind of like figuring this out at that time and like how hard it is for a company like Facebook to actually like just like decide to open source something like, you know, whoever at midnight, you know, just pushing code up to GitHub uh decide-
[00:36:12] Pete Hunt: Yeah, you know how I how I said we got lucky? Um, a couple of things came together at the exact same time. There was a brand new open source office or team that started at Facebook with this new guy, James Pierce, who did a ton of work to to make that happen. Paulo Shanacy was the uh the open source maintainer for a long time as well. And so they had like all these tooling and dashboards to be able to have like SLAs on pull requests. And so there were like alarms that would go off if pull requests got stale.
[00:36:42] Michael Chan: Oh, wow.
[00:36:43] Pete Hunt: Um, and you know, just the existence of that office or of that that team, uh, you know, made helped make the case for open sourcing this and and streamlined a lot of that. Uh, another thing was like Node.js, CommonJS module specification, npm. These were all things that were starting to really take on. And one of the things that a lot of people forget is that when we launched React, there were like a bunch of competing module specifications. There was like- there was AMD, there was UMD, there was CommonJS, there there was like I don't know if it was a module specification, but there was like a thing called Component, there was a thing called like Bower. Well, I guess people still know Bower, but um and we picked, we we just went all in on CommonJS because that was the one that we knew and we liked. And it it was actually different than the the module system that Facebook used internally. And uh I I think we just kind of picked the, we bet on the right horse, so to speak.
[00:37:44] Michael Chan: Yeah.
[00:37:44] Pete Hunt: Another thing was Like, we were building Instagram.com and we found this random open source project called Webpack and we were like, all right, let's use this thing. And uh and this guy, these these two engineers, um Jonas Gephart and uh um Nick Thompson, who were report- I I kind of became a manager at that point and they were reporting to me and and we we took this random open source project called Webpack. And we like made it work with React. And then we just kind of started recommending it to people as like, hey, here's how Instagram does it. And then Webpack happened to be really good. And so so like, do you see what I mean about like how there was like all this stuff coming together at once?
[00:38:28] Michael Chan: Yeah, yeah, it it really does. Like it it felt like that was like a moment in in history, right? Like like so many things were happening and so many like I feel like it was really important, you know, that the piece that React played in that too, to like be able to share components, um to share this like really tiny piece of like UI code coming together with, you know, Webpack, a way to be able to like bundle all of that together for the first time and kind of speak between the disparate module systems that no one had been able to figure out up to that point, like a standard. Like it's it's freaking nuts, like how much happened like in that year of like 2013, 2014, how many things had to come together for the whole community to to come up?
[00:39:13] Pete Hunt: Yeah, it's crazy. Like by 2015, kind of like a lot of the main tools that people use were established. And then like 2015 was like ES6, like TypeScript, and and then we're today, right? Like like there was just a very short period of time when just everything kind of started to taken off.
[00:39:33] Michael Chan: It is crazy. Like it it does feel like things- yeah, there was that like kind of like 18-month window maybe. And like ever since then, we've been kind of like, you know, making the tools like a little bit better. There's like a couple competitors in like, you know, the the the bundling space or, you know, whatnot. But, you know, we have the modules. And React kind of like took off. TypeScript just like leapt ahead of anything else in that space. And um That kind of feels like, you know, with the exception of the the data layer, you know, with you know GraphQL and all the things that were happening in there, kind of like we've been in that space for about 5 or 6 years.
[00:40:10] Pete Hunt: Yeah, yeah, it's it's interesting. Um, it's it's it's really interesting to reflect upon.
[00:40:17] Michael Chan: Yeah.
[00:40:18] Pete Hunt: Um, because I think at um at this point, so so jQuery was released in 2006 and React was released in 2013.
[00:40:27] Michael Chan: Yeah.
[00:40:27] Pete Hunt: And so, at at at this point, we're about like equidistant from- so so like the React killer should be coming out right around now by my math.
[00:40:36] Michael Chan: Yeah, yeah, yeah. If something's gonna happen, it's happening like, you know, this year or next year.
[00:40:42] Pete Hunt: But but I don't I don't see one right now, actually.
[00:40:45] Michael Chan: I'm kind of curious, like, did you- like, as you were building this, you know, obviously you believe in the thing that you're building at the time. And it you you you do the best to solve the problem at hand, right? And so, you knew this worked at Facebook and it could work for other people. But did you have like that expectation or that that thought or that belief that this could be like effectively like the de facto component model that people want to use, you know, for creating web applications?
[00:41:13] Pete Hunt: So, I'll I'll answer that in two ways. At some point early on, I said when this is baked into the platform, that's when we'll know that we like we did our job. And when you see like SwiftUI, which borrows a ton from React, um, you know, I I was I was so happy to see SwiftUI come out because I was like, oh, it's finally been baked into the platform. Like we like this is a, you know, the mark has been left on the world, I think.
[00:41:42] Michael Chan: Yeah.
[00:41:42] Pete Hunt: And so I that's that's to me when I said, okay, finally, like this thing is is not just a a trendy way to build apps. It's it's it's kind of a uh paradigm shift or or whatever. But that that's one thing. I I mean the other thing was was like at the time though, like there was that thought, but really this was, hey, this technology is really cool, it helped me out a lot.
[00:42:06] Michael Chan: Yeah.
[00:42:06] Pete Hunt: Let's go share it with everybody. Let's go. And then we just got in the the mode of listening to people's concerns and fixing them. And rinsing and repeating over and over again.
[00:42:16] Michael Chan: Yeah. Now I know a big, um, kind of testbed for you was re- or building Instagram.com. And this was kind of, I think you've mentioned in a couple talks that like, at least at the time, it was just one big React component. You kind of like took it as far as you could with like, you know, React and, uh, and, uh, Webpack. What was that process like kind of exploring these two kind of like newish technologies to like build out a high-profile web application kind of like for the first time?
[00:42:46] Pete Hunt: In terms of React and Webpack?
[00:42:49] Michael Chan: Yeah. Like did you feel like I guess some like additional pressure or like strain to really like kind of like prove these things? Um or were you just kind of like having fun, excited to use these two things that you thought were like just really the future of the web?
[00:43:03] Pete Hunt: Yeah. So here here's another small world thing. One of the other engineers on the Instagram team was this guy Ben Neumann, who now works on- who then eventually left Facebook, went to work at Meteor, now works on Apollo. So, and and actually, like, the the first bundler was- I had written a hacky Python script to take the modules out of Facebook like run a bunch of regular expressions, turn them into CommonJS modules, and then concatenate them into like JavaScript bundles and then host them on uh on instagram.com. And then Ben came in and and started like introducing, um I think he introduced RequireJS or something like that. Um and and started kind of like, you know, taking this previously hacky like Python script and making uh making it better. And then eventually. And then once the team grew a little bit, we we moved it over to Webpack, uh and then a lot of our bundling problems just kind of went away, which was which was cool. But yeah, I mean, like we built— Instagram.com was the first single-page app. And so before that, things like client-side routing, you know, that was that was new territory. Global state, which previously um was delegated to a legacy system at Facebook.
[00:44:26] Michael Chan: Yeah.
[00:44:27] Pete Hunt: You know, how how would you do that in a React-first kind of environment? And um actually, what we did was we said, okay, we're gonna have our models in Backbone, and then we're gonna have our components subscribe to the the Backbone models. And it actually kind of worked for a while. Uh but eventually, we just realized, hey, we don't really need these Backbone models. Let's just kind of hoist the state into the root component. We're gonna have one component, like, per page. Um we're gonna have a little client-side- what was it that we used? Like, did we use Page.js, maybe?
[00:44:58] Michael Chan: Okay.
[00:44:59] Pete Hunt: Some some client-side router. And then we just had all the state in like the top-level component. It actually worked for a while.
[00:45:08] Michael Chan: Yeah. I I remember like one of the first uh things we did, it was it was pretty like a fairly complex, like kind of isolated problem. And having all the state in your root component, like totally I think that made me a believer about React. Because I was like, you know, this feels kind of like like naughty and like messy, I guess, maybe. But like it works. I know where the data is, where it's coming from, where it's going. And like that feels great. At the end of the day, I can fix my bugs and like sleep well at night.
[00:45:35] Pete Hunt: I know when I poke this, that thing happens. And every time I poke this, that thing reliably happens. That's all we really want, right?
[00:45:45] Michael Chan: Yeah, yeah. I felt like that was one of My favorite analogies of yours in in in um in Rethinking Best Practices was talking about how this is a lot like a server, right? Like and it's gotten a little bit more complicated since. But like the idea that like you make a request and whatever's true at that time, that's what you're gonna that's what you're gonna see. And you didn't have this kind of notion of time that you had to deal with. Which like, well, how many times has the person clicked uh uh increment. Like, and, uh, you know, is, is that page fresh? Or, you know, did we release code between, you know, the time that they clicked it the last time and today?
[00:46:23] Pete Hunt: Yeah, it makes so- it just, it simplified so many things, especially if you were building complicated apps back then. You know, once you built your first kind of- you, you wouldn't really get React in like to-do MVC, but once you went like a little beyond that, you were like, oh man, this is great, I'm never going back.
[00:46:42] Michael Chan: Yeah. Yeah. Now I know that React's changed a lot, um, since that release almost like 7 years ago. I'm kind of curious, um, I mean, obviously you were heavily involved in the design of the component model of the time. Uh, how do you feel about like how things have come? Like, do you feel a sense of nostalgia about like that first component model with like, you know, getInitialState and all of those, uh, methods?
[00:47:08] Pete Hunt: Oh yeah. Well, things are mostly better now. Like the fact that, like, so React was always designed to be statically typeable by something like TypeScript or Flow or Google Closure Compiler advanced mode. So, and that I think was one of the things that back then people didn't really care about, like so-called stringly typed uh systems. Yep. Were just kind of like, like normal, 'cause people weren't really using type checkers.
[00:47:38] Michael Chan: Yeah.
[00:47:38] Pete Hunt: So React was a little ahead of the time there. Uh, mixins on, on, um, like React classes really did suck. They were really bad.
[00:47:47] Michael Chan: Yeah.
[00:47:47] Pete Hunt: 'Cause you, they were just like super hard to compose and pretty hacky. And, and you can probably find some of my old GitHub repos around and, and see some of the sins that you had to commit to, to make mixins work. Uh, so class components, you know, made things a lot better. You know, one, I think one of my concerns is that I I do think that hooks are hard to use for people. Um, I know there's like the lint rule and I know that,
[00:48:16] Michael Chan: yeah,
[00:48:17] Pete Hunt: like you can go read about algebraic effects and there's a whole body of literature to support that. Um, and by the way, a team working on it. Uh, there's some of my best friends, uh, and they're really smart people. Um, and the like concurrent mode is a big deal.
[00:48:32] Michael Chan: Yeah.
[00:48:33] Pete Hunt: And it's all in service of that. But you know, I I do worry sometimes that, uh, people will stop using class components in favor of just functional components, and React kind of gets a little harder to use, I think.
[00:48:48] Michael Chan: Yeah, it's- I think I I've kind of commented on this as well, that There was something- I understand why we're going this direction. But like there was something so beautifully simple about like one way to write a component. Like all you get is like React is a component. Here it is. Like do with it what you will. And um it it feels like having- even just adding hooks as like an extra concept that you have to have kind of degrades that simplicity a little bit. Like maybe the the code is smaller and like the code examples read more simply. But there's something so beautifully pure about you get one thing and it's this and figure it out.
[00:49:32] Pete Hunt: I I think React did a decent job, um, like scaling down. Like like the original kind of open source release.
[00:49:40] Michael Chan: Yeah.
[00:49:41] Pete Hunt: You didn't have to know about immutability. You know, you you didn't really have to know you could kind of like be an okay JavaScript programmer and and not shoot yourself in the foot too much. Like your app might be slower, right? Because you might have extra re-renders or something, but-
[00:49:56] Michael Chan: Sure.
[00:49:56] Pete Hunt: Um, generally it it worked pretty reliably. I think my my main concern with with hooks boils down to, I think a lot of peop- a lot of developers still get tripped tripped up, you know, like if you have brace brace triple equals brace brace.
[00:50:12] Michael Chan: Yeah.
[00:50:12] Pete Hunt: Yeah. How those are two new objects. And so they're they're not the same object.
[00:50:16] Michael Chan: Yeah.
[00:50:16] Pete Hunt: Um, a lot of people don't get that, or like, like easily miss that one.
[00:50:20] Michael Chan: Yep.
[00:50:21] Pete Hunt: And in re- in the older versions of React, um, that would just result in a slower app, and most of the time people didn't notice or care. Um, in the newer versions of React, it actually acts like the application will have different side effects and behave differently, and if you put that as like a dependency in useEffect.
[00:50:37] Michael Chan: Yeah.
[00:50:38] Pete Hunt: Um, we're going off a little bit in the weeds, but that's, that's kind of That when when you talk about the the early simplicity of the thing, that that's what I think of is is it's you didn't really have to know those nuances and now you kind of do.
[00:50:52] Michael Chan: Sure. Yeah, yeah, yeah. Yeah, it does it it adds some complexity. And I'm I'm really curious, I'm hopeful to see kind of what gets unlocked as like concurrent mode and Suspense become, you know, a reality. Because I think that it feels like right now we feel a lot of the pain without a whole like the whole benefit of like what we're moving towards. And I can't wait to see kind of those things start to come into play. So on that line, um I'd love to know kind of like as we start to wrap up, like what are some things, you know, as someone who has kind of had an eye on the future of of technology, what are some things that you're really excited about? Like over the next kind of like 3, 5 years, you know, as we enter that next period where something's gonna disrupt or replace, you know, what is now. Um, like, what's on the horizon for you?
[00:51:41] Pete Hunt: Well, that's a great question. So, I I like to jump around and and work on a variety of stuff, first of all. So, I I think I I've I've kind of been out of the frontend world, actually, for for a good bit. Um, started a startup. Uh, I did mostly backend engineering there. Um, and I ran a sales team there, which was a pretty interesting
[00:52:04] Michael Chan: So a lot more product.
[00:52:05] Pete Hunt: Yeah, yeah. But but also like back-end, like some pretty hardcore back-end engineering for a couple of years. Yeah, yeah.
[00:52:10] Pete Hunt: um
[00:52:11] Michael Chan: what were you using for that?
[00:52:12] Pete Hunt: Uh Node.js, C++, and Python.
[00:52:15] Michael Chan: Cool.
[00:52:15] Pete Hunt: Depending on which part of the the stack you're on. Now we're we're mostly on Golang. But uh we're, you know, at at the time it was those three. And we had a little bit of Rust in there because we just wanted to try it.
[00:52:25] Michael Chan: You gotta.
[00:52:28] Pete Hunt: Yeah, so so I I've got a a little bit of a weird perspective on things, I guess. But short answer is like TypeScript everywhere is a big deal. It's won, everything else is lost. Let's let's just go standardize on it. Um I think there are some some interesting opportunities there. So uh uh and I I hope that people will listen to this and like build tools because I I don't want to build them, I want to use them. Um so type-aware refactoring tools. I think will be really cool. So, um, you know, for for example, let's say you have like a big call stack of functions and at the bottom you want access to some variable and you have to manually pass it all the way through the call stack. Um, with the TypeScript compiler API, you can do that refactoring automatically and you can do it incrementally. So like on save, it only like scans the files that change. So I think people should really dig into the TypeScript compiler API and just own it.
[00:53:22] Michael Chan: Interesting.
[00:53:23] Pete Hunt: And and really build interesting tools with it. I've done some of this stuff and it's been, it's just the best like tooling environment for any language, I think.
[00:53:33] Michael Chan: Yeah. Yeah. Well, I mean, especially with how well it's integrated into, you know, VS Code, the editor and and whatnot. Um, where do people find out more information about that specifically, like the the TypeScript compiler?
[00:53:46] Pete Hunt: So there's a, there's a, most people just use the wiki page called Using the Compiler API on the TypeScript site. Um, but there is a, a really neat library called ts-morph, uh ts-morph, which is much better documented and has a lot of interesting and useful tools, um, for playing around there. But I mean, you can do so many, like, type-aware lint rules and, and code generation. There's just refactoring tools. There's a lot that you can do there. Um, I also think WASM, uh, is, is a huge untapped potential right now.
[00:54:22] Michael Chan: Yeah. Awesome. Now, uh, what does the- what are things looking like for you right now? Um, kind of what are you working on? Uh, where are you looking to go over the next couple years?
[00:54:32] Pete Hunt: Yeah, so, uh, right now, um, I guess since since kind of rolling off of React, I started a company uh called Smyte, which was uh building um trust and safety as a service software. So Uh basically like a a system for identifying spam and abuse on websites and um and trying to automatically uh take it down or or provide kind of user interfaces for agents to do it. Uh and since then, um Twitter's acquired us and um we're at we're at Twitter working on on similar problems. So I I would say right now, um my focus was for a while on, uh again, large scalable rules engine, basically. And and trying to make that, you know, more scalable, easier to use, safer to use, more auditable, those those types of things. But uh now I'm kind of splitting my time between that and um our internal tools for content review.
[00:55:28] Michael Chan: Awesome, awesome.
[00:55:29] Pete Hunt: Which is a really interesting problem.
[00:55:31] Michael Chan: Yeah, yeah. What got you uh excited about that that line of work?
[00:55:35] Pete Hunt: So we started the company in 2014, again, just like lucky because it became such a hot topic like a year or two into the company. So we really accidentally timed it. I claim absolutely no credit for timing that. I just thought it was a really technically interesting problem and it was a thing that Instagram really struggled with during the acquisition or right after the acquisition and I was there for that. So yeah, it was- it just seemed to make sense as an independent company.
[00:56:06] Michael Chan: Yeah, yeah, I love that. I love that. Cool. Well, hey, Pete, this has been amazing. I've uh I've been I've really been happy to hear your kind of like side of the story, your recounting of this uh kind of like really historic um event. Uh and so I'm grateful for you taking the time to to chat with me today.
[00:56:24] Pete Hunt: Thank you. I I really enjoyed it. Um and uh I am looking forward to uh to listening to the episode and uh and hopefully talking about it on Twitter.
[00:56:34] Michael Chan: Yeah, absolutely. Uh, how can people find you uh to kind of have that conversation on Twitter?
[00:56:39] Pete Hunt: Yeah, sure. I'm uh Floydophone um on Twitter and uh floydophone@gmail.com.
[00:56:45] Michael Chan: Awesome. Well, that's a story we might have to save for another time.
[00:56:48] Pete Hunt: All right. Fair enough.
[00:56:50] Michael Chan: Hey, thanks, Pete.
[00:56:51] Pete Hunt: Thanks. See ya.
[00:56:53] Michael Chan: This has been episode 96 of React Podcast with Chantastic and Pete Find the people and projects mentioned in this episode at reactpodcast.com/96. Thanks to our sponsor, Infinite Red. They're ready to come alongside you to help fix and finish that app you've been dreaming of and build it with great patterns and practices for the long haul. Visit reactpodcast.infinite.red to get expert help, 2 tickets to Chain React Conf in 2024, 2021 and a beautiful, functional app today. If you like this show, there's a fast, free way to demonstrate your support. Leave us a review on iTunes. It's the best way for you to let me know what you think we're doing right and what we can improve. 2 to 3 minutes of your time helps us make the best show we possibly can. As always, links and show notes for all episodes are available at reactpodcast.com. This episode was edited by Mikael Delport. It was produced by Mikael Delport and Sarah Jackson at Spec, a network to help you level up in design and development. Check out spec.fm for other shows that are sure to fast-track your career. I'm your friend, Chantastic. Thanks for listening. We'll be in your ears again next week.
chantastic.fm