chantastic.fm

36: Be Wrong with Shawn Swyx Wang. On what's new in React, how best to learn, and what's going on in r/reactjs

Episode 36 · February 21, 2019 · 00:39:38

Hosted by chantastic · With swyx

Download MP3 · Jump to transcript

Shawn Swyx Wang moderates and organizes r/reactjs on Reddit.
He also works on developer experience at Netlify.
Shawn is a voracious learner and loves to share what he's learning and believes that everyone — regardless of experience — should "learn in public".

Chantastic asks him about what's new in React and how r/reactjs is helping developers learn React, get connected in the community, and find jobs.

They discuss strategies for being a lifelong learner, how to get started in React, the growth of React's API surface area, Hooks, Suspense, Concurrent Mode, designing APIs, and the future of React.

Featuring

Links

Transcript

[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. Today we have the privilege of sitting down with Shawn Wang, aka Swyx. We talk about new features in React like React Suspense and React Hooks and how those impact developers day to day and where they can find great information and resources about them. We also dive into the amazing work that he's doing on Reddit to foster an amazing community and to develop community-led resources for anyone who's either getting into their first React job or people who are extremely advanced and looking into things like TypeScript and testing. Sean is an amazingly empathetic and compassionate developer, and I think you'll love hearing his vision for how we can lift up other developers in our community through through great open resources. As you're listening, if anything catches your ear, you can find show notes at reactpodcast.com/36. So Swyx, how are you doing?

[00:01:10] swyx: Very good, very happy. I'm on a lot of caffeine right now.

[00:01:13] Michael Chan: We're at React Conf 2018 right now. We're recording this at React Conf. Who knows when it's airing, but uh what time did you get in last night?

[00:01:21] swyx: Uh 1 AM. Came straight from New York City.

[00:01:23] Michael Chan: Oh my gosh. Yeah. So you're gonna be pretty tired tonight too with the with the time difference and not having a day to catch up.

[00:01:29] swyx: But you know, like I'm energized by all the people here and the the talks are amazing. And honestly, I'm actually regretting spending so little time here in Vegas because like the venue is awesome. Um and I just, you know, I've got a whole bunch of, I I came from a conference and I'm going to a conference. Which conference? And so this is the second conference in the middle. Uh the Jamstack Conference is happening next week.

[00:01:51] Michael Chan: Oh wow.

[00:01:51] swyx: Um so my company's organizing it. I'm gonna be there helping people uh with like their stuff. And I just came from Smashing Conf in New York.

[00:01:59] Michael Chan: Holy cow.

[00:02:00] swyx: So this is conference season.

[00:02:01] Michael Chan: It really is. Like, it's insane. I imagine that it's kind of uh oriented around vacation season. It seems like it happens after all the hotels need to kind of like find ways to get people to come to their hotels in the off-season.

[00:02:13] swyx: Oh, that's how it is.

[00:02:14] Michael Chan: Yeah, that's what I'm thinking. That's my suspicion. You

[00:02:16] swyx: know, I don't- I'm new to this. Uh, so part of- I think the thing that we're gonna cover is, you know, I'm relatively new to React. Uh, this is my first year of React conferences. My my first conference ever was React Rally, so um, this is gonna be fun.

[00:02:31] Michael Chan: Awesome. So uh, tell me, how did you get into React? How did you start in the React community?

[00:02:37] swyx: Oh, so I I'm a career changer. I was in finance before for 6 years, uh, and I always coded as part of my job, but never uh was a professional software engineer. I was always I was a trader, I was an equity analyst, uh, but then I was good at the coding part and shit at the finance part. Um, so. So then I just decided to make the switch. But also I just realized that like making apps and distributing it into the hands of people, like have, you know, uh getting the religion of like the open web and like how that's better for like uh making literally anything you can think of think about was effective. So I, you know, went to a bootcamp last year and essentially essentially started out uh this time last year, um focusing entirely on React. And that was a bet because I actually was, you know, every starter, every beginner who comes into this, um, gets caught up in all the FOMO, right? Like, is Vue gonna be the next thing? Maybe I should learn Vue first. Um, and uh, I think it was a good bet. Uh, and I think that uh, I I lucked out for sure.

[00:03:35] Michael Chan: Yeah, yeah, yeah. So React was your first kind of language that you started making money as a developer in?

[00:03:41] swyx: Uh, well, framework, sorry.

[00:03:43] Michael Chan: Yeah, yeah, yeah, sorry.

[00:03:44] swyx: Yeah, no, but yeah, I mean, um. Went to bootcamp, went to a Full Stack Academy in New York, uh which is very good, I highly recommend it to people. Um and then graduated and immediately got a job in uh maintaining a React TypeScript design system uh at a hedge fund in New York. So that like a little bit of my finance and and web dev career mixing in there. And then going full web dev uh by joining Netlify uh a month ago.

[00:04:07] Michael Chan: It's only been a month?

[00:04:08] swyx: Yeah.

[00:04:08] Michael Chan: Wow, that's crazy.

[00:04:10] swyx: Yeah.

[00:04:11] Michael Chan: How have you enjoyed it?

[00:04:12] swyx: I really like it. Netlify is obviously like loved by all the frontend devs.

[00:04:17] Michael Chan: Yeah, yeah.

[00:04:18] swyx: And I I really am interested in like, so I, you know, I'm I don't know that much about the backend stuff, like the Kubernetes setups, the- Netlify is secretly a multi-cloud thing on top of 7 different clouds. So most frontend devs don't even care or know about it, right? But it's so secretly complicated and it just abstracts away all that setup that you would have to do by yourself, which a lot of people, like if you really put your mind to it, You can do it, but it's what AWS loves to call undifferentiated heavy lifting.

[00:04:48] Michael Chan: Okay.

[00:04:48] swyx: Which is like, like, all right, I'm gonna set up an IAM instance, I'm gonna like set up, you know, this and that API gateway, and and maybe maybe this like this isn't configured right, so I gotta go set it. Like, Netlify just takes away all that and just like thinks about it from a user experience of the frontend dev and gives them superpowers to just say, all right, I'm gonna I'm gonna work on the things that actually make my app special, Right, and everything else that's just like hosting, screw it, right? Like it's all the same, right? We just deploy it.

[00:05:15] Michael Chan: Yeah.

[00:05:15] swyx: And and then and then it's a it's a very opinionated stack, which I which I really have come to like appreciate, which I didn't like. Opinions are a hard thing, right? Like um opinions are good, but unopinionated, un un it's kind of like we we we swing back and forth between wanting opinionated things and then one wanting unopinionated things because we can compose things together. Um and Netlify is definitely super opinionated, um and but because of that opinion, you can get to build a lot other things on top of it.

[00:05:43] Michael Chan: Yeah.

[00:05:43] swyx: Which is similar to React in the sense that we have very strong opinions about one thing, which is your view layer, and then everything else you can build on top of that.

[00:05:50] Michael Chan: Yeah.

[00:05:51] swyx: Um, so maybe that brings it back to React a little bit.

[00:05:54] Michael Chan: Well, it's cool. I know that uh Netlify, at least from the outside, seems to be really popular with frontend developers because it does make a lot of those requests that would be like take a lot of time, be something that like ops would have to like actually hook up in their in their setup becomes like a button click. Like, deploy all of my branches to subdomains is just- you just turn that feature on and now you can- everything that you you think of, you can make a branch and you can test it out right in your app.

[00:06:21] swyx: Yeah, so like, I I really like it for open source. So yeah, I think every open source, uh, large open source library should move- should at least have their docs on React- on on Netlify, because we're like just like perfect for them, because every single PR that comes in gets a a preview and a deploy. So you can, you can see the difference and you can, you can version it because every deploy is immutable. You can roll back and forth just in a click. Yeah, um, you can, you can pin the version. So that's what the React docs do, uh, they, they just pin the versions, um, and you'll never change, right? So like you have versioned docs just out of the box. So like it's, it's just really, it's a really good setup for, for, for docs at least. So, uh, we actually just, we're in the process of moving the Redux docs over to Netlify.

[00:07:01] Michael Chan: Oh cool.

[00:07:02] swyx: And then I just had a conversation about moving Create React App over. Wow. So, so, uh, and then we have a bunch of it like Babel, Kubernetes, uh, a bunch of other- I don't even know the full list, but it's, it's a lot of open source stuff. It's, it's really good.

[00:07:15] Michael Chan: So obviously I think about the projects, the, the React-related projects and their relationship to Netlify, but, um, are there other communities that are really strongly connected to Netlify for, for deploys, like Vue and other front-end things?

[00:07:31] swyx: Uh, I think Vue may be on there, I have no idea. Okay. Um, you know, I guess I I do I do focus— uh the benefit of focusing on React is that I know what goes on in React. Uh but then the downside is I don't know what goes on in other other worlds. Uh we do have a DevRel person, Divya, um who's also from Singapore. I'm from Singapore. Um and she focuses on the Vue community, so she should be able to tell you.

[00:07:55] Michael Chan: Okay, cool, cool, cool. Awesome. Um, so Sorry, I totally lost my thread now thinking about Netlify.

[00:08:03] swyx: Sorry, I didn't I didn't mean I didn't mean this to be a pitch. I just like I like talking about it. I like you know it's I think I always I'm always surprised when people don't know about it. So I feel like the whole world should know about it and then they don't. And then I'm like, okay, let me let me fix that.

[00:08:17] Michael Chan: Well, it's fun. It's fun when you have something that's so useful and you know it is being proven daily by other React teams to not share it. I mean, that's- it makes your life easier. Like I am- I'm sad when I can't deploy something to Netlify. Like we've had things that we've- we could have easily put on Netlify, but we decided to kind of- the ops team did their their own thing and put it on AWS, which is fine. Um, like, but I don't have any control over that when something isn't- like if I want to add a feature to it and something doesn't go exactly as I plan in the deploys or whatnot. Um, it's like totally opaque to me. Which is which is a bummer. But yeah, you mentioned uh how we kind of oscillate between wanting something that is perfectly suited for our task and high level and things that are low level and uh kind of used in a bunch of different ways. And um and you mentioned Netlify is one of them. I just talked with um Matt Perry and he was talking about open source-wise how-

[00:09:23] swyx: I loved his talk. I didn't know- That's amazing. So I always I always regarded Pop Motion JS as this- I knew there was like this guy on Twitter who just like talked from his, you know, animation library account as his personal thing, and I didn't know who who that was, uh and now I met him. So it's it's pretty cool.

[00:09:41] Michael Chan: Yeah, it's it's amazing, and he's great. You should talk to him. You guys would get along really well. Um, but yeah, he was talking about kind of the difficulty of- he built this really low-level library in Pop Motion. Yeah. People didn't quite get it. Like it was too much work. And so he built Pose as basically a high-level way for people to work in React with Pop Motion. Do you have like do you have thoughts on like when people like how to communicate those boundaries in open source? Like how to give people the low-level API, but then also give them something to uh to kind of, I guess, whet their appetite, give them something easy that they can just kind of like npm install. Yeah. Like this thing, and then kind of like gradually increase into more complexity?

[00:10:27] swyx: I got you. I don't have very profound thoughts at the moment about that. Um, I think that it's okay for people to be low level. I think they should be upfront about it though. Uh, there's like, you know, I I my favorite category of things that we that we've talked about so far is lies that we tell. And the lies, well, some of the lies that we tell are like, you know, you read me, it's like, just do this and it's like 3 lines of code, and then you're done. And I'm like, no, you're not done. I want to curse on the on the podcast, but I can't. You can.

[00:10:55] Michael Chan: You can. I just mark them explicit. Say whatever you want.

[00:10:58] swyx: And uh I mean, and that and that's a lie. So but but but uh one one pattern that I'm seeing is uh is that is very good. That's kind of started with Apollo, which which I'm aware of, which is Apollo had, for a while, uh in in their v1 version, had so many uh different APIs and configurations just to get going. And then they and then urql came along and prodded them, and then they made Apollo Boost, which is like a starter pack. Yeah. They like bundled up all their 80% use case stuff and you just imported that one package and you can you could get up and running. That was very good. And then recently uh you should check out Redux Starter Kit um that Mark Erikson made for Redux, where he took like combine reduce— um not combine reduce— Redux Thunk and reselect and a bunch of other things and put all those things into one package for Redux so that you didn't have to set all those things up manually. Sure. Including like Redux DevTools, which was always a pain. But anyway, so like things that I think you explore the you explore the problem space with um all with a low-level tool, and then you look for the common use cases, and then you bundle those up into a high-level higher-level tool, um and and that uh it does fit uh cases better. Um and I think there's a nice parallel between You know how there's a debate between convention and configuration? Yeah. People always want to do zero config and all convention, but then but then the use cases spread and then they add more config to the convention, and then it's just like back and forth. Yeah. And that's a very interesting parallel between like, we'll go more declarative here and then more imperative here and then more declarative here and imperative here. So I think uh people switch back and forth as they explore the problem space and find the right abstraction layer. Yeah. Um and I think that's kind of, uh you know, just to bring it back to React, I think that's kind of what- React was too small, and we had too many libraries that had to be installed together with React. And now React is growing its responsibility area to envelop those problem spaces. So actually, I tweeted something this morning because we're here and they just announced Hooks. I just tweeted that the authors of Recompose and Redux moved into the React team, and now with Hooks, they've absorbed it into React.

[00:13:07] Michael Chan: Interesting. Yeah, yeah.

[00:13:08] swyx: So we can talk about hooks if you want.

[00:13:10] Michael Chan: Yeah, yeah, yeah. So um so you mentioned kind of how React is growing to kind of gain some capability and match the suitability of what we're using it for. Um what are the like what are the big things? What what do we need to know now about the bigger React?

[00:13:27] swyx: Yeah. Well, okay. So uh first of all, I'm not gonna be the authoritative person on this.

[00:13:30] Michael Chan: Oh, sure, sure.

[00:13:31] swyx: We're just talking. Yeah, I'm just I'm just a random React fanboy, which I like to call myself, uh and I, you know, these are my opinions. Um, so the two things I think are, uh one, uh we definitely- React has gained a sense of time, and that's what the Fiber scheduler has definitely been reworked to to get to get that into by having essentially time slicing at the core and estimating work to be done so that you can yield back to, uh to render, um and be interactive at all times. And then the second thing, uh with hooks, which, which like you know, are a complete bombshell. Like, for a long time, the team has said, all right, uh, classes are a pain, we want to move to functional, uh, a functional future, uh, but it's probably 2 years out because it's really hard to figure out.

[00:14:16] Michael Chan: Yeah.

[00:14:17] swyx: And then they drop this out of the blue, and it's just like, wow. Um, and obviously that's Sebastian working for, for, for you. Um, but with hooks, I think it's more about like encouraging, uh, you to think about uh a more functional form of what React is. And um it's funny because like my first React job, uh uh my boss was someone who came from the Java world, and he said he liked React because it was object-oriented with all the classes.

[00:14:44] Michael Chan: Sure, yep.

[00:14:45] swyx: And I was like, uh you have no idea. Um we're about to take all of it out.

[00:14:51] Michael Chan: It's all right, you were able to lure him in with the classes and then he'll go away eventually.

[00:14:57] swyx: Um I just think he— I I think And that's something that's true of- that's an outcome of being part of JavaScript. JavaScript is a multi-paradigm language. It's got functional, it's got a bit of object-oriented. So you're gonna have that in React as well because you're you're you're very stay very close to JavaScript. Um but I like this way of thinking about uh setting up your side effects and taking them down in every render. Um and and and that's a that's a very, very different paradigm from the object-oriented instance approach that we that we persistent instance approach that we tend to think about with classes. Um, so I so I really like that. I I think that it will be very easy to write non-performing code uh if you're not careful, but I mean, that will involve some training. Um, but I think I think uh uh classless React in future would be a very— uh it would be an easier thing to learn for beginners. I definitely struggled when I was learning React um to to know what binding was and what this is in any context.

[00:15:58] Michael Chan: Well, there's a lot of very confusing, low-quality articles that don't really give you the full scope of like when it's important. Like they talk about the strategies, but then a lot of times it just kind of leaves you hanging of like, am I supposed to do that? Am I supposed to do it every time? Like when is this important? Why is it important? Like why is it using this experimental uh syntax for- Class properties. Class properties.

[00:16:21] swyx: Yeah, I love that.

[00:16:22] Michael Chan: There's-

[00:16:25] swyx: But we don't need it now. We don't we actually don't need class properties anymore.

[00:16:28] Michael Chan: Now that it's in Chrome, we don't need it.

[00:16:30] swyx: No, no, we we don't need it because we because we have hooks.

[00:16:32] Michael Chan: Yeah, so yeah, it's- I think it's just- it's- there's a world of hurt for newcomers as they like start to look for these answers and then kind of find more questions, which is- which is a real bummer. So I- I too am excited about, uh, like what you're talking about with this idea of like classlessness.

[00:16:49] swyx: Classless React is what I called it, but they may have a more official version. And it's really interesting because it's tied into this idea of concurrent React.

[00:16:59] Michael Chan: Yeah.

[00:17:00] swyx: That React has uh essentially two two rendering uh threads. Uh this is a this is not strictly true, but you can think it's a good mental model.

[00:17:09] Michael Chan: Mental model, sure.

[00:17:10] swyx: Uh there's like the current thread that you're seeing, and there's the the thread that they're currently rendering, the work-in-progress uh thread, right? And they and React is able to jump jump back and forth and do the work between them. And and when one resolves, it can sort of rebase them as as uh you know they they they showed in the JSConf demo. Um so that's that's it. I think those I think those two concepts are tied. I think React Fiber was, was, was written, uh, with these things in mind, and we're just seeing the implications of React Fiber, which we didn't really get.

[00:17:39] Michael Chan: Yeah.

[00:17:40] swyx: And it just blows my mind that, um, Jordan walk knew this. He knew this 4 years ago, um, when people were like, what's the future of React like? He was like, yeah, we'll probably get async rendering. And, and he said that 4 years ago, and he like- I don't know, right? These guys come from a different planet. And, and uh I'm just glad- I think, I think we're learning a lot, right? As we, as we follow along.

[00:18:04] Michael Chan: Yeah.

[00:18:04] swyx: So I think uh one of the things I I actually tweeted out uh a while ago when I was like learning the internals of React and just looking, looking at like the way they think about things and the way they make decisions on APIs, is it gives you a framework for looking at other problems that are not nothing to do with React, but just like good architecture, good programming, good API design. Um, and so I I appreciate that. React is React is uh a religion. Uh more um and and and a and a lifestyle.

[00:18:36] Michael Chan: So you've been following Suspense for for a while, since March, since it was announced, right? Yeah. Um, has there been a lot of uh has there been a lot of churn since, you know, when they announced? Tons.

[00:18:47] swyx: Tons. So Uh, one thing I like to say is that the fundamental- so I made a cheat sheet. Uh, so, uh, Dan's React Conf, uh, JSConf demo was March 1st, and I think I made a cheat sheet like a week after, and it was just all a summation of everything that he presented, but it was it was split up by the concepts, the goals, uh, the computer science terminology that he introduced, and then finally the API, right? And what's funny is that since then, in the 6 months or so since then, Um, the only thing that's changed is the API, and the API has changed like 3 different times, and it hasn't mattered because as long as you know what the goals are, what they're trying to do, you can understand the APIs and and reuse them, whatever the the latest version is. Um, so I think it's very important to to look up that uh to to have that framework, to start from basic principles and then work down to APIs.

[00:19:37] Michael Chan: Yeah.

[00:19:37] swyx: Um, so there has been churn, but only in APIs, and and that's just because they're doing the R&D. And like, I I have a day job, I don't I don't do this full time, even though it looks like it. I don't do this full time. And and so I always um try to make sure I cut myself off from like following every step that they do and just try to be high level because that's their job. That's not my job, right? I'm not I'm not here to second guess them. I'm just here to learn from them.

[00:20:04] Michael Chan: Yeah, yeah, yeah. I I like that approach. Um have you felt like pretty content then with uh the APIs that do get stabilized?

[00:20:14] swyx: So React Cache is probably the most contentious one. Uh-huh. Uh, so as we talked about in in our livestream, um, which I'm sure you can link if you-

[00:20:22] Michael Chan: Yeah, I'll link.

[00:20:24] swyx: And and uh, so that's the that's the one that probably, I mean, I the one that we used uh wasn't even final. So uh, I know I know that Andrew is gonna release something tomorrow that that will probably look like closer to a final version.

[00:20:37] Michael Chan: Okay.

[00:20:37] swyx: Um. But yeah, I mean, that's probably the one where like supplying the cache, like assuming, you know, the the problem with a low-level uh like so React is is actually becoming more low-level uh in the in the way that it it approaches things. And uh having to assume that you you do have multiple caches is probably something that most apps won't actually need to do. You you probably just need one cache. Um and and and the verbosity in in the in the API probably comes from there. But apart from that, like it's it's been perfectly fine. Like I I you know, no complaints at all about about that. Like everything moving common use cases towards, like these these things all used to be imperative. We used to use like componentDidMount, event handlers to and and state to you to do all to to do fetching. Yeah. Um that can be all moved to to declarative and and you can use Suspense to do that. Um and so I'm very happy with with uh with how that works out.

[00:21:27] Michael Chan: Yeah, I I I have to say the same. And I don't know if maybe I just don't have advanced use cases enough to be to be pushing the boundaries and find dissatisfaction. But I find that the team is so well-considered, and they're so far ahead in terms of their thinking. Like you said, they're from a different-

[00:21:44] swyx: We sound like two fanboys right now.

[00:21:45] Michael Chan: Oh, we are two fanboys!

[00:21:46] swyx: They're so good-looking.

[00:21:49] Michael Chan: They're so well-dressed. Their grooming's impeccable. Take or leave the APIs.

[00:21:55] swyx: No, they work hard. And and they and they they do take feedback from the community. I I think I think they also get a lot of crap sometimes, which is kind of undeserved because they you know, have debated these things way longer than we have.

[00:22:08] Michael Chan: Yeah. Well, and I see so often them, you know, responding diligently to conversations. Like just recently we had that kind of, you know, memo gate. Like everyone was super pissed about memo. I

[00:22:21] swyx: don't know about pissed, but sure. Yes.

[00:22:22] Michael Chan: Yeah. Some people were dissatisfied with the fact that it was a memo. Why

[00:22:25] swyx: don't you call it memo-ize?

[00:22:26] Michael Chan: Yeah. And um, I just, I think that they take their their job of of communicating the hopes and ideas of the framework, um, even in light of kind of an undisclosed future really seriously, and I always appreciate that.

[00:22:40] swyx: Yeah, well, I mean, I think we've caught up to their vision of the future. There's pretty much nothing left that's not public about what they what they are planning for, you know, the next year, I guess.

[00:22:49] Michael Chan: Sure, sure. They gotta have ideas.

[00:22:51] swyx: They gotta have ideas. I'm excited about React Fusion, uh which you should you should definitely ask them about tomorrow. Okay. Uh which is uh prepack plus plus React, uh and that's all I know about it. But uh but I think I think we're we're moving towards uh what I call the age of ahead of time, like ahead of time compilation, which all the other frameworks are doing, and Svelte in particular has has been built from the ground up to do that. And I mean, that will be a step change in the bundle size and yeah, uh the way that we think about, um you know, what's what gets included and what what doesn't. Um and and I I think there's been this discussion about React.lazy as well, which is why can't every component just be lazy by default, and then the compiler just figures out which where to break it, and what and why are we manually figuring it out ourselves. So um I think there's I think this is very early days. I always like to say that um frontend is is still like Wild West. Yeah. And the reason that we have a lot of churn, it is not true that we have new frameworks appearing every day, but we do have we do have some churn. And but the reason we have churn is because it's it's so early, um and we're still exploring what the right solutions are. Um so check back in 100 years and we'll you know we'll have settled down on something.

[00:24:00] Michael Chan: Yeah, yeah.

[00:24:01] swyx: We just haven't had that that you know maturity yet of like other engineering disciplines.

[00:24:04] Michael Chan: Yeah, interesting. So you've been doing a lot of work uh on Reddit to make uh just make React a little bit more approachable for people who are incoming into the community. Uh can you talk to that?

[00:24:19] swyx: Yeah, I like to say that in in the our React.js community, uh we help people get started in React and then help people get jobs in React and everything in between. Is is a nice uh marketing tagline.

[00:24:30] Michael Chan: That's quite a quite a range of things that you do.

[00:24:33] swyx: Yeah, well, I mean, yeah, um, it's ambitious for sure, but I think it's bookended by those two clear points where we can help people. Uh and then everything everything else, um I would like to see it become uh the a single place where you can check in to see whatever is relevant um in the community, in the React community that day. Uh you you can see at the top of the sub- the subreddit, um and you can stay informed that way. You don't have to be on Twitter, you don't have to stay on 100 different GitHub issues. Yeah. And I think Reddit's a very good model for threaded discussions and and peer review, kind of like Hacker News but focused on a single topic. Sure. Um I've been a Redditor for a long time, and actually Dan picked— uh basically just said, like, you know, made me a mod and just and just just said, do what do whatever. You think is best. But I mean, I think it's doing well. We just hit 75,000 subscribers.

[00:25:25] Michael Chan: Wow, congratulations.

[00:25:26] swyx: Which is a huge- yeah, thank you. We're at like, I don't know, like 70% of JavaScript. I want to exceed the JavaScript community. That'd be quite a step if you exceeded JavaScript. We're not going to. Actually, I'm not sure about the number. Don't quote me on that. But I mean, I think, so I mean, we have to meet people where they are. We can't expect them to only be on Twitter or only look at every single GitHub issue. Uh I think that I can serve the community in this small way. Uh I don't like this ReactiFlux, uh with all respect to Mark and Carl and whoever runs uh ReactiFlux, because it's not open. You can't search, you you can't search from Google, and it's and and it's just like, it's not threaded, and it's just like, there's all these issues. So-

[00:26:11] Michael Chan: That was hard for for me in particular. I remember I, because I you we use Slack for work. Yeah. And not everybody does. I use Slack.

[00:26:17] swyx: I use Slack. I'm not a chat guy. Maybe I'm not a chat guy.

[00:26:20] Michael Chan: But when that uh when that community moved, for for all the right reasons, obviously, um it was just one more app that I was gonna have to have open all the time, and I just didn't. I just stopped. Yeah. Uh which is a bummer.

[00:26:31] swyx: But but it but it's really good for some people, right? Yeah. So it should continue to exist. But that's not to say that the Reddit community isn't on this um isn't deserving of the same quality. And I think for a long time, like when I was learning React, I I looked at the Reddit community, I was like, oh, there's nothing going on here, I'm gonna peace. Yeah. But like that's not you know, that's not helpful to the 70,000 people who are on there. Um, so I think, I think, uh, you know, I'm trying to get the quality up. I definitely welcome more, uh, you know, advanced conversations. We we tend to get a lot of like, hey, is React good for SEO? And then we answer the question. Gotcha. So I'm trying to build up that base of people who are like competent in React, who who help out beginners, and but then also can discuss, uh, real have real debates and not like, you know, rehash the same like topics over and over again.

[00:27:12] Michael Chan: Interesting. So what are some of the successes that you've you've seen in your goal to help people from the beginning to hiring and everything in between?

[00:27:20] swyx: Um, well, so, uh, I mean, I think we have the biggest React job board in the world. So every every every month I just post like a who's hiring, the same thing on on on Hacker News, uh, but it's only focused on React so people can get jobs, uh, and and companies that want to hire, they they know they know where to go. Um, and then, but then I realized, uh, which I- so one thing I didn't like, that gave too much power to the companies because you're, you're, you know, handing over your CV and you're, you're applying, yeah, to them. So I started doing a who's available and then doing, and then giving power to agencies and freelancers.

[00:27:53] Michael Chan: Oh, interesting.

[00:27:54] swyx: Which like is completely unserved by, by other- I don't know of any other place to do it, right? Yeah, apart from like, I guess, uh, personal networks and stuff. So I know people, I know people have gotten jobs up there. I know that Uh, even companies that haven't been able- haven't hired, but they said that they got back to me and said they had high-quality candidates applying who really knew React. And it's no surprise because, you know, there's there's a filter there. Um, I would like to build up a reputation system kind of like Stack Overflow. Yeah. Um, where, uh, you know, people who people who have a reputation, who who have who have a history of like good discussions, um, that can be part of your application to a company, and people can pick you up just from your activity here. So it's a repositive loop. Of like better community, better job market, uh and so on and so forth. Um I don't know how much- I think I'm spending too much time on it because it's addicting. It's kind of like playing a game. It's a- to me, to me it's a game. To me it's like, all right-

[00:28:46] Michael Chan: I mean, it is kind of gamified, right?

[00:28:48] swyx: Yeah, it's like, it's like, all right, I got this big community, um and how- what, what can I do? Like, I mean, you know, it's not, it's not every day that you get a chance to, to, to, to serve like, you know, in, in, in some capacity. Yeah, like that. So what can I do? What ideas can I come up with? With, um, to to come to make to make this a success. So yeah, um, I I like it when people start— um, I I like when people— well, the React core team has started showing up, right? Uh, they they've always they've always been active, and and Dan in particular has has has been active. Um, but I think like just like making sure that they have a good venue to engage with the community.

[00:29:21] Michael Chan: Yeah.

[00:29:22] swyx: Um, that's the most that I can do. I mean, I I you know, ban bots and and trolls and stuff, um, but that's like kind of the day job. And then uh also like just making sure that like it's a good place to get exposure for people launching new projects, right?

[00:29:36] Michael Chan: Yeah.

[00:29:36] swyx: Like, here's my new library, have a look at it, I want some feedback, um maybe try it out and and give me some response. So I I I've been seeing people uh do that, and and to me that's a that's a good metric. Yeah. Um because there's there's not that many venues to launch and get noticed.

[00:29:50] Michael Chan: Sure.

[00:29:50] swyx: If if you like don't already have a huge following on Twitter, right?

[00:29:53] Michael Chan: Yeah, yeah.

[00:29:54] swyx: Um so it is very skewed on Twitter, and I I I think that Reddit's a better place to launch for for uh newer projects maybe.

[00:30:00] Michael Chan: So have you seen a lot of good feedback when people announce a project? That's awesome.

[00:30:04] swyx: Yeah. Um, so I think I think that's about it. I'm I'm trying to get— uh, so I have this like reading book club. Um, so right now we're going through the uh the React docs. Oh, cool. And making sure that, you know, every week we'll we'll read a page and we'll discuss it. And it's it's a book club, right? Um, but eventually I I hope to move on to to to actual books and and and. Because I think that technical books are a really underutilized source of technical learning.

[00:30:32] Michael Chan: Yeah.

[00:30:32] swyx: Because the authors spend so much time, you know, researching and and and and and writing writing it up, and then no one ever reads it because it's a book, right? It's so much commitment. But if you can break it up and make a book club out of it, uh it might be interesting.

[00:30:46] Michael Chan: Yeah, yeah, yeah. I agree. I was I was for years afraid of— um shoot, now I can't remember— CISSP, no. CSIP? Mm. I can't remember. Structured Computer Programs. Okay. Structure- I don't remember.

[00:31:00] swyx: Is that a- is that a famous book?

[00:31:02] Michael Chan: Yeah, it's kind of like a classic-

[00:31:04] swyx: Programming language?

[00:31:04] Michael Chan: Programming book. I think it was from- I think I've seen it. Curriculum from MIT. Yeah, there's like a wizard on the front of it with a lambda. And yeah, um, I was super intimidated by that book. And, um, and I just- I was like, you know what, it's- I've been doing this for a long time. It's time for me to read this, this book. And I was amazed at how approachable it was. And all this time I'd been uh avoiding it.

[00:31:26] swyx: Yeah.

[00:31:26] Michael Chan: When I should have just dove in. So I love this idea that you're you're doing.

[00:31:29] swyx: Yeah.

[00:31:30] Michael Chan: So for those who are looking to get started, um how do you recommend that they get started?

[00:31:36] swyx: Right. So, it depends on depends how how much they've already done. If like if they're like completely from uh you know starting from scratch, I do recommend freeCodeCamp. That's where I got my start. Okay. But then there's also like Codecademy. I don't recommend Udacity- sorry, I don't I don't recommend Udemy, like the the like $10 courses that you can take, because they definitely- it's there's a difference between like teaching you the principles and the APIs as compared to here, watch this video of me making an app and then you do the exact same motions to make the app and then you're on your own, which which Udemy tends to do.

[00:32:15] Michael Chan: Oh, like here's a thing, we're gonna make it. But just kind of showing you the steps and not really conveying the concepts. Yeah.

[00:32:23] swyx: Gotcha. Or explaining what to do if stuff goes wrong. It's always happy path, right? Yeah. So that's not very helpful when you run when you go off course and then you're like, ah, you know, then you have to Google stuff. So um so so knowing— um so we have recommended free courses uh that uh they're they're they're good for beginners on our on our Reddit. Um so you can definitely check that out. And uh I think I think once you get a basic level of, I can finish the uh the full stack projects on freeCodeCamp, uh which take which took me beginning to end about 3 months, okay, um uh then then you start building your own things, right? Um whatever small little apps that you want, um as well as start you start to uh learn in public, which is kind of like my big my other big thing uh advice for people, which is um whatever you whatever you learn, you should um get in the habit of producing uh exhaust, like learning exhaust.

[00:33:16] Michael Chan: Oh, Brad Frost has a talk about that. Really? Because it— uh

[00:33:20] swyx: I didn't know that.

[00:33:20] Michael Chan: Yeah, yeah, he calls it creative exhaust.

[00:33:22] swyx: Creative exhaust.

[00:33:23] Michael Chan: And it's his uh kind of guiding philosophy in why he does all of his work in the open.

[00:33:28] swyx: Yeah, yeah, okay, I sounds like I need to uh learn about that. I know you had a podcast with him, um and I have to admit I haven't caught up on that one.

[00:33:36] Michael Chan: No, no, no, we uh we actually didn't talk about it in that show. So yeah.

[00:33:40] swyx: Um, uh, but like, I subscribe to too many podcasts. Um, but anyway, so, so yeah, I kind of think about it like earthworms, like, you know, when earthworms like eat the ground, they also leave residue that's like more, uh, makes the ground more fertile for plants. Um, so I'm the earthworm, I'm crunching through all this learning material, and then in my output, like I'm making talks, I'm writing blog posts, um, and and just and and just generally sharing my experience for others to follow. So you leave a trail, right? Yeah. But then also, Like, that's the bare minimum. Like, if no one reads your stuff, you will- future you will read your stuff.

[00:34:15] Michael Chan: Yes.

[00:34:15] swyx: Right? Which is good note-taking. But more- far more often than you think, the people who, like, you're learning about, if you get stuff wrong, they will crawl over broken glass to come and correct you. Because the best way to learn something on the internet is to be wrong, right? Yeah. And, and, and so, so like, I make notes. I, I like- I write my React TypeScript cheat sheet and people come in and say like, this, this, this is wrong. I'm like, thank you. As long as- I always like to say that you can learn so much on the internet for the low, low price of your ego, right? So if you if you just, you know, you divorce-

[00:34:53] Michael Chan: So true.

[00:34:53] swyx: If you divorce your utter ignorance, I I always like to say ignorance is power. Because-

[00:34:58] Michael Chan: Wow.

[00:34:58] swyx: And and and knowledge, of course knowledge is power. I'm not I'm not I'm not like a nihilist, but I'm just— uh but like, you know, when I like when you get hired on like as as a bootcamp grad, right? When I got hired on my first job, uh and the first day they ask you like, are you able to do stuff? Your instinct as a as someone with imposter syndrome is to go, um yeah, sure, I can do it. And then you go and then you go figure out how to do it. But no, they already hired you. So what you should say is, no, I have no idea. Can you help me? Um and that that ignorance, if you wear it on your sleeve and you're honest and but you're earnest, right? You put in the work. Yeah. Right? Um, it's a superpower because no one can fault you for that.

[00:35:37] Michael Chan: Yes.

[00:35:38] swyx: It's it's just you, like it's all in your head, right? So so so I like to do that, and I like to do that. Um, I probably like— it it probably should— you should you should try to do it to the point where you're uncomfortable.

[00:35:49] Michael Chan: Yeah.

[00:35:50] swyx: Right, because that's where you're you're really growing. Um, and the more you do it, the more you— the more you like— the more ground you cover and the more comfortable. And then you look back and you're like, oh, I've covered a lot of ground. Yes. And people have helped me along the way. And I know like, I think I think Dan, the the only reason like Dan's like helped me is because I've like been wrong on React, right? And he will come in like, you know, do his thing. And and I'm better off for it, right? Yeah, yeah. And and if I share my experience, then I'm the amplifier to to him, and that increases the value of him helping me.

[00:36:20] Michael Chan: Yeah.

[00:36:21] swyx: Right, so learning in public has so many benefits um for not just like yourself, but then also like uh the the general community around you, which like I really like a lot. Uh and I try to preach that to as many people as I can.

[00:36:32] Michael Chan: I love that, that's a great message. I remember telling a friend of mine early on, I was like, hey, and this was when I was pretty new in development too, but I was learning this lesson as well. I was like, hey, so if you need to learn something, I was like, don't post a question on Stack Overflow, post a wrong answer on Stack Overflow.

[00:36:50] swyx: I think there's a there's a there's a name for this law. I think it's like Godwin's Law. Um, but yeah, yeah, it's it's pretty true.

[00:36:56] Michael Chan: It is, it is, and you learn so much faster. It's a lot more like an apprenticeship model where you are expected to do something wrong and then be corrected. Yeah. And that is a- that's a really successful model.

[00:37:07] swyx: Yeah, I highly recommend it. Um, that's what I've been doing with Suspense. That's why I do these things. Um, I also have a bias towards covering the new things. Um, and and that's that's another piece of- like, I have like these like 7 things that I advise new new new grads on. Um, but one of this one of them is specialize in the new. Um, I'm never gonna compete with like the guy with like 20 years PHP experience.

[00:37:29] Michael Chan: Sure.

[00:37:29] swyx: Right? But You know, React, if you invented it, you can maximum have 5 years experience.

[00:37:35] Michael Chan: Yeah.

[00:37:35] swyx: Right? So like, I can, I can be somewhat like competent there. Yeah. And definitely more competent on the newer stuff, which like people are dragged, like they don't have time for that. And so I can be helpful, and, and through, and through, through being helpful, I can be on the React podcast. Which like, I have no- I, I'm very, I'm very aware that I have no place being- I have no place being here, but um I you know I'm I'm I'm happy to to to to share my experience. I I I want like more than anything, I want other people to do the same.

[00:38:05] Michael Chan: Well, I think you absolutely do have a place being here. That's why I wanted you wanted you on. But I think I think it's because of that creative exhaust, the fact that you are helping people and you are like all of these things that you you talked about in our recommendations have have given you a platform to help other people. And honestly, I want this show to be about people and about getting competent in React. And uh I think that you're modeling that super well. So, thank you so much for being on the show. I really appreciate your time.

[00:38:31] swyx: Thanks for having me. Crazy React Asians, part 2.

[00:38:34] Michael Chan: Part 2. I'll link part 1.

[00:38:37] swyx: Awesome.

[00:38:38] Michael Chan: Thanks, Sean.

[00:38:38] swyx: All right.

[00:38:41] Michael Chan: Thank you for listening to this episode of React Podcast. This show wouldn't exist if you weren't there to listen. It also wouldn't exist without Spec.fm. A podcast network built to help designers and developers level up. If you like React Podcast, you can find other shows like it on spec.fm. Thanks specifically to Mikael Delport, who produced and edited this show. If you find this show fun, useful, or helpful, please consider leaving a review on iTunes, Spotify, or wherever you catch your podcasts. It'll help other developers and designers Find the interviews and news that we cover here. And finally, you can get in touch with us on Twitter @reactpodcast or spectrum.chat/reactpodcast. As always, I'm Chantastic. Thank you for listening. We'll be in your ears again next week.