95: Dave Geddes on Mastery Games and the key to learning everything
Dave Geddes tells us about the science of learning and how he uses it to ensure success at mastery.games — where he teaches CSS layout, service workers, and more.
We talk about the importance of sleep for learning, the joy of graduating from employee to entrepreneur, and how exterminating a few critters can help you master CSS Grid once and for all
Featuring
Links
- React Rally
- A Complete Guide to Flexbox on CSS-TRICKS
- Flexbox Zombies on mastery.games
- How to write tweet by @chantastic
- Finish: Give Yourself the Gift of Done book by Jon Acuff
- CSS Grid Layout
- Jen Simmons
- Rachel Andrew
- The Tetris Effect a talk by Dave at ng-conf 2018
- Service Workies — Learn Service Workers inside and out with the new game of Service Worker
- Day9TV — Be a Better Gamer
- Why We Sleep: Unlocking the Power of Sleep and Dreams — book by Matthew Walker, PhD
- Procedural memory (unconscious memory) on Wkipedia
- Get Started with Debugging JavaScript in Chrome DevTools on developers.google.com
- grid critters — Makes building modern layouts a snap
- vim.guide my guide to Vim letter-by-letter
- Overwatch Hero Picker with CSS CSS Grid tutorial by Dave
- Web Animations API on MDN
- CSS Houdini on MDN
- clip-path on MDN
- mastery.games
Sponsors
Infinite Red
In over your head with a React or React Native app? Infinite Red can help. They're React Native core contributors who've been designing, building and shipping apps for over 10 years. reactpodcast.infinite.red
Transcript
[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. Dave Geddes joins us to tell us about the science of learning and how he uses it to ensure success at Mastery Games, where he teaches CSS layout, service workers, and more. We talk about the importance of sleep for learning, the joy of graduating from employee to entrepreneur, and how exterminating a few critters can help you master Before we jump in, a quick word about our sponsor, Infinite Red. It's good to have a friend who knows a lot about the technology you're using, especially when that friend understands how hard it can be to learn something for the first time. If you're building a React or React Native app, Infinite Red is that friend. They want to help you finish and fix that app that will change your life. They've compassionately taught tens of thousands of developers through open source and their annual React Native conference, Chain React. React. Get the help you need and 2 free tickets to Chain React 2021 when you start a new project. Referrals count, too. Visit reactpodcast.infinite.red and with their help, build a beautiful, functional app today. Dave Geddes, welcome to React Podcast.
[00:01:25] Dave Geddes: Hey, thanks, Michael. Appreciate it. Thanks for having me on.
[00:01:28] Michael Chan: Yeah, yeah, it's good to have you on. Um, we met, I think, last Uh, last year at React Rally when the world was still having conferences.
[00:01:36] Dave Geddes: Uh-huh. Back when it was normal. Yeah.
[00:01:40] Michael Chan: Hopefully we'll have another one and maybe we can see each other again there. Um, but I wanted to get you on the show because you're doing such cool stuff in training and education. I just wanted to like see what you're up to, how you think about training and kind of how it culminated into Mastery Games. Um, but before we get into that, um, just tell us a little bit about who you are and uh what you're doing these days.
[00:02:03] Dave Geddes: All right. So my name's Dave. I I just love to code. I've been a developer for about 15 years now, mostly focusing on the front end. Um and a few years ago, I just was really tired of my job. I was making good money, um you know, the best paychecks I've ever had, but I was just miserable. I just, one day I was working on another HTML form, which is my least favorite thing to build ever, forms, you know.
[00:02:31] Michael Chan: Oh man, they're so soul crushing.
[00:02:33] Dave Geddes: They are, right? It's like, oh.
[00:02:35] Michael Chan: But like the the web is just forms, right? It's just, you know, people putting their information.
[00:02:40] Dave Geddes: It shouldn't be. Gosh dang it. But yeah, I was working on another one of those in in Angular at the time. And I was I was trying to get things to align with with Flexbox, right? And I found myself visiting the CSS-Tricks website, the complete guide to Flexbox. Like, I was basically just living on that page, copying stuff over. And then I had this like moment where I realized like, what the heck? I've used Flexbox like on 6 different projects. How come I don't know this crap yet? And so, I just- I got frustrated with my own feeling of being a noob with Flexbox. And so, I started- I started reading the spec and like diving into it. You know how like developers sometimes we- we squirrel out on a topic and just go way too hard on the paint.
[00:03:31] Michael Chan: Yeah, yeah, yeah.
[00:03:32] Dave Geddes: I did that with flexbox and I started coming up with like these mental models, these uh metaphors for myself, like a little dude with a crossbow shooting zombies. And that's how I remembered like flex direction, you know, coming from the top or the right or the left. Um, and I started sharing the- I started sharing my My models with people at work and it was making Flexbox click for them. And one of my friends encouraged me. He's like, dude, you should, you should publish this. This is actually kind of cool. And I was like, huh, okay. So I I put together an email sequence, you know, where every, every few days you'd get a new email showing these. It was really crappy. It was my first version of Flexbox Zombies. It was uh just these static images with some CodePen challenges. Um, teaching the Flexbox stuff. So the combination of that and then just being miserable at my job, it just didn't take much. Um, one morning I woke up with like 300 new subs to the email list and I was like, I've made it. I didn't know what I was doing, but it was, it was enough to, um, that, that morning to put in my 2 weeks notice at work. I was like, I'm out of here. It was just the push you needed.
[00:04:47] Michael Chan: Like, I am a god.
[00:04:49] Dave Geddes: Exactly. Little did I realize that 300 free users isn't enough to support any kind of business. But I figured it out, uh, eventually. So I, I quit. I built Flexbox Zombies, you know, an actual video game to teach Flexbox instead of these little static images. I've got, um, you know, a Canvas app where I'm overlaying Flexbox, and you can't see it, but Um, I use the divs to position the zombies and then the zombies are rendered in Canvas. Anyway, I took 6 months and made it like the coolest thing I thought in the world and released it and thousands of people have signed up for it since. And that's that's kind of how I got my start in this education gaming idea.
[00:05:35] Michael Chan: I love it. I love it. I love I love also like kind of the arc of You you you were already exporting your your knowledge about this thing. Like you said, you went like totally hard in the paint on on Flexbox. And then we're making this curriculum, you know, not so much right away to have a product or have some type of like email uh automation or anything like that, but just to like understand it better for yourself. And then kind of exporting that in a small way to your coworkers and then taking that kind of that next step of like email list and like full-blown site. Which I think is really- I think is really interesting. I- I oftentimes I feel like a lot of people kind of overfocus or like over-index on the end, right? Instead of thinking about just, I want to understand this thing better and I want to be able to like teach it uh with some level of um like expertise to the people around me and getting that experience first. Totally.
[00:06:30] Dave Geddes: Yeah, had I had I like made my first goalpost Shipping a complete game with 12 chapters and hundreds of challenges. Like, dude, I would have given up so fast. I'm too lazy for that, right? You got it. You got to set goalposts and ship, just, you know, ship an outline if you want, you know, just ship little small increments and go over it. I like to think of like going over it as multiple passes of a compiler. You know, your first pass. Might just be a crappy outline. Your second pass might have some code examples. And I do this for my blogs too. Um, you just keep going over it and over it and adding more and more substance and more and more polish until you've got something great. But you don't have to wait to the very end to ship. You can ship, you know, along the whole time as you go.
[00:07:20] Michael Chan: Yeah, I love that. Optimizing for laziness is is a really uh good way to think about it.
[00:07:25] Dave Geddes: I've had to because Yeah. I mean, my wife would let you know I'm, I'm selectively lazy. Like, I'm lazy at pretty much everything until I put my mind to it and then I go all out on a thing, you know?
[00:07:39] Michael Chan: Well, it reminds me, just this week I had, I had tweeted something about writing and like something that is valuable, I think, like as I've kind of like progressed in life and like more things are pulling at my attention, the idea that like trying to make something that you could ship at any stage, right? And I love that, like that, that outline idea, right? You just like put all your point, your, your thoughts in bullet points. And like, if you were really forced to share that, like, that's good enough, right? You know, people can like sort it, but then you kind of like give some structure to it. You make it a little bit more entertaining. Like these are kind of like discrete steps that you would take like afterwards to grow it and, you know, turn it into a product.
[00:08:18] Dave Geddes: Totally. And I think one thing that keeps people from shipping is Like they have this grandiose vision of what the end goal is gonna be, or the end product's gonna be like, right? But nobody else knows that that's what you're thinking of, you know? So when you ship V1 out of V20, a lot of people are gonna get value out of it.
[00:08:38] Michael Chan: Yeah.
[00:08:38] Dave Geddes: And they're not gonna- you're the only person that's comparing this first version to what you think it could be eventually. Nobody else is thinking about that stuff.
[00:08:46] Michael Chan: Yeah.
[00:08:47] Dave Geddes: So yeah, you just, just gotta ship.
[00:08:49] Michael Chan: There's this um this this book I read by uh John Acuff. It's called Finish. And he talks about this, um he says that one of the, I think the last steps of your subconscious in in attempting to sabotage you is like a noble goal. So, you think like, oh, like uh I should I should uh you know kind of share my little like 10-step checklist for this thing. And you're like, and it's like, like yeah, you should, but like, you know, maybe it should be like a blog. Or like, you know, maybe it should be like a series. And like you keep kind of like upping the ante a little bit until you're so scared to do anything. You're like, forget it. I like, I'm just gonna keep writing forms in uh Angular.
[00:09:27] Dave Geddes: Exactly. That's how it works. I'm gonna have to check out that book. I like that. I've got so many, so many domains I've registered and ideas that I've started and just haven't finished.
[00:09:38] Michael Chan: Oh, man.
[00:09:38] Dave Geddes: Who was the author on that book?
[00:09:40] Michael Chan: Uh, John Acuff.
[00:09:41] Dave Geddes: Cool. Yeah, I'm gonna check that out.
[00:09:42] Michael Chan: It's called Finish. Yeah, it's real good. Now, so since then you've actually made a number of products that focus on uh different technologies. Tell us about some of the other games that you have, um you've developed.
[00:09:53] Dave Geddes: Yeah, so I started with Flexbox Zombies. I took 6 months, um I, you know, quit my job, and by the end of it I was super proud. And I was talking to my wife one night and I was like, I think I'm gonna make this game free. And she's like, What? She's like, you just worked half a year on something and you're just gonna give it away? Yeah, it took it took some convincing. I was like, babe, trust me. Like this will get people excited. This will, you know, people love free stuff. So, I did, I made it free and eventually I did get a I did get a sponsorship from Mozilla to help offset the costs of developing that thing eventually, you know, when they launched their new Flexbox inspector, which is awesome. They, they reached out and we partnered up and did a little thing. So at the end of every Flexbox Zombies chapter, I have these challenges where you go into the Flexbox DevTools and try to solve it using their Flexbox Inspector.
[00:10:49] Michael Chan: Oh, awesome.
[00:10:50] Dave Geddes: Anyway, yeah, so I gave that away. And then my next big question was, all right, is what I'm building- is it- I mean, people, everyone loves free stuff, but are people actually willing to pay, um, for a game like this to learn something else?
[00:11:04] Michael Chan: Yep.
[00:11:04] Dave Geddes: So around that time, I really got interested in CSS Grid. It was, it was finally starting to work in all the new browsers and I started playing with it and I was just blown away by CSS Grid.
[00:11:17] Michael Chan: Yeah.
[00:11:17] Dave Geddes: Like it is so powerful and it's, in my opinion, it's so much better than Flexbox for the majority of layouts that like these days I, I reach for Grid probably 90% of the time. I only use Flexbox in a few cases. So don't tell all the people who are signing up for Flexbox.
[00:11:34] Michael Chan: No, it's true. I feel like it's it's so good. Like it's almost unfathomably good for the web. Right? Like like you hear about like CSS Grid. It's like you know the new you know the the next thing you know after you know Flexbox for layouts. And given kind of how the web has been, it's it's easy to assume that it couldn't be that good.
[00:11:55] Dave Geddes: Yeah, that's true.
[00:11:57] Michael Chan: And it's amazing.
[00:11:58] Dave Geddes: It really is. They, they nailed it. I mean, not only did they make something that's so perfect for like all the adaptive sizes, screen sizes that we have to design for, but they, they integrated with all the old goodies in CSS.
[00:12:11] Michael Chan: Yeah.
[00:12:11] Dave Geddes: I just, I, I just wrote a blog post about, um, all the possible CSS units that you can use to set up your grid, you know, em, rem, uh, obviously pixels, but then the new fr unit. Uh, percentages, and they- a lot of these things, with the exception of fr, have been around forever, but they- the way they integrated those with Grid, you can really make some custom fluid layouts in like very little time and work. It's awesome. So I, I got pumped about CSS Grid, and so I, I told my wife I was gonna do an experiment where I was gonna build another game. 6 months max, I told her. Ended up taking 9. Because I didn't know Grid yet. I had to learn it, you know. I had to I had to become a master of it myself in order to build something that could help others become a master of it. Um, so I built that and then I I launched it. My email list at that point was, I think, um, 12,000 people had signed up for my email list. Wow,
[00:13:09] Michael Chan: okay.
[00:13:09] Dave Geddes: So I launched it to those people and then went on vacation. And um, I was sitting by the pool, my feet dangling in the in the water, and my phone starts blowing up. And I I thought it was I had no idea what it was, but I checked my email and it's like dozens of of sales for this Grid Critters game that I had built. And I was just- that's when I felt like I had made it.
[00:13:34] Michael Chan: Oh yeah, yeah.
[00:13:35] Dave Geddes: Like, I just felt, oh man, I tell you, like, I think at the time I was charging- these were these were pre-orders and I charged, I think, $145 a pop. And every single sale that came in, that that money that I made, it felt so much more rewarding than like a $6,000 paycheck from a job.
[00:13:52] Michael Chan: Yeah, yeah.
[00:13:53] Dave Geddes: You know, it's it was a it was a game-changing thing for me. It changed me, like seeing seeing people pay for something that I had just pulled out of thin air, that I had envisioned and spent all this time building, and there was nobody else. Like, man, it was it was the best feeling in the world. And that's what that's what keeps me going, just building. I want to build I want to do that my whole life. I want to get- I want to master something, um, and then convert it into a game that helps others master it. Like, the pursuit and the sharing of mastery is really like what I felt like I was made for, you know?
[00:14:28] Michael Chan: Yeah.
[00:14:29] Dave Geddes: It took 15 years of, of coding to, you know, find my purpose. But I- now that I feel like I've found it, I just- it's all I want to do. And I feel so blessed and so lucky to be able to do to do this.
[00:14:42] Michael Chan: What would what would you say some of the most important, um, I guess maybe milestones along the way? You mentioned the 15 years kind of before going independent and kind of uh working on your own vision, which which I love hearing that that part of it. Um, what are some of the the big milestones that you couldn't have maybe um gotten unless you went through that 15 years of traditional kind of career path, job stuff?
[00:15:07] Dave Geddes: Well, I think in order to find like your thing, and everybody's got a thing, at least one thing that would really make them happy, I think you've gotta try it. You have to have a lot of different experiences. So my first job, um, was working at a- well, I guess my first job really was doing freelance work, building these, uh, websites for college students that were, um, trying to make their own businesses, you know, the business majors. coming to me and asking me to put together sites. I did that for a while. It was all right. Um, then I worked at Lockheed Martin doing- for the Department of Defense doing, um, like very technical work with a ton of documentation. And I realized from that experience that I just- I hated doing documentation. You know, this wasn't like docs for developers. I wouldn't mind doing that. This was like documentation for bureaucrats that They're never gonna understand any of the software anyway. So it was just all this like pointless busy work. Yeah, then I had I had 3 other jobs from there and I just I got a lot of different experiences. I mean, I I quickly found that I I was in love with the front end.
[00:16:14] Michael Chan: Yeah.
[00:16:15] Dave Geddes: You know, I did some back end stuff. I I uh I have a life goal to never write Java ever again. Just I'm no good at it. It's just it's not how my brain my brain works. Uh, at Domo, we built a platform using Scala, which was a lot better. And I did most of the front end and the CLI work, but yeah, just getting a lot of experience behind your belt so you can just kind of see which things you like and which things you don't. Um, and having done that, like, you'll have experiences along the way and even from your childhood that you don't realize are like part of your your journey until after the fact. Like when I was a kid, we had a- I grew a pumpkin patch in my garden and I weeded that thing, I watered it, I took good care of it. And my dad was really confused, like, why is he weeding the garden without me threatening his life?
[00:17:06] Michael Chan: Right.
[00:17:06] Dave Geddes: But then he realized, ah, when he saw me taking the wheelbarrow full of pumpkins out to the neighbor's house, you know, and selling my pumpkins, that's when he, he realized why I was doing it. And at the time I was like 6, you know.
[00:17:19] Michael Chan: Yeah.
[00:17:20] Dave Geddes: I didn't think this is gonna be part of my entrepreneur journey at all. It took me a long time later to discover that like that's that's something that I really enjoy is being my own boss, selling my own my own products. So yeah, it you just have all these experiences, but you gotta try things. You never know if you're gonna if you're gonna like something until you try it. I mean, just like the drug dealers say, right? You gotta you gotta try it before you you know if. No, don't do drugs, kids.
[00:17:49] Michael Chan: Well, it's like this braid that you're growing, right? You gotta try it to see if you like it or not.
[00:17:54] Dave Geddes: Yeah, I am. So it's- I only got about an inch, but it's the start of something beautiful. My wife hates it, but she- how does she know she's not gonna just love it?
[00:18:03] Michael Chan: She'll come to love it too.
[00:18:05] Dave Geddes: Yeah, it's gonna be my- her- my- the favorite feature that I've got eventually. Yeah, you gotta try things and then determine for yourself if you- if you like them or hate them. If you're too quick to just say, oh, I don't like that, before you even try something, then you are just- you're closing off paths for yourself.
[00:18:22] Michael Chan: Yeah.
[00:18:23] Dave Geddes: Um, way too, way too soon. There's a lot of people who I think want to do something entrepreneur-related, but they psych themselves out saying, oh, I don't want to have to pay for my own insurance, or, oh, it sounds too stressful to not have a steady paycheck. And and so they they close off that door um too soon when, who knows, like they could have gone on to make something amazing.
[00:18:47] Michael Chan: Yeah.
[00:18:48] Dave Geddes: They could have made the world more rich by their, you know, by them taking that risk, but they they close it off too soon.
[00:18:56] Michael Chan: Yeah, well, I love I I love what you've talked about so far is just kind of doing the work, kind of, you know, drawing a lot of dots on the page, trying to figure out where what you might like, what you might not like. Kind of letting, you know, the people around you as you share kind of inform, or I guess tell you the things that you seem to be exceptional at. Yeah. And then just kind of like testing the waters with like a newsletter or kind of a free product and whatever, and then trying to build it up from there. Um, I want to kind of transition into like why games? And I think, you know, from from from some of your talks, I picked up this quote that I I really love from from your dad, apparently. It said to uh try to get paid for as an adult what you got in trouble for as a kid. Um so I'd love to know exactly how that transitions in how that transitions you into uh building games for developers.
[00:19:47] Dave Geddes: Well, when my dad was given that advice, you know, he was a college professor and he he gave talks to the whole the whole student body. And that was one of his advice pieces of advice that he gave to how many students, I don't know, 10,000 students. Um, and I was there listening to my old my old man talk, you know. And when he said that, I remembered that like, hey, you got mad at me as a kid for playing so many video games. So maybe it backfired a little bit on him. But in his case, the context for him was he grew up on a an almond farm in California. Their family grew almonds. And he was always just playing in the mud. He, you know, he just loved being outside, loved rolling around, building little mud forts, you know. And his sweet mom, my grandma Geddes, was always getting after him for that. And anyway, he, what he eventually went into was pottery and ceramics. So he, he builds these amazing sculptures out of clay, you know. So he likes to say he's, he's getting paid to play in the mud now. When he used to get in trouble for it. So yeah, I've always loved games. Like, I grew up- I probably wasted half my childhood on StarCraft 2. You know, I would-
[00:21:03] Michael Chan: Easy to do. It's easy to do.
[00:21:05] Dave Geddes: Yeah, I would sneak into my mom's office at- on campus, um, because she had a good computer, and I would- I would just play for hours. And when the janitor would walk by, I'd be real quiet, you know, like I didn't want to get busted for using the campus computers to play my games. But I've just, I've always loved games. Um, and I don't know, part of me thinks what I'm doing now, Mastery Games, is just an excuse to make games. That's that's probably part of it. But like, I actually think the medium of gaming is one of the most underused mediums and one of the most powerful. Like, if you think about games, they're so rich and they're so immersive, you can get lost in them. And the game, you know, most games don't teach you anything. Most games are, you know, they, they might have like a crafting system that they reveal to you, you know, over a long time. And it's just super, it's just super engaging. It's super fun to, to like learn a new piece of the puzzle. Um, but my, my thought, once I built, yeah, as I was building Flexbox Zombies, I wanted to kind of capture that feeling of just immersive, you know, you're, you're in it. You're not just like studying a a wall of text to learn Flexbox. Like,
[00:22:17] Michael Chan: yeah,
[00:22:18] Dave Geddes: I want it to feel like you're actually playing a video game, and by the time you're done with it and you've beat the bad guy, the boss whose name is Dave- coincidence- you know, you've accidentally mastered Flexbox. Just like in a game, just like in a game like Minecraft, you know, once you've built your entire base, you've kind of accidentally mastered the craft of their crafting system.
[00:22:42] Michael Chan: Yep.
[00:22:43] Dave Geddes: You know, I wanted I wanted to make it fun because, you know, in coding there- well, in anything really, there are 3 types of motivation. Um, you have extraneous, extrinsic, and intrinsic. So extraneous is where you you don't care about the thing. Um, you're you don't really care how it's done. You don't really like it. You're only doing it for the money or the reward that someone else has given you to do the job. Mm-hmm. And a lot of developers, a lot of people start coding because of that motivation. And that's fine, right? They they heard that coding pays a lot. You know, they they they get into it, they start learning. Some people get frustrated and drop out. Other people stick with it. And eventually you can get to extrinsic motivation, which is you still don't really like doing the thing, but you you like having it done. You care about the thing. Um having been done right. Like, for example, your yard, mowing your lawn. You know, you don't really like mowing your lawn, but you like the feeling of a nice cut grass.
[00:23:43] Michael Chan: Yeah.
[00:23:43] Dave Geddes: So that's- you can move to extrinsic motivation. Um, you know, you like doing a- having a job well done, getting paid for it, having the boss happy. And eventually you can get to intrinsic motivation, where the thing is its own reward, and you do it because you like doing it. And eventually this is what happens for people who get really good at code, or even decent, just decent at code, is it becomes just so enjoyable. You know, the coding itself is the reward. And anytime you get 4 hours in between meetings where you can just code, that's just- ah, you just love it, having that, that time.
[00:24:19] Michael Chan: Yeah.
[00:24:20] Dave Geddes: So there's kind of this natural progression of motivation, right, when you're learning to code. And I wanted in my games I wanted my games to jump people straight to the third level, to intrinsic motivation, where you're doing this course not because, you know, eventually you see yourself getting paid, you know, uh down the road because you know the skill. I wanted it, I wanted my, my games to be something that people enjoy even if there was no learning at all. You know, it's just on its own, it's a fun experience to play. So that's, that's why I've I've kind of doubled down on gaming. Like I think there's so much there, so much power in gaming as a medium for for education because you bypass those first 2 steps of motivation. You know, people, if uh I think I heard the completion rate for most online courses is really bad. It's like 20, 25%.
[00:25:11] Michael Chan: Yeah, falls off real fast.
[00:25:13] Dave Geddes: It does, it falls off. People get, you know, through a quarter of the course and then they give up. And I've done that, right? I've I bought a business course that I hadn't even started yet. And I I bought a design course from Lara something, and I've done like the first chapter and I've dropped off, you know, so I'm, I'm no different. Um, we just, we just do that. We get distracted. And anyway, um, I didn't want my, my courses to have that problem because I spent so much time and effort making them awesome all the way up to the end, you know, and my completion rates are awesome. And I think it's because, because I've, I've channeled that medium of gaming. To make it just a fun experience from the beginning to the end. You want to see what's gonna happen. Like, who is this? Uh, who are these? What are these grid devils that, you know, have infested the planet? Like, who is this bad guy Griffin that's coming to get you? Like, you want to, you want to see how the story's gonna end. And so you keep going, and by continuing in the course, you keep learning more and more things until the end. Like in the case of Grid Critters, you are so comfortable with CSS Grid that you never have to look it up again.
[00:26:16] Michael Chan: Yeah, you
[00:26:17] Dave Geddes: know. You don't, you can just build a layout without thinking about it. You don't have to spend half your time on Google and copying code snippets like that. All that knowledge is just ingrained in you. It's part of you. And that's, so that's the whole, that's my whole thing with mastery games is, you know, the game element and then the mastery element. And I want the combination of of both. And I think it's, I think it's really working. I think I've discovered something pretty cool. I'm excited to make more of them.
[00:26:44] Michael Chan: Yeah, yeah, absolutely. Now, I I I find it interesting kind of the the way that you've tied these these concepts together. So, like extrinsic motivation, kind of the the natural byproduct of that is like maybe you buy a course that you don't use or you uh always have to have, you know, the CSS-Tricks article for, you know, Grid or Flexbox up while you're you're working. But
[00:27:05] Dave Geddes: yeah,
[00:27:05] Michael Chan: when you kind of convert into like intrinsic motivation, uh you're able to kind of internalize these things. Maybe unintentionally, um and then just having that skill available to you like on recall, you know, when you need it.
[00:27:19] Dave Geddes: Yeah, and that only happens when you've done it like 100 times.
[00:27:23] Michael Chan: Yeah, yeah, yeah.
[00:27:24] Dave Geddes: You know, reading the docs and copying and pasting something isn't gonna change you at all.
[00:27:29] Michael Chan: Yeah.
[00:27:29] Dave Geddes: Like the goal, I'm writing a blog post right now called The Power of Mastery, and I had this like realization just just last night Because I'm learning TypeScript right now, and I feel like a complete noob all over again. But that's a good feeling, right? I realize that every time I get stuck and frustrated, which is several times a day because I don't know what I'm doing yet in TypeScript, instead of just like Googling for the answer and pasting it in, use those stuck moments as an opportunity to grow. Like the the goal isn't to get unstuck, the goal is to change yourself into the person who gets you unstuck, if that makes sense. Yep. So when you find the answer, great. If it works, awesome. But don't just move on yet. Like, take a minute to understand, to study. Why is that solution working? What is this actually doing? And if you do that, then you're- after that moment of being stuck, you are different and you're more equipped. You're- you've leveled up like in a video game. And you're better equipped to handle the next time you get stuck and you're less likely to get stuck on that same thing over and over and over.
[00:28:39] Michael Chan: I love that. I love it. Um, now one of the things that is so compelling about your games is the, the art. And I, um, I'm just curious, like, are you doing that? Like who's, who's doing the art? Cause it's hard for me to imagine that so much talent could, could reside in just one person. Uh, so tell me, tell me a little bit about that.
[00:29:01] Dave Geddes: Well, I wish I could claim credit for all of it. When I started- when I started out, I was doing, um, everything myself, from art to animation. Um, even a lot of the sound effects are like me, you know, doing like, like random sound effects. Um, but it's just, you know, I'm- I'm probably average on a lot of those things. Um, I'm pretty good at animation. I'm decent at illustration. But there are people out there who are way better than me. And so-
[00:29:30] Michael Chan: Sure.
[00:29:31] Dave Geddes: I've teamed up with with uh game artists and game animators. Um, I had the budget for it in with service workers because Google reached out and said, hey, we want to build- we want you to build something to teach people service workers. And I was like, oh, that'd be sweet. It's gonna be expensive. And they're like, blank check. I was like, oh, sweet. So I hired I hired 7 people who were just Fantastic. I got this German composer guy, also named Michael, to create all the original music and sound effects.
[00:30:05] Michael Chan: Oh man.
[00:30:05] Dave Geddes: It's just, oh, the production quality in that game, I've set a new bar for myself. Now I I don't think I could go back to trying to do it all on my own. That game still took a year. I don't I wanted it to be more game-like, you know, even more immersive, and yeah, of course that ended up being tons more assets and sound effects and and everything. But yeah, so these days I hire, I hire pros to do um a lot of those pieces so that I can focus on the code, the education. Um, I still maintain like an art director type of role, but I work with these various artists and they, you know, we go through several revisions and they come back with just incredible work. That's— uh illustration is one, one of the things that I want to master. And I'm, you know, I'm trying to spend a few minutes every day practicing sketching on my iPad, but I'm I'm not at the level I I want to be at yet, but I'll I'll get there. It just takes just takes effort, you know.
[00:31:01] Michael Chan: Now, I know that um from from some of your talks, you've talked about some of the important aspects of learning. So, you know, it's not just um kind of like what you bring to the table, but the learner actually brings um some things that are critical to their to their learning. Um, and I know that we've talked about this um a little bit before, but uh you have kind of like a simple formula for for really internalizing something, and that is um kind of deliberate practice and sleep. Uh could you tell me about both of those and like how critical it is for the learner to bring those?
[00:31:35] Dave Geddes: Totally. So, back in my in my StarCraft days, I wanted to be- I don't know what I was thinking about. I wanted to be like a pro gamer, you know? I was a kid. I didn't realize that like that window was closing and gonna be closing in my 20s, you know. So, but I wanted to be the best StarCraft player I could be. So I, I was watching these videos and I eventually found this guy named Day9. I don't know if you're familiar with him, but he's this like game caster guy that just made it so fun. And his whole thing was he would, he would encourage people to Okay, for this whole next week, play games and only the only unit you can have is a queen in StarCraft, you know. So he he would make these weird constraints that would make you focus on just one aspect of the game. And that's really that was really my introduction to deliberate practice. That's what it is. You know, you'd play a whole game of StarCraft only having one focus in mind. Okay, this game I'm gonna do better at keeping my drones to mineral ratio solid. So you play a whole game, but you focus on one thing at a time when you're practicing. And that's what deliberate practice is. You, um, so I designed my games that way. You know, you play a whole chapter and the whole chapter might be focused on justify content, you know, and there's a couple dozen levels and you're just- I'm kind of just really hammering this one, this one thing in. And you get a lot of practice with it. You learn how it applies to all the other things you've learned up to this point. And then at the end of the level, I recommend my students to stop here and to sleep, you know, to resume the next day after they've slept. And the reason for that is the the combination of deliberate practice and sleep is just so powerful. Deliberate practice, it ingrains the things into your short-term memory. But sleep is really where that short-term memory is transferred to long-term memory or procedural memory. Procedural memory is really what we're after. Um, procedural memory is what you use when you drive a car and you don't even have to think about it. You know, you're listening to an audiobook, you're eating a double cheeseburger, or at least you were back before the world ended. Oh man, I miss I miss double cheeseburgers more than anything.
[00:33:56] Michael Chan: I know, now it's like Lora bars or-
[00:34:00] Dave Geddes: Seriously.
[00:34:00] Michael Chan: Just whatever you can buy in bulk and keep in the in the cabinet for a year.
[00:34:05] Dave Geddes: Oh, I've been going I've been going crazy on those Totino's pizzas. After getting judged from my wife, now I call them veggie squares. But yeah, I had one today, it was excellent. But anyway, uh, so deliberate practice, really, like, it puts- think of your brain as having like two chambers. You know, on the left, you've got this short-term area, and the deliberate practice kind of fills that up. And then when you go to sleep, if you get a good night's sleep with a lot of NREM and REM, then that that chamber transfers over into the the long-term chamber, and then it empties itself out so that you can— you basically, you've got more space to learn stuff the next day. But if you don't get good sleep, that doesn't— that process doesn't happen. And there's an amazing book um called Why We Sleep by Dr. Matthew Walker. And he describes this whole process and I'm oversimplifying it, but um there's all these- he's got all these studies that show, you know, college students cramming for exams and then getting by on a few hours of sleep. As soon as like 4 or 5 days later, they don't remember anything.
[00:35:15] Michael Chan: Yeah.
[00:35:16] Dave Geddes: Anything of what they've learned. So, you know, I've got students that go through, that blaze through, you know, all 10 chapters of GREC Critters in a couple of days. And then I've got students who, who pace it one chapter a day like I recommend. And I can tell you, by the end of those 10 days, I can tell you which student is gonna have it down better because they've given time for that sleep process to do its magical thing and ingrain it in you.
[00:35:43] Michael Chan: Man, it's so it's so fascinating because as you're talking about like deliberate practice, I I I think I don't have a strategy for this, but I know one of my— I I guess the kind of like things that I do just by like virtue of um like exploring life um is, you know, when I learn something, I try to apply it to as many different things in as many different ways as possible. And like I'm just hyper-focused on that one that one thing. Like when I learned about a React component, right? It's like people wanted to, you know, add some, you know, was it- people were like doing like React and Flex and React Router and like all this kind of stuff. And I was like, no, I'm just gonna like, like I'm only gonna use a component for literally everything until I figure out like where it breaks down, where it, you know, sustains itself and like what are some of the kind of like weird things that we can do with it.
[00:36:34] Dave Geddes: Yeah.
[00:36:34] Michael Chan: And it sounds like you kind of have that similar approach in these games where it's like We're gonna do justify-content. And we're gonna do it in all of the like the normal ways, a couple of weird ways, just so you have a full picture of exactly the parameters of this thing. Um and don't have to like wonder where it fits in, you know, in these weird weird ways.
[00:36:52] Dave Geddes: Yeah, that's it. I mean, deliberate practice is a fancy word, but fancy term, but it's really not that complicated. I mean, you nailed it. It's it's really just focus, you know, you're being intentional. on one thing at a time while you go about your work. And you could- developers can do that every single day. You don't have to like- this isn't a nights and weekends studying thing. You can do this while you're working. You know, if you've- while you're work- let's say you find that you, you use console all the time and you never use the debugger, and you've never really used the debugger and you don't know a whole lot about it. Well, you could, as you work, every time you find yourself typing console.log, you could intentionally delete that and put debugger in instead and use the debugger. Like today, I'm- as I work, I'm gonna use the debugger every time I am wondering what's going on, you know?
[00:37:42] Michael Chan: Yeah.
[00:37:42] Dave Geddes: So you can, you can practice while you're working. It's not a separate thing. It's just simply focusing on improving one thing at a time as you go.
[00:37:50] Michael Chan: Yeah, I love that. It's like tiny transformations is, is such an important thing. I know that we kind of as a team, you know, at work one time, um, focused a lot on- a lot of us wanted to learn Vim. And the way that we did it was just like one letter at a time. And we just went through the alphabet. And we kind of like-
[00:38:10] Dave Geddes: Nice.
[00:38:10] Michael Chan: We like- we got- we're gonna do A, right? And it's kind of convenient because it's it's one of the insert commands, right? And so, you learn A and Escape. And it's just like we're not gonna move forward until we've stopped doing whatever it was that we were trying to do before. You know, with A, and it's like, it's such a good way to, I guess, progress because you build that one thing into your muscle memory and then you build another thing in your muscle memory or- Mm-hmm. And it's, I feel like it's something that people like say like slow and steady wins the race, right? But like, it really is true. Like you just like keep focused and practice. Like you're, you're gonna uh outlast someone who just crammed it all, used it for the thing, and then it gets flushed out of memory immediately.
[00:38:53] Dave Geddes: Totally. And it's also the cure for feeling overwhelmed in tech. Like there's so much that you could learn. You don't have to learn all of it. You don't even have to learn a fraction of it. Um, but just focusing on one thing at a time, as long as you, as long as your transformation is happening slow and steady, then you're gonna be fine. As long as you're just constantly learning, you know, I've been doing this for 15 years and I still, you know, you see me struggling with TypeScript, like. You've gotta keep learning, but you don't have to get overwhelmed and try to learn everything at once. Just one thing at a time.
[00:39:25] Michael Chan: Yeah, yeah. Well, um, we're we're kind of getting to the end of our time, but there was one thing that I just wanted to, I don't know, like bring up, I guess, just to like, I guess, tell people what an awesome uh educator you are. Um, so you have, so you make these really cool YouTube videos where you will take like a common uh screen that people might see and then actually build like build it out in CSS Grid, which is Freaking awesome. Um, but like one of my favorite things that I I saw you do, and this was like a really cool technique, um, was I think you were building an overcast, like the hero selector screen or something.
[00:40:02] Dave Geddes: Oh, yeah, in Overwatch.
[00:40:02] Michael Chan: Overwatch, sorry, yeah, overcast. Um, and what you did was you actually, like you you imported the video and then like scrubbed it to like a certain spot and then just built a grid like right over it, which was like freaking amazing. I'm especially with like Flexbox grid tools are just, you know, unbelievably- or sorry, Firefox. Um, they're just so good. But you have a lot of cool, uh, content that you're, you're constantly pushing out there that I think is very, um, imaginative and interesting in a way that isn't, um, I guess academic, like a lot of the, the other stuff that you see where just like this thing does this thing. And I'm guilty of making that type of content too, but, um, just something a little bit more fun, a little bit more, um, it has more of that kind of like motivational, like this is this is tied to my other interests type of yeah type of piece.
[00:40:53] Dave Geddes: Yeah, well, that exercise, you know, I can't claim credit for that. When I was um trying to get good at oil painting in college, you know, my dad is also amazing at oil painting. He's he's amazing at pretty much every everything he does. Um, I was asking him, how do I get good at oil painting? And he he goes in the basement and he pulls out this uh this old, um I think it was a, yeah, it was an oil painting by a guy named Arlo Coles. And he sets it up and he says, "Paint that." And I was like, "Oh, okay." So I get out my, I get out my oil paints and I'm practicing and I'm trying to mimic what that guy had done. And that guy was a master, you know, he'd been painting for 45 years. And my version of his was just so crappy. And when I was done, my dad said, "Cool." Uh, then he went and got a different painting from somebody else and said, "Paint this one." And while I was doing that, like, you start to- while trying to mimic the masters, you actually learn so much. You can see, "Oh, that's why he did this like stroke this way." Then it kind of it kind of looks like the wind has swept the snow a little bit, you know. So, you you kind of learn- you learn from these people who are already really good. And I think games have so many talented designers and UI layout people. So I love picking, I love picking a layout that I think looks cool and trying to implement it myself. And I learn, I learn a lot still, and I feel like I'm, I'm pretty good at layout, but you can always learn something by doing that. It's a really good exercise.
[00:42:27] Michael Chan: I love that. Well, I have one question that I like to ask people kind of at the end of the episode. And, you know, as someone who is, you know, educating in the industry and always looking for new trends and whatnot. Um, what are you bullish on? What do you think people, you know, might need to know or you think is gonna be really popular in the coming years?
[00:42:47] Dave Geddes: Well, I think I'm I think we're seeing web standards get better and better. Where back in the day, there was just so many gaps that a lot of these things were being, a lot of the limitations were being maybe compensated for in userland tools and frameworks.
[00:43:04] Michael Chan: Yeah.
[00:43:05] Dave Geddes: But these days, the web standards, I don't know what they did or when they started, but they've really upped their game.
[00:43:10] Michael Chan: Absolutely.
[00:43:11] Dave Geddes: And so I'm seeing a bigger importance than ever to master the fundamentals, to master the web standards. And that's why- that's what I mainly focus on teaching. Um, because if you- if you know CSS Grid and Flexbox, the combination of the two, then you can build any layout. You don't need to install some grid, um, you know, you don't need Bootstrap, you don't need any other like crutch, basically.
[00:43:38] Michael Chan: Yeah.
[00:43:38] Dave Geddes: The web standards are getting really good. So, I'm excited to teach more and more web standards, things like the the new web animation API that just it finally landed in Safari, and so now it's all the major browsers can use it. We have Houdini coming, which is kind of an umbrella term for a lot of really cool CSS stuff that we're gonna be able to do. I'm really excited about that, but just, just mastering those web fundamentals I think is so important these days. And so that's, that's the focus of my games. My next game is gonna be on CSS animation.
[00:44:12] Michael Chan: Killer.
[00:44:12] Dave Geddes: You know, just learning keyframes and transitions and easing. I think it's gonna be way fun to build. I just, uh, like you said, I launched my new Mastery Games platform and And as part of that, I've got Grid Critters on sale. It's 45% off right now. So, it's $99 to help people just really master CSS Grid, which is the best thing that's ever happened to CSS. Let's be honest.
[00:44:37] Michael Chan: Oh, yeah. I mean, CSS Grid and CSS variables, it's like that blows away like so- like like a whole decade of technology that we've had to learn that sat on top of standards. It's just so freaking good.
[00:44:48] Dave Geddes: It's so true. And there's new stuff all the time. Clip uh clip-path is relatively new. I just used that the other day, um where, you know, back in the day we would have to make a transparent PNG image. But with clip-path, you can just go in the Firefox DevTools, are amazing for layout. Um you can just edit any clip-path, you know, you can adjust, it turns it into like Illustrator or Figma where you can adjust the points on the on the vector. And then when you're done, you copy your code in and and that's it. It's really incredible.
[00:45:21] Michael Chan: Awesome.
[00:45:22] Dave Geddes: So I'm yeah, I'm excited. I mean, I'm excited about service workers. You know, I I learned the ins and outs of service workers when I was building that game for Google, and they are so powerful. And I don't I don't see them used enough yet. You know, I don't see I don't see apps enough apps that work offline yet, but I think more and more are moving in that direction. And man, it's just crazy what you can do with the web platform these days.
[00:45:48] Michael Chan: Oh yeah, it's awesome. It's awesome. And and like you said, like every day the platform itself gets better and incorporates more and more of the really good ideas that that had to be done in user land before. And it's a really exciting thing to see that actually making its way back into the platform.
[00:46:05] Dave Geddes: Yeah.
[00:46:05] Michael Chan: And I like your advice to kind of just like keep your eyes up. You know, see what maybe libraries you don't have to use anymore. Um, and, you know, keep keep learning. Um, so where can people find you and um your your your games? I know you mentioned uh uh CSS Critters is on sale right now. Uh where can they where can they find that?
[00:46:24] Dave Geddes: Yeah, so um all my games are at mastery.games is the domain. Um, or like Grid Critters specifically is at gridcritters.com. I've got a newsletter on my site people can sign up for. I try to be funny on Twitter once in a while. Yeah, mastery.games is probably the is the home.
[00:46:43] Michael Chan: Awesome.
[00:46:44] Dave Geddes: For all this. That's where I blog blog to. I used to have everything separate, but I just recently moved it all into a monorepo, which I'm gonna write about because it's been fantastic. Like,
[00:46:52] Michael Chan: yeah,
[00:46:53] Dave Geddes: my blog, my blog is now sharing React components. A button, for example, um, an action button, the same component that's used in my games. So it's it's really cool. I'll have to delve into that later.
[00:47:05] Michael Chan: Well, I'd actually hoped to talk about the stack a little bit, but we just— uh there was so much to talk about. So maybe we'll have to have you on again and we can talk about a little bit of your stack.
[00:47:13] Dave Geddes: Cool. Sounds good, man.
[00:47:15] Michael Chan: Cool. Hey, thanks so much for your time today. I really appreciate you uh coming on and talking with us. This was super fun.
[00:47:21] Dave Geddes: Yeah, thank you. It was a blast. Have a good one, man.
[00:47:24] Michael Chan: This has been episode 95 of React Podcast. With Chantastic and Dave Geddes. Find the people and projects mentioned in this episode at reactpodcast.com/95. Thanks to our sponsor, Infinite Red. They're ready to come alongside you and help fix and finish that app you've been dreaming of. And build it with great patterns and practices for the long haul. Visit reactpodcast.infinite.red to get expert help. 2 tickets to Jam React in 2021. And a beautiful, functional app today. If you like this show, there's a fast, free way to demonstrate your support. Leave us a review on iTunes. It's the best way for you to let me know what you think we're doing right and what we can improve. 2 to 3 minutes of your time helps us make the best show we possibly can. As always, links and show notes for all episodes are available at reactpodcast.com. This episode was edited by Mikael Delport. It was produced by Mikael Delport and Sarah Jackson at Spec, a network to help you level up in design and development. Check out spec.fm for other shows that are sure to fast-track your career. I'm your friend, Chantastic. Thanks for listening. We'll be in your ears again next week.
chantastic.fm