Code Story · Transcripts

S1 E19: Scaling One of the Internet's Top Platforms | Chris Slowe (Reddit)

January 13, 2020 · 27:56
Listen to the episode Download .txtDownload .vtt
Chris Slowe

We're about a year older than Twitter and we're about a year younger than Facebook. And so there just wasn't a lot of common knowledge on how to actually build and scale things. For most 2005-2006, my life consisted of get up, go to work, which was my PhD work, come home at night, usually cook dinner, do a night shift on Reddit, and then lather, rinse, repeat. I think I've learned in my career that the people who, especially on the infrastructure side and the SRE side, who do best are the ones who under pressure just kind of like either get better or just kind of don't, don't panic. I'm Chris Slowe. I'm the CTO and founding engineer at Reddit.

Noah Labhart

This is Code Story, a podcast bringing you interviews with tech visionaries who share in the critical moments of what it takes to change an industry and build and lead a team that has your back. I'm your host, Noah Labhart, and today we talk with Chris Slowe about early beginnings and being the founding engineer building the world of Reddit. All this and more on Code Story. A tech and science minded individual, Chris Slowe has spent 9 years with Reddit. Beyond being a tech executive with the company, he is a dad and likes to work with his hands in the machine shop. When he put roots into the product and the company as the first employee, he and the co-founders wanted to build a place to discuss interesting topics. Fast forward many years. Reddit is now the premier place for news aggregation, content rating, and online discussion around what's going on. Well, let's jump right into it. Tell me how you got started building Reddit and tell me what Reddit is in your own words.

Chris Slowe

Sure. We'll start with Reddit is. So Reddit's kind of changed in what it is over time. It's a network of communities. It's a bunch of communities that exist in a place where users can describe and interact with their passions and interests. And I think the starting point of Reddit, going back to the early days as a product, is we wanted to build a place to share interesting and newsworthy articles and just have a place to discuss them. So I think if you want to talk about the roots of Reddit as a product, it really is kind of like an evolution on top of Slashdot or even Delicious Popular, if you want to go pretty far back there, where there's a bunch of stuff on any given day that's just really interesting and engaging, and it's a format to actually discuss it. Another kind of even older idea would be, it's like the evolution of the forum as an art form. As far as how did I get involved and how did I get started? I was the first employee. I started there about six months in, roughly. And at the time, the way I got involved is I had kind of sidelined or sideways come into the tech scene in about my fourth year in grad school, where I had a friend of mine propose to me what amounts to being a startup. Now, this is in 2004, when startups were a bit of anathema, given the fact that everyone was still kind of recovering from the 2000s, you know, crash. crash. And so at the time, we were just trying to solve a problem we had, which was like finding, finding documents, a couple of science nerds. And long story short on that, it turned out that we ended up going and getting into the first Y Combinator batch, which is the same batch that Reddit was in, you know, Steve, Steve Huffman and Alexis Ohanian were in that batch of starting Reddit. And long story short, end of that summer, my startup had failed utterly and I had two free bedrooms in my apartment. So you know I was good friends with Steve and Alexis. They moved in and it was about two months later that I was kind of working on Reddit as well in my spare time. So for most 2005-2006 my life consisted of get up, go to work which was my you know PhD work, come home at night, you just cook dinner, do a night shift on Reddit and then you know lather rinse repeat. So I think I was getting four hours of sleep that whole year which is you know your your 20s are a magical period of time where you can do that and eat garbage and not die. So I'm definitely happy that, happy that I'll land at the same time.

Noah Labhart

Well, so, so I, so I hear the process, the four hours of sleep a night, that coming home, doing a night shift on Reddit. Tell me about that build process, about the MVP build for, for Reddit. What'd you build it using? What, you know, what, how did that process go, and what were you thinking during it?

Chris Slowe

Oh man, this is going back to really, this is right before, right before I started. So the first, the The first month of Reddit, Steve single-handedly got together an MVP that took less than a month to build. And the original version of Reddit was actually written in Common Lisp. So Y Combinator is founded by Paul Graham, among others, and Paul Graham is a big Lisper. And so it seemed like an obvious choice to show Paul that it's possible to build a modern web app using a technology like Lisp. And so he built that and launched it. I think Reddit was actually one of the first products that summer to launch. which is just incredible. You know, the company started in sort of June, and I think it was actually live on the 28th of June, which actually to this day has become like the official internal Reddit birthday. And that one was, I mean, it's fairly minimal. So if you think about the Reddit as a mechanic, the mechanic that's been there since the very beginning is voting. Every post and comment on Reddit has a couple of voting arrows that are like, you can either upvote or downvote something. And that was in there in the first version. The original version didn't have comments. In fact, the original version was the listing of links that went to other sites. So, you know, it really was initially kind of a link sharing site with a voting mechanic and a way to sort based on kind of a popularity ranking. And that was just about it. Oh, and the alien. The alien has been there since the beginning and has had, you know, definitely a major impact on our kind of company culture and our brand. But yeah, that was about it. We didn't have comments until easily six months later. That was like kind of start of 06 when we actually launched those.

