110: Sam Selikoff on Finding a Full Stack React
News!
We have a YouTube channel for React Podcast 🥳
Watch the livestream of this chat with Sam and Subscribe for future chats!
Featuring
Links
- Frontend First Podcast with Sam Selikoff and Ryan Toronto
- EmberMap — videos for professional Ember.js developers
- NextJS
- Mirage — Build complete frontend features, even if your API doesn't exist
- Firebase
- Hasura
- JSON API
- Sam's Recipe Site
- Netlify Auth
- Firebase Auth
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
imgix
imgix delivers sharp, snappy images with powerful image processing and a simple API, on a global CDN. imgix.com
Transcript
[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. This week, Sam Selikoff and I talk about our transition from bundled, batteries-included frameworks like Rails to unbundled, choose-your-own-adventure libraries like React. Sam has an incredible podcast that you should totally check out at frontendfirst.fm, where he and Ryan Toronto talk about the nitty-gritty of daily product development for frontend developers. After you listen and enjoy this chat, you should catch up on their show. This episode is sponsored by Infinite Red and imgix. Unprocessed images kill performance. Frontend teams will optimize single kilobytes out of their JavaScript bundles only to throw away performance with large, unoptimized images that, despite their size, Still look bad on many devices. imgix helps you deliver sharp, snappy images to customers with powerful image processing and a simple API. Here's how it works. You put your master image on imgix, get it there manually or via build step. Now reference those images in your product to have imgix tune and optimize them perfectly for presentation on web and mobile devices. That plus their global CDN make imgix worth it, but they also give you a simple API for Customizing images via URL. I can only describe this as Imagix turning your image tags into a declarative Photoshop. You get basics like size, crop, position, et cetera, as well as creative APIs like filters, blend modes, text, and watermark overlays, and hundreds more. Follow the lead of Unsplash, Kickstarter, and Prismic who use Imagix because they know the importance of image optimization to user experience. Get a $300 account credit at Imagix imgix.com/reactpodcast. That's imgix, I-M-G-I-X, .com/reactpodcast. Working with Infinite Red gives you access to developers who know the direction React and React Native are headed. This is a superpower. It's the power of sight. It means you spend more time delighting customers with quality software and less time rebuilding your entire app because you picked a shortsighted state management library. Infinite Red Infinite have been designing, building, and shipping quality apps for over 10 years and make their expertise and industry connections available to you. Infinite Red will give you $750 when you start or refer a new project. So, to get expert help, visit reactpodcast.infinite.red. Sam Selikoff, welcome to React Podcast.
[00:02:59] Sam Selikoff: Chantastic. Do people just not even know your name because they just see you and they say Chantastic?
[00:03:05] Michael Chan: I try really hard to avoid actually using my name. I don't know where that came from, but like I do, and I'm always surprised when people online actually call me Michael. It's kind of, it's kind of weird. It's like, like I expect my family to do that, but then everyone else is just like, it's like Chan or like Chantastic and cool. It feels almost like a violation, right? When someone's like, hey, Michael, I'm like,
[00:03:28] Sam Selikoff: yeah,
[00:03:29] Michael Chan: do I- are we related?
[00:03:30] Sam Selikoff: And you see Chan or Chan-tastic. So Chan-tastic. Awesome to be here, man. Thank you so much for reaching out. I've been, uh, I've been looking forward to meeting you actually. We've had some interactions online over the years, but, uh, you know, this is, this is the best we got during COVID but this is pretty cool. So it's, it's awesome to be here, man.
[00:03:46] Michael Chan: Yeah. Well, I'm super happy to have you on and, you know, like you said, we've been kind of like on the edges of each other's circles for a while and it's been fun to talk more with you lately. Um, but I think like, we were trying to figure this out, like before we actually started the, the call side or like the, the podcast part of this, but it was like somewhere around like Ember, like original EmberConf days is maybe when we were like kind of around each other's spheres. Is that right?
[00:04:14] Sam Selikoff: Definitely. So like I got basically into programming around 2012 and was in Boston and found Ember through Dockyard. And, um, that's kind of when I went all in on Ember for, for a while. And around that time, you know, Ryan Florence, and then like the folks on JavaScript Jabber, like uh Jameson and all all these people. And and I think you were in that that crew, like you all kind of knew each other, like uh Brandon Hayes, like all all these people kind of knew each other and were writing about frontend JavaScript online, were like circling around. And I got in just like a year late and I never saw a lot of those people uh at the actual conference, even though I've had lots of interactions with them uh since online. So it's kind of funny, like the world felt a lot smaller back then, you know. Yeah.
[00:04:57] Michael Chan: Oh man. Yes, absolutely. It truly did. It felt way smaller. Like, so I'm trying to think, was it 2013? Was that like the first Ember Conf or was that 2014?
[00:05:08] Sam Selikoff: I think like, yeah, I think, I think probably Ember uh 2012 was like Ember Camp or something. And so maybe the first Ember Conf was 2013 and then maybe the second one, which was my first one, was in 2014, I think something like that.
[00:05:20] Michael Chan: Oh man. Man. Yeah, it's true. Those feel like the days. It was like, I feel like back then it still felt like um, frontend was this thing that like just a handful of people really cared about. Like there were a bunch of nuts who like really wanted to like make really great user experiences and want to- wanted to build applications kind of from, you know, flows or components first instead of building them from like the database first. And that was fun.
[00:05:52] Sam Selikoff: Yeah, totally. It was fun. It was like you had- it was a mix of like the wannabe native UI developers who who like were envious of like all this really cool UI tech that was coming out. Um, 'Cause it had only been like 4 or 5 years with the iPhone out. And so- Yes. It's funny, it feels like so old, long ago, but I still feel like I'm a new front-end development developer just because, I don't know, things change fast and there's so many technologies. But you had those people, but then you also had these people with this really deep background doing open source web stuff. And so, you know, a lot of really bright people in this space and that's, that's really what attracted me to it, you know?
[00:06:30] Michael Chan: Yeah. Yeah. Now I wanna talk about your like style because I feel like even back then you had incredible production value and like all your stuff, we're gonna talk about like, you know, your podcast and your YouTube channel and like all the stuff that you're doing. Um, but like you've always had a really distinct look. I remember seeing some of the first like Ember Map videos just being like, this is amazing. Like, this is exactly what like educational content like should look like. They're just these quick, like little like snippet videos. They're incredible. Um, so like what, I guess you said you got into programming around 2012 and I'm curious like what your background was before that, that kind of positioned you to do that kind of like really cool, um, like visual stuff that you've been doing.
[00:07:14] Sam Selikoff: Yeah. Well, I really appreciate the kind words, man. Thank you. Um, I uh before I fell into programming, I was thought I was gonna be a professor. And so I've been basically teaching most of my career, you know, most of my life. I mean, starting with like working at Kaplan and tutoring the GRE in college, and then up through thinking I was gonna be a professor going to grad school. So, um, a lot of this has been like me trying to figure out how to make a career out of teaching. And, you know, I love the web and the fact that we can reach so many more people than like academic economists can reach writing some obscure journal article for 10 other people in the world. Yeah. So, um, the video stuff is just- I just felt like that was some of the most effective ways to reach people and to communicate these these ideas. Um, and then I guess the quality thing is just- I don't know. It's just, um, you know, I I think one of the reasons I fell into front-end development, like I learned programming, I learned You know, I started with Symfony and like Perl stuff, but then quickly really fell in love with JavaScript and Backbone and then Ember. And and for me, it was because I like the design and the polish and the UI and how that crosses over. So um I always liked polish, and I'm drawn to people who who put a lot of effort into polish. And I feel like it speaks well of of the other parts of the work that they do. If if someone puts a polished product out there and they spend a lot of time on that, it is often a sign that they spent a lot of time on the inner sides as well. So, um, yeah, that was always just kind of our, you know, my goal and then and then eventually our goal when we started Ember Map.
[00:08:50] Michael Chan: It's really interesting that you say that we're like as frontend developers, we're kind of like wannabe native developers. And I do think that's so true. Like, like there's this huge chip on our shoulder maybe. And like, it's like we always want to prove that like we can do, we can deliver like similar or better experiences on the web. And it just takes so much effort to actually make that happen.
[00:09:15] Sam Selikoff: Well, I mean, you really, when you start doing this frontend stuff, you get such an appreciation for the constraints that we face because we just, we don't have the luxury of starting out with 50 megabytes of code on the user's device. And so, you know, when Ember started doing the server-side rendering stuff and uh Tom Dale was talking a lot at conferences about like bending this trade-off curve between like the fast initial render and like the rich subsequent interactions. That's really where it kind of crystallized in my mind about how difficult this problem is. And um you know the stuff with like Next.js these days is just like blowing my mind. So I feel like we are learning a lot. But you know constraints can be a good thing. And yeah, I think I think in a lot of ways we've we've we've come really, really far.
[00:09:58] Michael Chan: Do you feel like it takes kind of a a certain personality to like want to be involved in this stuff? Because I think there is maybe this notion of like-
[00:10:07] Sam Selikoff: Masochist?
[00:10:08] Michael Chan: Yeah, like, are you a little- are we a little masochistic, right? Because, you know, it would be easier if like, if we really wanted to just make great UIs, like, to just do them on like, you know, use SwiftUI and like get a lot of stuff for free and then really like obsess over the, like, the real, the nitty-gritty details. Whereas like, for us, it's like we spend so much time just thinking about how to shave off like bytes and like how we're gonna do that, like server rendering, client-side handoff, rehydration, all that kind of stuff. Um, like, I don't know, this is a very philosophical question, but like, I'm curious, like, do you feel like at the end of the day it's like actually worth it? Or is it something that we just get excited about it because we are maybe masochistic a little bit?
[00:10:54] Sam Selikoff: I think a lot of us are drawn to this because we feel like we have ownership in the direction of innovation. Interesting. And so, a lot of the people are, you know, writing the or contributing to the specification of how JavaScript evolves or um like new abstractions in the language that will help us with things like promises. Like I was started programming before promises were a thing. And then you think about distribution and ownership and just open source in general. Like I've never done native development, but people I've talked to say, like the open source uh level of collaboration is just nowhere near what it is in web. So, you know, the fact that I can just create a library in like one command, set up like testing on CI, publish it to npm, and you can start using it, and it's like gonna auto-test and auto-deploy, and we have version- like we think a lot about versioning and how to share code. I think all of that stuff makes us take ownership in it, and that's what we're drawn to about it. And like Yeah, maybe if you were just optimizing for like fastest time to polished UI, following, you know, Apple's guides and using SwiftUI might give you an incredible experience. But I think because we're, we're kind of like builders, we see ourselves like builders and we're shaping the future of it. So I think that might be part of it.
[00:12:08] Michael Chan: That's absolutely fascinating. That sounds right on to me, like to, to be honest, like, and I think that, you know, some of these closed platforms, it's like, you know, like a, you know, like SwiftUI or, you know, Apple devices and whatever, you're really making a product, but you don't have any ownership over like how it's made necessarily. Like you can customize it and tweak it and maybe like ask for certain things at WWDC every year.
[00:12:34] Sam Selikoff: Right.
[00:12:35] Michael Chan: But you're right, there is a level of ownership over like the web and like standards, and it feels kind of, you know, spunky, you know, even though it's been around for a really long time, it feels a little bit more like punk rock and raw, maybe.
[00:12:48] Sam Selikoff: Yeah. And like I do love Apple. Like I'm a huge Apple fanboy. Yeah, same. And and so I love the idea of like a polished product that's like closed in a sense for the for the sake of convenience and for the sake of like interoperability. But there is something about, you know, the open source stuff that I also really love. And um, you know, I learned so much at the beginning of my career through open source. I realized very quickly that open source is the best way to level up as a developer because all the best practices just bubble to the top. Like, bad practices can't really withstand, you know, thousands of developers looking at them. So if your question is how to organize code or how to do testing or how to build a 12-factor app, blah, blah, blah, like you're just gonna learn all this stuff. And then if you're at a company that doesn't do this stuff, you're just gonna like zoom ahead of them. And so- Yeah. You know, that was just, and I just learned so much from, you know, Yehua Katz and all these other leaders in the OSS world that, um, that, that's kind of why I fell in love with it. So it'd be tough for me to, to, you know, it'd be interesting to, to give SwiftUI a try and, and all that stuff. But, um, there's just so many cool people in like web tech, right? So.
[00:13:59] Michael Chan: Yeah. Yeah. No, I totally, I, I 100%, 100% agree. But I do wonder that sometimes, like, like, do I like the pain? Like, is that what draws me to this problem? To
[00:14:09] Sam Selikoff: a fault. Yeah.
[00:14:10] Michael Chan: Yeah. Yeah. Yeah. Yeah. Cause I am-
[00:14:12] Sam Selikoff: I mean, certainly we are guilty of like, you know, wheel reinventing or thinking like the smallest problem with an existing abstraction makes the whole thing not worth it and we need to start from scratch as opposed to just, you know, moving forward more together. And so, um, but you know, you also can never know when like the next really good abstraction with like a really clean boundary that we're gonna build upon is gonna come next. So, I don't know, innovation is messy, you know.
[00:14:39] Michael Chan: It is. It is. It takes it takes all types, right? Like it takes these people who are kind of like really want to be like close to the metal and then also people who are just like so far out, like to really kind of like define the next patterns that are gonna be, uh, you know, kind of like trickle down.
[00:14:53] Sam Selikoff: Right.
[00:14:53] Michael Chan: Um, now you've been doing a lot on online and I want to make sure that we kind of like properly shout out to all of that. Cause I actually, today I I I took a little bit of extra time cause I was like, I was like, okay, Sam's production value on like his podcast and YouTube and his like videos and stuff are like just so good. Like, I'm gonna have to like turn the light on. I'm gonna have to like fire up like the camera, put a shirt on.
[00:15:20] Sam Selikoff: And then I show up here just with my webcam on because I'm in this mode, man, for the last month because of COVID I've just been, I've been like, I'll be honest. I was about to say half checked out. I'm basically completely checked out. I'm, you know, I'm maintaining things and I'm working on things, but uh it's it's been a good summer to to relax a little bit. Um and so I I I do not have everything set up here 'cause I had just pulled down all my lights and stuff, but yeah. I appreciate the shout out.
[00:15:46] Michael Chan: Well, I, I hear you, man. Like the, uh, I've been, uh, I thought like kind of when COVID started, I was like, okay, now's my chance. Like I'm pretty introverted. Like we're just gonna, like, I'm just gonna just crush stuff right now. And like, no, it was like the opposite. I like, I could barely get motivated and it's like, I'm just playing. Like I got super into Destiny, the like video game from-
[00:16:07] Sam Selikoff: I got into Witcher 3. I sunk like 100 hours at the beginning of COVID into Witcher 3. It was completely absurd. And we all think we're introverts until we're literally not allowed to see anybody, and then you realize just how much of an introvert you really are. Totally. So once-
[00:16:20] Michael Chan: yeah, I feel like I picked up the video game habit just so I could like hang out with friends and stuff. It's like, yeah, it's crazy.
[00:16:27] Sam Selikoff: Destiny is awesome though. But yeah, like a month ago the restaurants kind of half opened here in New York, and so I've just been like getting away from the computer as much as I possibly can. I know there'll be plenty of time to come back. But, uh, yeah, need, need beach time, need fun outdoor New York time. It's been beautiful here. So yeah.
[00:16:45] Michael Chan: Yeah. So, um, tell me a little bit about- I know that you have, um, some really cool videos on YouTube that have, have explored your process of kind of going from, you know, Ember and learning all the things that you need to know to build sites with Next and, um, and that kind of stuff. And you've been covering, um, some similar topics on Frontside FM, um, or sorry, Frontend First. Frontside.
[00:17:08] Sam Selikoff: Frontside. That's the- that is the- you, you just triggered a neural connection because of, uh, the company from, uh, Brandon and Chris.
[00:17:17] Michael Chan: Yes. Yeah, yeah, yeah. I was like, why did that come into my, my brain? It was just like they were like linked in the-
[00:17:23] Sam Selikoff: Those are good guys though. Good guys. Real good guys.
[00:17:26] Michael Chan: Real good guys.
[00:17:26] Sam Selikoff: But yes, uh,
[00:17:27] Michael Chan: um, yeah, so Frontend First, you've been kind of covering some of these same topics and just kind of really, um, in a really fascinating and kind of like illuminating way talking about your experience actually building these things and coming from, you know, like, you know, more full-stack frameworks like React or even like fuller frontend frameworks like Ember. So tell me a little bit about that process, kind of like the things that you want to explore and share in those videos and podcasts.
[00:17:53] Sam Selikoff: Yep. So yeah, me and my business partner Ryan and friend Ryan Toronto, we run EmberMap.com and that's still going on today. We still make videos. And we have plenty of customers over there still learning Ember and all the new stuff coming there. But um about a year ago, we actually decided to work on moving one of our open source projects, Mirage, to make it framework agnostic. And so uh in doing that, we wanted to kind of get some reps in with React and Vue and you know Svelte and just try out um these things. And we had over the years like vicariously by like following, you know, you guys and Michael Jackson and Ryan Florence and all these folks because we had that shared background. You know, they did have the Rails background or the Ember background. Yeah. So they would kind of make those connections there. And so that made it really easy. And so, um, a little more than a year ago when we started really diving into it, it was it was just about, yeah, like let's see what it's like to really build something and and try to expose that learning process. And wanted a way to share those- share that. And naturally, like, we've been making videos for 3 years. So, um, I was like, yeah, I'm just gonna start putting these on YouTube basically. And just, you know, I've just been having fun with it. So I started doing that, like, I don't know, earlier this year, probably a little after COVID started. Um, and, um, yeah, so that's basically the story. And, you know, some of the videos are like technical tutorials, but some of them are just like reflections that I've had coming from a more batteries-included side. Yeah. And also seeing how my experience with something like Ember and the architecture that it gives you uh has influenced how I build React apps. Because a lot of it is- a lot of it I just carry over. So I feel like in in a in a lot of ways, Ember made me like gave me a head start on React, you know. I was um talking about this with some folks at a conference, like, before I really started going heavy on learning React. Um, and I was like sitting at this table with like these React developers. Folks had been doing it for a while and they were good. And like, um, they were like talking about how frustrating it was to get like routes working and to get your state synced with routes. And routing has always been one of Ember's big strengths. In fact, it was like one of the talking points when they first started. Was they were like evangelizing how important the URL was to the web. And, um, you know, in Ember, like they kind of nudge you very heavily towards like building route-based applications. Whereas, especially in React in the earlier days before things like Gatsby and Next had those conventions for you, or, um, when you would have to like use React Router on your own and understand it, a lot of folks would say, oh, I just like can use the state to like show a login component and otherwise show a home component. Then you're like, well, you can't send a link to a login component. And then like there's all these ramifications, right, for how you're thinking about structuring your app. So that's like, that's one example of like 100 that I could go through where, you know, um, just thinking in terms of how Ember architected things helped me navigate this really complex, sometimes fragmented world that React is in, right? While still being able to learn these, these smaller primitives.
[00:21:08] Michael Chan: It's really fascinating because I, I, the way you talk about it has a lot of reverence and I feel the same amount of reverence as well. Right. Like, I feel like, you know, Rails did a really good job of kind of like connecting. I've always said it like, it does a really good job of kind of like connecting HTTP to like a database, right? Like that's the, the beauty of Rails is that kind of like honored both of those, those things and then built a framework around that idea. And Ember, Ember really protected more than anything, like the public service of Ember was to protect the importance of the URL. And, you know, you've said that and, you know, I remember feeling that way as well. Like just feeling like, yes, like the URL is still important. Like we have to hold on to this thing. It can't just be like a slash and then like all of the state. Yeah.
[00:21:53] Sam Selikoff: Yeah.
[00:21:54] Michael Chan: And I I think that that is critically important. And frameworks like Ember like actually provide that for you. And they provide the mechanisms to think about your application in those terms. Like the And, you know, I still think about things in the the Rails, you know, like, you know, show, new, create, destroy. Right, right.
[00:22:13] Sam Selikoff: Resourceful, nouns, you know.
[00:22:15] Michael Chan: Yes.
[00:22:16] Sam Selikoff: There's so many lessons that carry over. I mean, a lot of times the way I think about this stuff is just like in like product development startups, which is like bundling or unbundling, right? If you hear people talk about new companies, it's like you're either bundling or you're unbundling. So, um. That's all it is if you think about it. So like, what's an example of like a really good- you know, like uh Gmail is like the interface and the chat and the to-do app, it's all right there. And then like Things comes out and it's just, you're unbundling one feature from Gmail and you're building a company around it, right? And then- Interesting. You have lots of this unbundling happening and then people like that there's a tool that does one thing very well. Um, but then there's a frac- there's a fragmentation and you start feeling the burden of like, oh, I use things for my to-do and this for my chat and this for my video and this for my email. What I really want is one place. So then you have like a Slack come on, which is like a bun- a rebundling where it's pulling in chat and file sharing and posts and stuff like that. So in a lot of ways you can simplify like, you know, product development Uh, in just the general marketplace of like, as like bundling and unbundling. And I think the same kind of thing happens in tech where uh Ember was trying to bundle together a lot of the ideas because we were frustrated with the fragmentation of, oh, I need Backbone, but then there's no like rendering layer. So I'll use this cobbled together with jQuery UI, and then I need a model layer. So I'll use like Marionette or something. So like we're frustrated because it's too unbundled. Ember comes along, bundles it. We like that they're talking about these ideas and solving the whole problem. But then like in some way, this is like an oversimplification, but in some ways Ember was like right in theory and wrong in practice. Like it, it was too ambitious. It like took on so much that there was such a big surface area. People would get frustrated when they ran up against those walls. And then, so we see an unbundling where React comes out is just the view layer. Okay. Now let's solve the state layer. It's Redux. Okay, let's start the routing layer. We have React Router or, you know, different ideas there. And so, and then Vue comes along and it's like kind of rebundling things, right? And now Next and Gatsby are kind of bundling things as well. So this, I I just think you will just keep seeing this. And but but things get better over time. Like, um, because those boundaries are more clear, you know?
[00:24:36] Michael Chan: Yeah, it is it is interesting. I I to be honest, this is the first time I've actually heard that term of like bundling and unbundling. And probably because I'm not like really connected with like the, you know, business side or like, you know, Silicon Valley like products and whatnot. But it's super fascinating because I feel like we've all felt that, you know, and a lot of people who are attracted to Vue, it's because it's it is more batteries included, right?
[00:25:02] Sam Selikoff: They don't want to make so many decisions. Yeah.
[00:25:04] Michael Chan: Yeah, yeah. And I can definitely empathize with that. Um, but But at the same time, like, having come from- it's almost like wherever your starting point is, right? Like, like, if you like really love a band, it's like your favorite album is the band that like you got introduced like to.
[00:25:20] Sam Selikoff: Yes.
[00:25:21] Michael Chan: And I feel like for a lot of us who've been like doing this for a while, it's like kind of like, for all of its faults or whatever, like I still love Rails, right? Yeah. And like, I can't not think about things in terms of Rails. And it's hard for me to imagine like, how would you even build an app you know, without this- without concepts of like, you know, collections, lists, you know, and show pages. And yeah, it is interesting how there's this kind of like cyclical nature to these things where it's like, you know, you you bundle them together and then you have to pull them apart and then you bundle them together again. And it's always kind of usually like in service of some type of maybe new construct or new like idea that needs to be brought to life.
[00:26:00] Sam Selikoff: Yeah, I I think um I mean, I'm a huge fan of Rails too, and I think DHH does a really good job of being clear about his values and articulating like why he does the things he does. If folks are interested in this part of the conversation, I made a YouTube video called React as a Programming Language for UIs, where I basically talk about this. Because when I um started learning React, I was frustrated that I felt like I was using a tool that was way too low level for building an app, and I wanted something that you know, was gonna get me farther faster. But I think if you go back and look at why React was created and the problems it was trying to solve and the values of the people who work on React, it starts to make a lot more sense. So-
[00:26:40] Michael Chan: Sure.
[00:26:40] Sam Selikoff: I'm like you, I share a lot of those values that, that DHH has talked about, you know, the Apple-like values of like a cohesive story. But honestly, like really over the last year of just trying to let go of some of those biases and like really just like let myself say, Okay, what if I just- it's gonna be lower level, but like you have these moments where you have a reference point in the past where you're working on a Rails app and like you're typing has_many, you're typing like this Rails DSL to like get something to work. And it's not- you're not coding. You basically can build a Rails app without coding. It's like- it's like a DSL for building apps. And you just look at the docs and you do it. And it's incredible how far you can get without knowing how anything works. And when you listen to Sebastian Markbåge, or Dan Abramov talk about React, that's not how they think about React at all. Uh, they actually say, like, uh, Dan said this thing that that he he said, I like hooks because they actually expose more of what React really is. So the idea is, like, we want to give you more power and um give you like sharper primitives because, um, you know, while higher level APIs can be more powerful, and let you do more without understanding it. There are those times where you run into those cases, you have no idea what's going on, and you're like, I just want to write some code, you know? Yeah. So that was the idea behind that video anyways. But I see it come up again and again. Yeah. And I I have that resistance in myself where I say, you know, um, why isn't this just done for me? Like, why isn't there a 404 page built in and I have to learn how to do this? Like, you know, Laravel is another example. Laravel came out of you know, who who would have thought like a new PHP framework would come out, right, and have more like popularity than Rails in like the 2010s, you know. But but again, if you listen to the values of of Taylor, they're gonna sound a lot like the values of DHH, and um it's very batteries included. So I think it's important to to understand the values of the of the people that that made the tool that you're using and understand the problems it was designed to solve. Yeah. Because that's gonna- that's gonna be how you get the most out of it.
[00:28:47] Michael Chan: I think it's really interesting that you, you mentioned, uh, Laravel, because it's so true. I think that like anything that you're like really passionate about, there's gonna be other people that are passionate about it. And like, I would never have guessed like a PHP framework in the like 2010s to like now would be like so beloved. And it is.
[00:29:08] Sam Selikoff: Oh yeah, it's crazy. I want to be a PHP developer just because, you know, this community is really awesome. And I'm like, yeah, I have never even written a line of Laravel, you know. Last line of PHP I wrote was like Symfony whatever version I was on in 2011 or 2012, I guess. And, um, but, uh, it's really cool, you know. It's the- they, they have the values, but they have the execution on the values as well. So it lines up.
[00:29:33] Michael Chan: Yeah. Now, swyx, um, swyx online, he kind of talks about how And I don't know, I, I don't know if he was just like retweeting this or whatever, but I know that I heard it from him, this idea that, you know, React is a very like low-level type of library. And we're, we're starting to see like distributions almost of it. So you have like Next, you have Gatsby, you have like other things that are kind of like taking that low-level thing and actually turning it into a framework. Um, I guess, you know, like Blitz and Redwood are also kind of like in that space where it's like we're trying to make more and more of that. Or I guess to use the language we've been talking about, like rebundling, right? Right, right.
[00:30:14] Sam Selikoff: Bundling.
[00:30:15] Michael Chan: Part of that, yeah. Um, and I'm kind of curious, like, how do you feel about like some of the things that have been coming into place? I know that you've been using um Next a lot. Like, does it get you- does it feel like it strikes the right balance? Or would you still like to see more of those like concepts, kind of like, you know, Rails has, like the the really strict application design concepts?
[00:30:38] Sam Selikoff: Yeah, I think my perspective on this over the last, you know, 7 years has changed. I think at the beginning I I believed more this idea that if you don't tackle the whole problem, then you aren't going to be able to to solve it all together. So your data library needs to understand your routing so that you can you can do the caching right. And so, when you visit a route, the data layer or or whatever knows that it's already been there and it can reuse the query and and all this stuff. And there are benefits you get when all the pieces know more about each other. But I think the big shift in my thinking here has been that it's like design by by like top-down design is like very hard. And this stuff is very hard. And like finding those correct boundaries is is difficult. So I I think the way— I think those higher-level APIs are still the goal, but I think the way to get there is through lower-level tinkering and experimentation. And so, um, for me, like, it's been a big shift. But, you know, in the last year, I've we've done like client work and we've built like miragejs.com with Gatsby. And then I've also been doing a lot of Next. And, you know, I think me of 5 years ago would have been like, oh, Gatsby is great. Like I need to— Bring something in, I just install a Gatsby plugin, boom, it works. And um and Next makes you learn all this code and all these these things you have to do, which feels like they should come out of the box. But you know recently, you're also kind of catching me at the height of my like Next fanboyism right now. Oh, sure, sure. Because I just had some amazing experiences. And they've been shipping like insanely awesome features so fast. So you know uh things that would have frustrated me about working with a tool like Next, Um, now I'm like, no, this is right. Like they are, you know, they're they're doing these smaller things. And it's very clear like what their domain is and and what what they consider part of their responsibility and not. So, like, you know, Gatsby has like an image component uh that helps you like serve images. Like Next doesn't have that. But it's like, again, past me would have been like, why don't you come with a nice image component? But now it's like Next is focused on like helping you architect your app in a way and fetch data in a way that's gonna make it fast and like help you scale up and not run into like a lot of issues that people who have been building SPAs for years have. And that's like what they're tackling. And so, there is like a React Image Component library out there. And you can find it. And yeah, would it be nice if it was just like part of Next? I guess so. And maybe one day it will be. But that's like the tradeoff that they're making. And I think it's a I think it's a good one.
[00:33:14] Michael Chan: Yeah, yeah. Now, what do you think of- and I don't have a lot of experience with this, but I know there's some kind of uh nascent frameworks out there kind of that build on top of Next. I think Blitz is one of these. And it kind of tries to marry, you know, Next as like, again, like kind of like a stepping stone, a lower level like thing with some higher level concepts, you know, brought in a lot from Rails. Um, does that sound like at the place that you're in right now, does that sound kind of like interesting to you? Or have you been enjoying owning more of the problem than when you were working with something like Ember?
[00:33:50] Sam Selikoff: I think I've been enjoying owning more of it. And and the the Blitz stuff and the Redwood stuff, you know, we talked to Tom on our our podcast from uh Redwood. And um, you know, it's it's interesting. We went through the the startup guide and did feel kind of like doing a Rails app. But like you have Prisma, you have like the database stuff. Like, also, I'm in this point where like I don't want to write backend code anymore, man. Like, I've written I've written too many like request specs and controller code for Rails, and like that always feels like the most menial, like least value-added part of my job. And so- Yeah. You know, we had like a really amazing experience with Firebase a couple years ago, and and so these days I'm like going back into that and learning about Hasura and seeing how far I can get without writing a line of backend code. So that's one part of it, but The other part is just like, again, I think it's the higher level point is like going back to like being about being humble about what we know and what boundaries we think are right and not trying to take off too- not trying to bite off too big of a part of the problem because it's just really hard. And so I want to bet on things that are clear about their boundaries and that have a good community and that aren't trying to overreach maybe. Um, you know, community is so important in open source. And what tools you you choose because the community has a huge effect on how long-lasting it is, how it's gonna grow over time, whether you're investing in something that's gonna last. Um, so for me, a tool like Next feels like a much more appeasing like bet uh thing to invest my time on, um because I mean they're having like a conference now and it's yeah there's a company that's that's backed is backing it, but it's also again, it's like those boundaries. That it has. It's solving one part of the problem very well. And uh you can see how it fits in with the rest of the pieces. So.
[00:35:31] Michael Chan: Yeah, yeah. You know, it's funny, like as much as I love Rails and would totally use it for a project, um there's a class of things that like I kind of like the free- like you're talking about. I like the freedom of being able to solve the whole problem in Next. And like, yeah, maybe sometimes you shoot yourself in the foot. But um that freedom is also kind of like exciting in a way.
[00:35:52] Sam Selikoff: Yeah. I think the other thing about Rails that for me like uh counteracts some of this these forces is the fact that it's used to power Basecamp, which has been around. And and and and it's not going anywhere. And it's a big big app that they work on all the time. So I'm a big believer in this idea that like the best open source is extracted, not designed. So when people try to architect something from up high on the clouds and they come down with a tabernacle of the new framework from that's from their mind as opposed to from boots on the ground experience. Yeah. I, you know, color me skeptical, right? So, um, you know, Redwood I think is is being used for for their new startup, which is cool. Um, but it's still it's still new. Whereas like Rails was literally extracted, um, years after they started. And uh, and then again, also investing in that community. So I think if there was a bigger tool, but it was like I mean, that's one of the reasons why React is so robust and why why it nailed the boundaries, because it went through all these iterations early on. It's like, oh, we've been using this at Facebook for years. Let's share it with you. It's not going anywhere, you know, and so on. So I I think that's another one of my values that I think is important that I've gotten from some of these, you know, open source leaders is like the value of code being extracted rather than designed.
[00:37:12] Michael Chan: Yeah. And I think that brings up an interesting point is is that You know, sometimes choosing a framework based on who is it, like what product it's being extracted from, um, is not a bad place to start. Like if you're like, if you're building a business or whatnot, like if you have a business that looks like Basecamp, like building something on Rails is gonna maybe be like a pretty good bet, you know, versus like if you're building a social network, like, you know, maybe React and GraphQL is probably gonna be your best bet because it's like, you know, battle tested for exactly that use case.
[00:37:45] Sam Selikoff: Yeah, absolutely. And again, this goes back to like the idea of there being no silver bullet and understanding what problem the tool you're using is solving.
[00:37:52] Michael Chan: Yeah. Yeah. Interesting. Interesting. I'm curious, like, so I know that Ember has has had concepts of like components and whatnot as well, but I'm kind of curious, like, what has been some of your biggest struggles, you know, actually building something with Next? Um, I mean, is it like figuring out the data layer and having to like own all that? You mentioned Firebase and Hasura and all that. Uh is it auth? Um like what are what are some of the big struggles that you find when building full-stack applications um with with React, Next, however you're building them?
[00:38:29] Sam Selikoff: Yeah, data. I would say it's 100% data. I mean, the guides don't even tell you anything really about data fetching, which is kind of absurd. Like that's just whatever I can— it really grinds my gears, I guess. It's like, you know, I I understand. I just said all this stuff about having the right boundaries and everything, but it's like, we still gotta render data from a backend somewhere, right? Like servers didn't just go away. And if you look at the guides, you know, for how to do data stuff with hooks, you find like a link to a blog post and it's like, come on guys. Like let's, you know, can we get some, like, I want to just see how you would do this today. Like I get that there might not be a first-class thing here, but yeah, you know, Ember has Ember Data, which is a separate library. You don't have to use it with Ember, but it's like a- it's inspired by Rails and it helps you think about domain modeling and relationships. Yeah. So like if I have a post with many comments, I can each over them and it all works. I can think about how I would build that query. When I came to React and I was finding examples or even helping folks and just looking at their code, that's where I was coming from. And I would see them doing lots of things like just rendering from JSON. And I knew what the problems were with that and why tools like Ember Data existed. And even like the JSON API spec, which is like something that came out of the Ember community as a way to like normalize data going over the wire. I didn't find a lot of people talking about this sort of thing uh in the React community. And um there's like tools like Apollo um that, you know, are more focused on domain modeling. But I didn't want to jump to a tool. I wanted to I wanted to understand how folks were thinking about it or just yeah I just I just feel like if you try to make like a a to-do a to-do app that like does CRUD on data, it's gonna be it's gonna look very different. So like that's one thing for me where like if you get 10 React experts to make a to-do app and they have to CRUD like to-dos, I think it'll look very, very different. Whereas if you ask them how to do like a toggle or like, um, render something, they're gonna be using state and effects in in the right way. They're gonna be thinking about that the same way, but we don't have that same shared vocabulary for data stuff. And I know a lot of the things that the React team is working on right now has to do with data, but I still think it would be valuable if there was more resources around like, okay, given that it is, you know, September 2020, me, someone who works on React or, you know, has used it a lot, this is how I would do a data fetching thing, right?
[00:40:56] Michael Chan: Yeah. Yeah. That, I mean, that really does feel- I think those are the two pains that I feel the most. Right. And I mean, especially like when you try to teach React, you know, so many people wanna know like, well, how do I do this? Like as a full stack thing. Like, 'cause I think a lot of people, they, they get into programming or like UI development because they wanna build a product, right? Like they have some type of app or like vision for the world that they wanna like build. And the answer to that is like not clear. It's like, okay, well I can teach you React. But like if you actually want to persist any of this data, um, well, there's 500 ways you could do it.
[00:41:30] Sam Selikoff: Yeah, yeah, that's ridiculous. Like there, I think there should be- I think the tutorial that someone starts with should optimize for like time to first persistence operation. So like how fast can I get a React app creating a todo so that such that I can reload the page or open it on my phone and see that stinking todo that I created. And this is where like- well, this is why I've been so impressed with the Next stuff is because it's actually easier than React. Because if you do data fetching in React, let's say you render the page and then you use an effect and it has an empty bracket so it only runs once. It makes a fetch call to your to-dos, you set some state, and then you render from state. And then you're off to the races. But like you have to understand the effect You are rendering, uh the first render is not gonna have data. So those things are gonna be undefined. You have to account for that. Um, you know, in Ember, like Ember has this notion built in because the routing, the router is built into the framework of like, I click a link, I load some data and then I render. And that's like a very easy pattern to do. But if you wanna do that in React, it's it's very hard. So you have to understand the useEffect stuff. And again, this is where like getting more comfortable with the lower level primitives Yeah. But I think it could be like progressively disclosed better. And in Next, you can export an async function, which is very convenient because data fetching is asynchronous. So it's actually nice to have like a first-class concept of like, oh, this thing is gonna take a while. Okay, here's an async function called get, you know, static props. And you can say await, which is great. And you can fetch some data and return it. And then you can render your component with that data. So like If you're teaching someone to render a list of todos from a server, your Next component or your Next page with that getStaticProps export and then your React component is gonna just be so much easier to explain and understand than a React component with the useEffect and all this switching and all this stuff. So, and explaining how like to rerun the effect when dependencies change. Like, again, it's not as capable because you're doing like a one-shot fetch. On the server, let's say. But still, it's it's it's like that progressive disclosure of complexity. You want to start with the simple thing and then say, oh, okay, now we want to add some interactivity, rich interactivity on the client. Here's where useEffect comes in. So I think some of that stuff uh would be nice to have a more like official response on. And it would like yeah it would smooth that that landing curve into React.
[00:43:57] Michael Chan: Yeah, I I totally agree. And it's I mean, admittedly, it is an incredibly sticky problem, especially the way we're trying to solve it, right? Where it's like you have you know client and uh you know server rendered stuff and like the rehydration and all that kind of- it's like it's it's non-trivial the way that I know that everyone wants to solve it. Um and but I I do hope that like sometime soon, I don't know, maybe by like 2020 or something, we can we can actually tell people like, oh, hey, it's actually really easy to build a full stack application with React now, right? Like we can- Yeah. Here's how you fetch and post in like one article. Um, 'Cause that would just be really a really, really beautiful thing.
[00:44:38] Sam Selikoff: Yeah, it's definitely, definitely a hard problem. I mean, Ember Data was basically uh an attempt to bring ActiveRecord um from Rails to the JavaScript UI world. And the fact that it's an asynchronous place makes it like just so, so hard. So then we saw all these different things coming out and Redux and different ways to, you know, MobX, different ways to think about mutating state and fetching data and having a global cache that represents the data you've already fetched and how to revalidate when things go stale. So it's it's a super, super tough problem. But um yeah, so and and like not even to mention like relationships and all this stuff. Again, I think that I think the next— again, the the the the next approach of like doing the stale while revalidate thing is like, it's crazy how much complexity that eliminates from some of these solutions I've seen in the past. And I like that it was extracted from their work on their own dashboard. So I just think we have to do more tinkering and experimentation. And um, you know, we'll we'll we'll land on good good abstractions uh eventually. Hopefully sooner than later.
[00:45:46] Michael Chan: It's funny because as you were as you were saying that, I'm just thinking like, yeah, it's like we you know, that's just the like the post and fetch part of it, right? That's not like the actual relationships of the data, uh which is like a totally different, a totally different thing.
[00:46:01] Sam Selikoff: Yeah, I mean, it's, it really is, in some sense it's a really tough problem. In another sense, I do sometimes think like ActiveRecord is like just an amazing piece of technology. I mean, it really is the reason Rails is Rails. And they're basically solving the same problem. They have data in SQL, And they're trying to hydrate Ruby objects via select strings. And they have to maintain relational integrity. And they can do things where within a request-response lifecycle, there's a graph of objects that get hydrated. And there are some mutations that happen. And they have to check whether it's stale, just like we do uh in JavaScript. Um but usually it's more forgiving because the request and response lifecycle is so fast that Yeah. It's all thrown away. But there's still mutations that happen within that cycle. So you still have to check whether things are stale. You have to go back to the database. You have to figure out how to turn these weird SQL select strings into like a rich graph of objects. So really, if you think about it, it's the same thing. Rails or any server talking to a database is the same thing as a JavaScript client talking to a backend over HTTP API. And the problems that we have to solve of like turning that data into a graph on the client are are a lot of the same ones. And um you know so I think we there's still a lot of lessons we could have we could learn from there. And I still really love ActiveRecord and being able to say, yeah, a user has many posts, user.post.create, and you're not thinking about the SQL at all. They've managed to abstract away the SQL. Have we managed to abstract away APIs? We're not even close. Um you know so uh. Yeah. Again, like this is- part of it is that we're not working with uh SQL, which is a standardized query language. We get to make our own query language with every single project we build. So we make these bespoke APIs and everyone argues for weeks about whether camelCase or underscore their their keys. So then we have GraphQL comes out, which is solving a good problem and is scoped and is a good boundary. That's another example of something you wouldn't think would be a good solution to part of this problem because it's like, well, it still doesn't tell me what to call things, but at least it tells me, like, given the schema, here is how you query it. So it is more standard in that sense, but it still leaves a ton of unanswered questions. But, you know, imagine if we didn't need graphical to explore. Imagine if we had richer, you know, data fetching libraries that took care of those details for us. That's the world I want to see. That's the world I believe in.
[00:48:30] Michael Chan: Yeah. Now you mentioned um using uh Hasura. And if I remember correctly, it's basically a Postgres database uh service, but then it has a GraphQL um endpoint that you can access data through?
[00:48:44] Sam Selikoff: It's an it's an open source library that creates an instant real-time GraphQL API on top of a Postgres database. So, um you can run it locally. You can throw it up on Heroku. That's what I've always done. But you create some tables and then it introspects them and then gives you a GraphQL schema that you can use instantly, which is awesome. Oh, wow. It's not like the slickest product. It's like if they had like a product person to nail the onboarding experience, I think it would just be dynamite. But right now there's a few things to get it going. But I think they just came out with like Hasura Cloud, which is like a hosted version I haven't tried yet, but they have a button, you just click on it and they set you up on Heroku. So that's pretty cool. And yes, that's much closer to what I like. So I did that for like my little recipe side project, created a recipe table.
[00:49:30] Michael Chan: Super cool, by the way. Lots of polish there. I love it.
[00:49:33] Sam Selikoff: Thanks. Um, created some recipes, added some columns, you know, and um, boom, I was off to the races just, you know, writing GraphQL and GraphiQL and then pasting it right into my React app. So again, getting that full stack experience of creating recipes and seeing them, um, but not ha- only having one app, only having my React app and having it have that backend access without having to write server code, without having to write specs for my request to make sure the JSON looks a certain way. So that to me is much, much closer world to to where we want to be with. And then Firebase, maybe even more so in the sense that, you know, you don't even think about a lot of the stuff that you have to with with Hasura.
[00:50:12] Michael Chan: Yeah. Now I know Firebase also offers auth as well. Yeah. In in the Hasura case, like kind of what what were some what would some of your options be for using auth for like a Hasura-based application?
[00:50:24] Sam Selikoff: Yeah, so Hasura delegates um authorization- sorry, authentication and authorization. Authentication is that you are Michael Chan. Authorization is that Michael Chan has the authority to visit the 9th floor and go get the secret files from the FBI closet. So the authentication stuff Hasura delegates out. And so it says, give me a JWT, um or give me an endpoint that I can query to check if you have access, and I'll forward along the headers that you that came in your request. So they delegate authentication out. And I set that up, I've set that up with a JWT and I've also set it up with like a uh Netlify function that uses Firebase, just Firebase Auth. So I like I create a new Firebase project with just auth because Firebase's auth API is so good. It's like import Firebase, Firebase.signInWithEmailAndPassword, boom. And that's it. Like that's all you do and it's awesome. Yeah, yeah. Once you do that, then you can start making authenticated requests to your Hasura server. And it knows that you're authenticated because either it has a JWT or it has an endpoint it can check. But then for authorization, you add that within the Hasura UI to your table. So you can say recipes, um, we have different roles. Unauthenticated role is like an anonymous user and they can read all recipes, but they can't write. And then, you know, there's like a user, a logged-in user who can write to their own table or whatever, or their own, you know, recipes that belong to them with their user ID. Or there's like little checks you can write to do that. So it's pretty awesome. I mean, it's it's pretty awesome.
[00:52:02] Michael Chan: Well, it's really cool that you can separate the services like that. Because I think that auth is one of the really nice things about Firebase. And then also Netlify has, you know, their auth system. Being able to- being able to use those, but then also kind of have more fine-grained control of your data. That's one thing that's always been kind of weird about Firebase is that it's a product owned by Google and Google doesn't have a great track record.
[00:52:26] Sam Selikoff: That's like the main- I mean, Firebase has been around for like 10 years, I think, right? At this point. And they were a startup that was acquired, but you're you're totally right. And that's no matter how many times I try to tell myself, it's like we were saying before, like, why don't you just use SwiftUI and do like 100 times the work that you could using all these other things. And it's like, it's a hard pill to swallow with Firebase where the data format is proprietary, the storage format is proprietary. You can export it, but the one thing I like about Hasura is your data is just in a Postgres database.
[00:52:55] Michael Chan: Take it anywhere.
[00:52:56] Sam Selikoff: Take it anywhere. And your React app doesn't know it's talking to Hasura. It's just making GraphQL requests to a GraphQL server that implements a particular Uh API contract. Whereas your React app that talks to Firebase knows it's a Firebase app because you're importing from Firebase, you're using it. So I like the Hasura approach because I can mock it out easily, um using something like Mirage or anything and just say like, yeah, the React app doesn't know, it's just making- I mean, HTTP, talk about good abstraction. That's a great abstraction, right? It doesn't matter what's on the other side of that. Whereas uh Firebase does all this cool stuff with WebSockets, but you don't know any of that. So the boundary, moves forward in your in your application.
[00:53:37] Michael Chan: Yeah. Well, this is a lot of good information. This is probably a good place to close. Um, but I'd love to give you a chance to tell people real quick about um uh Mirage and then kind of also the things that you're uh the places that they can find you about the internet.
[00:53:51] Sam Selikoff: Cool. Yeah, Mirage is like main open source project that uh I work on with with Ryan. And we're closing in on 1.0. It's like an API mocking library. And the goal of it is to really help frontend developers with this data stuff, because we do feel like this is some of the hardest parts of the whole process. And so, um, Mirage lets you— uh, we actually just had someone work on a really cool GraphQL integration. So, like, my- this is my ideal workflow. I start a React app, either create React app or Next. I add Mirage and I just say, oh, I'm using like Mirage um um Hasura. And then I can just start saying, okay, I have a user, I have many comments, and Mirage is basically going to just take that data model and give me that GraphQL API, and I can start building my React app. I've never had to leave and actually go set up Hasura, but I'm working against a mocked backend that implements the same contract. And it's unbelievable how fast this workflow is. Yeah. This is what we were doing back at TED where we worked and where Mirage came from. Where you have this like isolated frontend development environment, but it's super fast because you're not dealing with a separate Node process, you're not dealing with a service, you can work offline, you can change the the responses and tests. And so, all of these things that we value, um that's kind of what that project's all about. So, if that sounds interesting, check out Mirage, miragejs.com.
[00:55:15] Michael Chan: Nice, yeah. And I love that, too. I've always loved this notion that, you know, you as a frontend developer could actually build the application, start tuning all of the interactions and all that kind of stuff, and then just connect it to data later on. Exactly. And like even at the front of your website, it says like build complete frontend features, even if your API doesn't exist. And like I love that idea. And I think that it's super important for the workflow of React developers.
[00:55:39] Sam Selikoff: Yeah.
[00:55:40] Michael Chan: To to like have something that allows them to work with data, not just some like kind of like fake like local storage type of thing.
[00:55:47] Sam Selikoff: Yeah, totally. Uh totally. Like it's so cool too when you work on a project that uses Mirage, you can basically git clone it, Yarn install and yarn start, and you're just working with a whole app. And it's- you can do everything. And you can share that with a product person. Like people who have been using Mirage for years, like Heroku has been one of the original users for like 6 years now because they're in- they use Ember. And, um, you know, you can just run the frontend and you don't- you know, think about all those nice things that you don't have to think about setting up. Think about, you know, just developing a feature on your frontend without having to worry- like if I want to change myself from like a user to an admin or an impersonator. I can just uncomment something right in my frontend codebase and like fast refresh just swaps it out. So, it's all that kind of stuff.
[00:56:32] Michael Chan: Oh, man. I like I I mean, like you're you're talking my language right now because like I work in a system and like one of these apps like actually has to communicate to like 4 different Rails apps. Oh, yeah. And they all have to be booted.
[00:56:46] Sam Selikoff: Just for you to change some CSS, right?
[00:56:48] Michael Chan: Yes.
[00:56:48] Sam Selikoff: That's ridiculous.
[00:56:50] Michael Chan: And I had to like go into the like the database and like flip things on and off. It's ridiculous. And my my computer's just like churning, right? Because it's running like 8 Rails applications.
[00:57:00] Sam Selikoff: Yep, yep. Yep, totally. That's uh so yeah, that's that's exactly the problem that uh Mirage was built to help solve. Um just that beautiful HTTP boundary. If we can simulate those requests, it's really like a simulator. You know, it's yeah, it's it's higher fidelity than just writing like a little Express app because it It has the data stuff and it it helps you do all the things that you would normally need or expect from an API. So there's like really easy ways to replicate most backend functionality like out of the box. And then you can write your own stuff. And then the testing is is cool too. So like imagine you need to write just a frontend test that says this page looks like this when these 3 services are like this and this one's not. I mean, how would you test that, right? But with Mirage, you can just say, put it in a different state, right? In the test, you know. Or say, assume this route will return a 404, make sure an error page shows. So that's that's kind of what Mirage is about.
[00:57:52] Michael Chan: I love that. I love it.
[00:57:54] Sam Selikoff: Cool.
[00:57:55] Michael Chan: Um so now where can people find more of your um kind of like personal work, your journey stuff, you know, via the the the podcast, et cetera?
[00:58:02] Sam Selikoff: Yeah, definitely. So Frontend First is our podcast. It you might find old episodes called the Ember Map Podcast because that's what it used to be called. But as we started talking more about this other stuff broadly, we renamed it to Frontend First. So that's over at frontendfirst.fm. And we're also on YouTube as well because we do like videos of ourselves talking. Um, and then, uh, yeah, I've been like kind of spending a lot of my time lately on my personal YouTube channel. That's just youtube.com/samselikoff. And I'm I was trying to make a video a week. I did that for a while and then I took a break. But I'm gonna that's gonna be my goal. And— Nice. I'm gonna try to get into like smaller videos so it's more sustainable. And also, I think it's just better. Um, yeah, but this last one was like the opposite of that. I was like, all right, my next video is gonna be under 5 minutes. Of course, it's like a 27-minute vlog style thing, but I was just having some fun with it.
[00:58:49] Michael Chan: Well, I think it's really great because a lot of uh programmer content is fairly dry, you know, just kind of like, here are the facts. And like, I'm guilty of the same thing. Like, that's the way that I deliver like content as well. But I'm always struck by the production value of yours because it feels a little bit more like a YouTube style thing where there's a little bit of a narrative. There's some like, you know, little snippets of your life going on in there. It's like, it's it's really good stuff.
[00:59:10] Sam Selikoff: Thanks, man. I appreciate that. It's it's been fun.
[00:59:13] Michael Chan: Yeah. Well, hey, Sam, thanks so much for joining us today. This has been a delight. I'm super pleased that we actually got to meet after all these years of just kind of like, kind of not quite connecting. So this has been great.
[00:59:23] Sam Selikoff: Totally. I know, man. Well, thank you so much. I'm so glad you reached out and I can't wait to meet you in person, you know, next time this whole thing winds down. If you ever come to New York, got some great cocktail bars we can go to. Yes. Meet ourselves properly, you know, it'd be fun time. So.
[00:59:37] Michael Chan: Absolutely, I look forward to it.
[00:59:39] Sam Selikoff: Awesome, man. Thanks so much.
[00:59:40] Michael Chan: Yeah, thank you. This has been episode 110 of React Podcast with Sam Selikoff and Chantastic. For show notes, visit reactpodcast.com/110. Thanks to this week's sponsors, Infinite Red and Imagix. Infinite Red have been designing, building, and shipping quality apps for 10 years and make their expertise and industry connections available to you. Infinite Red will give you $750 to start or refer a new project. Get their expert help by visiting reactpodcast.infinite.red. Unprocessed images kill performance. imgix helps you deliver sharp, snappy images to customers with powerful image processing and simple API delivered on a global CDN. Follow the lead of Unsplash, Kickstarter, and Prismic, who use imgix because they know the importance of image optimization to user experience. Get a $300 account credit at imgix.com/reactpodcast. That's imgix, I-M-G-I-X, .com/reactpodcast. If you like this show, there's a 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 Speck. 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