Noah Labhart

Can you tell a little bit about the story behind the alien and what it means and what it represents?

Chris Slowe

So this is Alexis's, you know, one of his major marks on us. During the formative phases of kind of thinking about what Reddit was going to be, he was literally just doodling in a notebook. And he kind of doodled the alien and he created this backstory. He's like, it's kind of adorable and it's kind of quirky. And he created this backstory of it being of an alien from the future who kind of tells you the news. And, you know, one of the early attempts at, before they actually picked the name of Reddit, they had tried really hard to get something along the lines of Muse or What's New. There was an original mock-up where they had created this thing called, this site called Snoo, S, you know, apostrophe S-N-O-O. It was hard to get a domain name. It was easier to get a domain name then, but it was really hard to get that one even then. And they never quite got it. And so, but the name stuck on the alien. So we've been calling him Snoo ever since.

Noah Labhart

So in the MVP, maybe a little bit after that, what sort of decisions trade-offs made when it was being created as the product maybe progressed through that next sort of six months before comments came about, what decisions and trade-offs did you, you guys as a team have to make, and you as the lead engineer have to make, and how'd you cope with those? Well,

Chris Slowe

so I think, um, you know um during those that period of time like one of the first decisions was you know what should it be written in right because lisp is lisp at the you know at the time was it still is kind of initial language and so thinking forward to scaling up a company and kind of scaling up a stack. I don't know if we were as deliberate at the time. I can project back my opinion now on this, but even then it was like finding people who can write in Lisp is a pretty small set, even among CS people. And then part of an ecosystem of building out an app is of course the ecosystem of the language you actually use. And so it was probably about six months later when we had decided that actually maybe something like Python was the right answer. This is before there was like a really big split between Ruby and Python. And in fact, both of them seem like perfectly reasonable options at that point in history. And so we just kind of picked Python because it just seemed like a reasonable, simple, straightforward language. And it's actually proven out to be a really powerful one. It's got a, nice thing about Python is that the coding style is very well defined and it's very straightforward to look at code and tell it's bad by the way it's formatted, which is kind of a delight when you're doing multiple people writing it. So we did a little bit of soul searching and decided late that year, one of the first things I did was help out in that rewrite from Common Lisp to Python. think about the underlying architecture of how to build a site up that could actually scale. And so early on, one of the early problems was making sure that the front page could be really fast and that given the number of votes cast, we could actually not have to constantly dynamically compute that listing for every page view. And so there was a really early choice of how to do that sort that we call the HOT algorithm, which has honestly been pretty much unchanged for most of our history. We've improved it, we've modified it, we've made it smarter, but the underlying mechanics versus votes has been a pretty constant standard for this. And that was probably the first real drastic change. And then from that point on, it was like, product changes kind of stacking on. Adding comments was the first one, I think. Adding comments is actually kind of funny because it was the first time when we directly encountered the snark of the community, which was, I think, one of the first literal comments was something along the lines of, oh, well, I guess now it's turning to Slashdot. It was nice while it lasted, see you guys later. Which, everything we do is, of course, regress after that. Well, so from that point on we started to so one of the one of the big things early on was honestly just scaling you know the thing about reddit that we didn't really understand at the time was that it kind of had immediate product market fit and so like the traffic was never a problem we it just kind of grew on its own and most of the work we had was i think i think in the early days we were on about a three month doubling cycle which you know isn't isn't as meteoric as some sites have been but definitely when you're in under the gun of like You can actually see week over week a noticeable difference in traffic. You can actually see on the slope of the weekly traffic, there's a slope. You know, even normalizing for weekends was a little bit, you know, both delightful and harrowing at the same time. I think we actually, it was more the harrowing side. And so we spent a lot of time over the course of the first four years just making sure things scaled. You know, part of that problem was that for that time, there just wasn't the same kind of like common practices for how to actually build and scale a website. You know, 2005, 2006, you know, I think we're about a year older than Twitter and we're about a year younger than Facebook. And so there just wasn't a lot of common knowledge on how to actually build and scale things. So we had a chance to actually kind of build it and learn it live and just discover all the silly things that we didn't know about, like configuration of Postgres and arcane settings that, or even basic settings, like what they actually do, which was exciting for sure, because usually you're discovering those things while the site's down and while all your users are complaining the site's down.

Noah Labhart

How did you go about building your engineering team? So, you know, how did you structure the team along with the product development as you focused on scalability and adding new features? How did you build that team? And most importantly in that question, what type of people were you bringing onto this team?

Chris Slowe

So for the first six years, the engineering team was never bigger than about five people. We got acquired by Condé Nast in the end of 06. and became effectively a startup inside of a larger company, which was great from the standpoint of we had a larger company to kind of shield us and learn from. But it was tough in that we never went through the initial like funding rounds, growth, grow the company, grow the business, grow the staff. And a lot of that actually didn't come until much later. So Reddit was only kind of nested until 12, at which point it spun back out as a private company and it took its series A right around then. that. So, you know, right now I work at a 550 person series D startup that's been post-acquired. And so if anything, a lot of the, a lot of the growth on the engineering side has happened in the last, it's not even a little, it's like all of the head, all the growth has happened in the last five years. During the very early days, we hired what I would say are some really brilliant generalists who were willing to take a chance and, you know, shared our level of crazy would would be my best way to describe it. You know, that it's reasonable to have a giant site with only five engineers working in it.

Noah Labhart

Right, that makes a ton of sense. So in those generalists, what made them so special? What were the characteristics that you looked for and you're like, that person is the winning horse?

Chris Slowe

I think this wraps up in a way with some of like the mythos around the 10x engineer that, you know, has kind of pervaded the tech scene over the last decade. There's definitely a class of engineer where it's not that that they're necessarily, the good ones anyway, I'd say, it's not necessarily smarter or better than a typical engineer. They're just willing to dive into basically any problem and try to fix it. And I think that that's the makings of a generalist. There's a certain fearlessness you have to have to be able to take a technology stack you don't know and dive in and figure it out. And then just kind of keep repeating that. When there's that kind of gun to your head of, we're down, figure it out. It has a very kind of clarifying moment of like, Like, you know, it definitely separates out people who, like how you behave under pressure. I think I've learned in my career that the people who, especially on the infrastructure side and the SRE side, who do best are the ones who under pressure just kind of like either get better or just kind of don't panic. Some people panic and it's just kind of your nature to panic. Whereas like other people just kind of like just get kind of calm. And I actually, I discovered early on that I kind of fall into the second category of like, okay, emergency, what do we know? And just kind of like drill into it. that was something that kind of naturally comes out. The nice thing about a small team is honestly, everyone has to know what they're doing or you're kind of doomed. And so everyone has to kind of like, not just have a notion of what everyone else is working on, but be able to kind of fill in the gaps and identify places that things aren't working. You can't, you can't have a, something dropped on the floor when you have a five person team, because then everything is dropped on the floor. I think it's really that that makes it the differentiator for us in those early days and among a certain subclass of 10x engineer, to be honest.

Noah Labhart

So when you say they have to know what they're doing, you're not saying they have to be, you know, super senior engineer or whatever, because you're mentioning them as a generalist, but more of they have to know what they're working on, how it affects the overall team, what the other team members are working on. So they have to be, it's like an awareness factor.

Chris Slowe

Yeah, I think it's also just an acceptance of there's a set of things that are unknown and they are knowable, right? Like this kind of march into the burning building is a problem. Or like, hey, look, let me run in. and try to fix it. And, you know, independent of technology stack, independent of opinions of like, what's the right answer? You know, sometimes the job is, yeah, there's some gnarly code base that we all built together and we're live debugging what's going wrong and not making it about blame or about like some sort of religious war on what technology is. I think that's kind of a, that's a valuable component, I think, into especially a small startup where, you know, if you're getting stuck up on kind of religious wars on technology, then it's just, it's a waste of time. you build, you're going to rebuild in six months anyway. So you might as well pick the thing that makes the most sense right now. Try to standardize as much as possible to do, you know, do you look at effort, but really just kind of drive and build and then just accept the fact that, yeah, you can burn it all down later anyway.

Noah Labhart

So, you know, you, you're one of the founding engineers of Reddit. You've been here since the beginning. You've been here, you know, acquisition, post acquisition. You know, you're, you've seen it grow. You've seen it scale. You've been a part of this from the beginning but what what are you most proud of throughout the whole cycle in the technology and the product

Chris Slowe

so i think that honestly the fact that there is there is code in production right now that has my git blame on it and has for about a decade makes me really both happy and dreadful at the same time uh because you know i remember that guy he didn't necessarily know what what he was doing, but the result is kind of proof of note. I think, you know, the fact that, I think that what I'm actually proud of is the product itself. Like, I mean, Reddit is successful. It's as much the technology as the people. And I mean that both on the team, on the side of the people who built it and the people who make the platform. You know, Reddit is kind of nothing without the community around it. And I think the fact that we kind of like half stumbled, half discovered, half built to being this like lovely, vibrant, dynamic set of communities where people can kind of be themselves and be authentic and create niches to talk about things that we would have never dreamed about in the early days. I mean, it's just fantastic. Like I can't imagine. I'm just incredibly proud of that.

Noah Labhart

Let's flip to the other side of that coin. Tell me about a mistake that you made and how did your team respond to it?

Chris Slowe

I mean, one of the mistakes is the fact that I've got code in production that's been 10 years old. Let's talk about that one. No, it's funny. So I have had two stints here. I came back in 16. And ever since I came back, one of my recurring missives has been any code that you find has my blame on it, just assume it's wrong and rewrite it, please. I actually went when I went one of the one of the early things that happened when I when I when I kind of returned was I think it was about it was probably the same day that I got my employee account back that somebody tagged me on a pull request review and I looked at it and it was a bunch of JavaScript code that was like kind of deep down in the guts of the stack and my first response was so I think the back I'm like why did you get me on this so at this point in in my career, I had been gone for about five years, had mostly done backend work in data science. And the response I got back was just this bone chilling, your blame is on the code. Oh God. Okay. So new rule, any JavaScript that Chris wrote, please rewrite, because that was a long time ago and I don't want to be remembered for that. Yeah. In terms of like actual direct, that's kind of one class of mistakes, which is that, you know, we do have a whole bunch of stuff that needs to be cleaned up. I think though that the other side of that problem to talk about kind of like, everyone complains about tech debt. Everyone complains about that, you know, this thing wasn't built right, or we chose the wrong standards. I think of that as actually a luxury to be able to complain about tech debt. And I say that because if you're complaining about tech debt, it means that you have the time to actually clean up the stuff that you're building as opposed to just having to deal with whatever disaster is currently happening, whether it be traffic isn't there or the site is down or any of a number of existential problems that can happen to a business. And so, you know, when you're at the point when you're dealing with tech debt, it actually means you've got a certain amount of success and you can actually start dealing with it and make things better for the people down the line. It's almost like building for your children. Like the developers that are hired a year from now should not have to deal with the foibles and mistakes of us right now. So let's try to make the system better for them. You know, the other side of that is I've come to just kind of accept that, you know, experience is really of mistakes and failures, right? So if you're going to, this is why I actually would rather try and fail than optimize towards something perfect in the first pass. Like we really have a, we try to have a very explicit kind of MVP culture here. Not because we want to throw things against the wall and see what sticks, but because I'd rather throw it against the wall, see if it works and then tear it down than just kind of like try to build the perfect thing and find out that it's completely wrong. Like we missed an entire avenue.

Noah Labhart

What is next for Reddit? What's the future look like for the product and for the team?

Chris Slowe

For the product, I think that the core is actually a very kind of unsexy, undrastic, like we're going to continue to enable communities to grow and to flourish. I mean, I think the underlying, it took us a while to kind of figure out how Reddit actually works as a product. And what we've kind of discovered, especially over the last couple of years, is that the things that work best on Reddit from a product standpoint are products that actually work So we as engineers and as products people are responsible for building tools to make the community experience better and to make it richer and to basically let the creativity of the community flow in interesting ways. And so you know an old example of that would be one of the decisions we made early on which ended up being a really good one, we let communities self-style with CSS directly. So giant powerful toolkit, very obtuse to use, but you can basically do whatever you want in the way that your community lays out. And a side effect of that relatively simple yet complicated change was that we found all these avenues for expression in communities and like a whole bevy of features that people built entirely with CSS and some really complicated styling like flair and just kind of like labeling of things and just exciting ways to do voting that we're able to use that to basically foster our next round of what kind of products we build. you know so it's a really it's like this it's the creating and fostering an ecosystem has been kind of the focus for us and I think will continue to be so I think when it comes down to like the actual like internals I mean for me there's just a straightforward like just continue to grow and you know grow the team grow the people grow the talent and let them be you know help with the creativity that's going on on the platform

Noah Labhart

From a technical perspective, perspective, who do you look up to? Who influences the way that you think architect, code, build, et cetera?

Chris Slowe

The easy one is probably Steve Huffman, our CEO. We've worked together for 14 years and it's really nice and comforting to have somebody that I work closely with who, you know, we've kind of had a lot of our fights already, which is kind of good. And at the same time, you know, Steve was the first engineer on Reddit. Steve built the original stack. Steve was the Lisper who kind of started the whole thing. And it's been really fun to kind of both of us have been stretching it into our respective roles over the years. Like you know, we're always working for the biggest company we've ever worked for, which is you know exciting and terrifying and kind of like learning what the new job is attached to our title. For people in the industry who I've been looking to, there's a guy by the name of Will Larson who has a really great book on engineering, managing engineering teams. That's been really compelling. The idea is that, you know, when is it time to hire versus when is it time to refactor? And, you know, how to avoid going into science project mode. Being an infrastructure engineer, kind of by my core, has, I have a lot of sympathy for the problem. I would probably be lying if I didn't give a shout out to Elon, if only because he makes cars that are really cool that I drive, has a space fleet and batteries attached to houses. And he has a company called the Boring Company that makes flamethrowers. That's pretty rad. I think any technologist you talk to who isn't a little bit like both excited and envious by the stuff that he comes up with and his company's come up with is probably lying. I remember hearing at one point that the Tony Stark character that they created for the Marvel movies was actually loosely based off of Elon. They've done some discussions with him as one of the cornerstones of that character. And then kind of last but not least, one of my peers who I definitely respect greatly is, there's a CDN company by the name of Fastly that does really great stuff. And their CTO, Tyler McMullen, has built some really cool technology recently around edge computing. It basically lets you ship anything you can write in WebAssembly into Fastly's edge, which is like another layer of compute, which I think is just, just it's on that realm of being brilliant and bonkers and just a new way of possibly operating

Noah Labhart

If you could go back to the beginning, when you, you stepped in and, you know, you started, uh, taking on this, this, this animal, like, what would you do differently if you could go start over? This is a

Chris Slowe

tough one because, you know, to go back to my original point about failure, I kind of feel like to some extent, like, the, the, um, it's really the failures that kind of give you the experience that makes you succeed later. Or like, maybe the, you know, the successes are almost like the exceptions and the failures are the ones that actually you learn from to help to build up the successes. And so, you know, the hard part with counterfactuals is it's kind of hard to tell which bits are, which bits are the ones that actually led to current state that would have been important. Like, actually, simple example is, I got into startups, um, way back in 2004 because I randomly ran into a friend after a talk and we ended up hitting up, getting a conversation turned into a startup. And if I had decided not to go to that talk or like any number of things along the way, it would have totally changed the timeline. I might be an adjunct professor somewhere as opposed to CTO at a site that specializes in pictures of cats, which is a, you know, slightly different way of operating. Some advice I would give to my younger self would be, a couple of things I invoke all the time I find is, there's a rule called Hanlon's razor which is paraphrased as assuming competence over malice which basically means if somebody is doing something that seems malicious start off by assuming that they just don't know you exist and that they're actually just not paying attention and are incompetent rather than assuming some sort of like malicious intent and 99% of time you're actually right a kind of inverse of that one is the there's a there's a there's a Latin phrase which I'm not gonna try and say out loud which basically don't let the bastards grind you down. So it's mock Latin that I think applies equally well to operating at Reddit as well as working at a place with 500 people. The Latin is actually illegitimi non carborundum, which I want at some point has a plaque on my desk. I think, you know, one of my jokes about Reddit as a place to work in a platform is that some of what Reddit exists for is it exists as a platform to criticize Reddit. You know, everything we do is the worst thing we've ever done. And oh my God, why did we that button was the cornerstone of the way the site operated. And, you know, you have to kind of go into it with a certain amount of like, you know, like the who moved my cheese problem. And you have to have to go with it with a certain amount of humor just to be able to kind of, you know, day-to-day accept the fact that, yeah, you know what people have opinions and we're going to do things and we're going to, we're going to work with the community. We're going to talk to them. And the same thing is true internally where, you know, people have disagreements and that's where kind of things like disagree and commit come into play. I think that was less, less advice than a small rant. I could give myself if I had a time machine.

Noah Labhart

Well, Chris, thank you for being on the Code Story podcast. Thank you for telling the creation story of Reddit.

Chris Slowe

Glad to. That was a lot of fun.

Noah Labhart

And this concludes another chapter of Code Story. Code Story is a production of TouchTap LLC and is hosted and produced by Noah Labhart, co-produced and edited by George Mocharko. Special thanks to Deanna Chapman, and Stephanie Campisi for their promotional support. Be sure to subscribe on iTunes, Google Play, Breaker, or the podcasting app of your choice. Make sure to check us out at CodeStory.co or follow us on Facebook, Instagram, Twitter, or LinkedIn.

Transcribed with Whisper and reviewed for names and terms; speaker labels are automatic and may contain small errors. Timestamps link to that moment of the transcript.