Latest / Talk Python To Me / #249: Capture the Staff of Pythonic Knowledge in TwilioQuest
Transcript
- 0:00Are you learning or helping someone else learn Python?
- 0:02Why not make a game out of it?
- 0:04Twilio Quest is a game that doesn't treat you with kid gloves while teaching you Python.
- 0:08Use your editor of choice and write code on your machine
- 0:12and still play the game to solve the Python challenges.
- 0:14In this episode, you'll meet Kevin Winery and Ryan Kubik from Twilio,
- 0:18who created Twilio Quest, and they're here to tell us all about it.
- 0:22This is Talk Python To Me, episode 249, recorded December 12, 2019.
- 0:27Welcome to Talk Python To Me, a weekly podcast on Python,
- 0:44the language, the libraries, the ecosystem, and the personalities.
- 0:47This is your host, Michael Kennedy.
- 0:49Follow me on Twitter, where I'm @mkennedy.
- 0:51Keep up with the show and listen to past episodes at talkpython.fm,
- 0:55and follow the show on Twitter via at talkpython.
- 0:57This episode is brought to you by Tidelift and Linode.
- 1:00Please check out what they're offering during their segments.
- 1:02It really helps support the show.
- 1:04Kevin, Ryan, welcome to Talk Python To Me.
- 1:06Awesome. Thank you very much. It's a pleasure to be here.
- 1:08Yeah, thanks.
- 1:09Nice to spend a little time with you guys and talk about this programming game.
- 1:13I think it's going to be so much fun.
- 1:14For a long time, I played actual games, you know, MechWarrior, Half-Life, Counter-Strike,
- 1:19something like that.
- 1:20But then I felt like that was kind of just wasting my time.
- 1:23And my game actually sort of became programming, you know,
- 1:26instead of going and diving into a world like that.
- 1:29I was like, well, what can I build in the world with code?
- 1:31And like creating stuff with code kind of almost became a game to me.
- 1:34And you've sort of clashed these worlds together in an interesting sense,
- 1:38at least at the learning level.
- 1:39Yeah, I think so.
- 1:40And it is kind of funny that it sort of scratches the same itch, right?
- 1:44Like, you know, building something with code, it seems to somehow feel, I don't know,
- 1:48maybe it's not so weird, especially when you see games like Minecraft and that sort of thing.
- 1:52But yeah, it's been fun to kind of marry those two passions for me as well.
- 1:56Yeah. And if you disguise them right, kids will love them, right?
- 1:59Like kids love Minecraft.
- 2:00If you told kids to go like do programming homework, they'd be like, no, I don't want to.
- 2:04But then they'll like beg for Minecraft, right?
- 2:06You know, it's just like the context is really, really interesting.
- 2:08Yeah.
- 2:09Yeah. Before we get too deep into the game side and talking about Twilio Quest,
- 2:13the thing that you both have built, I want to talk a little bit about just where you're coming from
- 2:16and your story. So, Kevin, let's start with you. How'd you get into programming in Python?
- 2:20I got into programming kind of in high school. There was like a, I don't know if you can call it
- 2:25programming, but there is this hyper card software that was installed on the computers at school.
- 2:31And I got really into like creating like interfaces in this like drag and drop system where you could
- 2:38click on links to go to another card in the, in the system. and just thought that was,
- 2:43that was super fun. and then, in college, I studied, programming and wrote like a red
- 2:49Rover simulator in scheme. and thought that, thought that I was a genius for figuring out.
- 2:55Well, if you did it in scheme, you kind of are, I mean, you are a genius. If you can handle that
- 3:00many parentheses at a time.
- 3:02So many parentheses.
- 3:02So many parentheses.
- 3:04Just kidding. Sorry.
- 3:05No, it was super fun. And then, but yeah, that, that was kind of what kind of got me hooked is the
- 3:10ability to create like even just a stupid little game, like red Rover in, in scheme. And yeah. And
- 3:15then I'm working at a, I've been programming for about 15 years now. I've been at Twilio for a little
- 3:19over seven years and I do lots of different programming languages, but my primary Python is,
- 3:25you know, our documentation website at Twilio, is built on a wagtail, which I'm sure many folks
- 3:30know is a CMS extension.
- 3:32Yeah. It's a Django. Yeah. Django CMS. It's a really nice one, actually quite nice.
- 3:36Yeah. Super extensible. I mean, like Twilio has made a couple minor contributions and we've done a
- 3:41whole bunch of customization, but yeah, it's worked out, worked out great. And that's kind of been my
- 3:45first big Python project that I've been associated with, but I am more of a JavaScript person by trade for
- 3:50sure. Right. And some of the, even though the lessons are for Python for some of the lessons
- 3:56and missions, we're going to talk about the app at the low level, it will, we'll dig in as well as
- 4:00more of a JavaScript, HTML type of thing, right? Yep. Yep. It is. Yeah. Well, I'm sure we'll dig into
- 4:05it, but it's a electron application and, HTML, CSS and JavaScript. So. Yep. Yeah. There's a lot of
- 4:11those these days. Ryan, how about you? Yeah. So like you, I spent a lot of time when I was younger
- 4:16playing video games and then I ended up just making maps and stuff in video games. And then I
- 4:21figured out like, Oh, maybe I should make something useful instead. So that was sort of my transition
- 4:27into like, well, maybe I'll try to make a game on its own. And that didn't really fully blossom for me
- 4:32until sort of undergrad. I started with Java and then learned to love, hate that. But Python was always
- 4:38this sort of like, whenever there was a weird fun experiment, like we had like some big data courses
- 4:43or like some machine learning thing, like Python was always the thing they're like, and now you can
- 4:47have fun for a minute before you have to go back to writing all of your interfaces and stuff.
- 4:51Right, right, right. Yeah. So that my initial impressions of Python have always been very fun,
- 4:57even though I've never actually had the chance to use it professionally. But I also, the one time I
- 5:03came close as I taught a intro to programming course in Python at a, at a local bootcamp. And that was
- 5:09definitely a good choice. I was glad that I did not have to teach people Java in that setting.
- 5:14Now you implement this interface and that's an abstract method. So what that means is this,
- 5:19and I'm like, Oh my goodness, I just want to print something out on the screen. Can we not do all this?
- 5:24Yes. No, it's been amazing. I generally do JavaScript these days,
- 5:27since TwilioQuest is all Node and React and all that. But I also am glad I didn't have to explain
- 5:34that to new people too. So.
- 5:36Yeah, for sure. For sure. So let's start by talking a little bit more about your background,
- 5:42because it sounds like you both are somewhat involved in education and TwilioQuest came out of
- 5:48some interesting educational stuff done for Twilio and whatnot. So what's your backgrounds
- 5:54in teaching and building courses or tutorials and things like that?
- 5:59Before coming to Twilio, I worked at another smaller startup called AppCelerator. And we created
- 6:04this thing called Titanium, which was a cross-platform tool that let you build mobile applications in
- 6:10JavaScript. And I built a lot of educational content around that, sort of like a, sort of a lightweight
- 6:16certification program. And I've, and since coming to Twilio, have also worked on documentation and
- 6:23other resources for developers, including our live training program. And TwilioQuest was kind of
- 6:28came from all of that as sort of a reaction to what I didn't like about how I was teaching developers.
- 6:35And TwilioQuest is kind of how I prefer to.
- 6:37Yeah, sure. And you're like, I'm teaching them just, here's an API, here's an API, here's kind of a
- 6:43static tutorial they have to go through. And you're like, could it be more engaging, huh?
- 6:47Yeah, absolutely. Like I, the, I mean, and we'll, I don't know if this is the right time to dive in,
- 6:51but basically TwilioQuest was created because I wanted to, you know, live training setting, like give
- 6:57people the opportunity to sort of progress at their own pace. Because in any kind of like live training,
- 7:01it's either too fast for some people, or it's too slow for some people. And, you know, with something
- 7:07self-paced like TwilioQuest, if you're brand new to the topic, and you only make it through three
- 7:12exercises, that's great. Or if you're a more advanced developer, maybe you can speed through
- 7:1620 pieces of content throughout the day. So yeah, that's a real big challenge of these in-person
- 7:21trainings. It's also a challenge of online and self-paced, but it's a really big challenge of
- 7:26the next half hour, I want you to do this. Whether that's a PyCon or other conference,
- 7:31like live workshop, or it's a week long training class. There's people of massive different
- 7:37backgrounds in there, and it's super challenging to give them something interesting that doesn't
- 7:42either stop in 10 minutes for the experts or just kill the beginners, right? I did 10 years of in-person
- 7:49training, and people would come to me and they would say, Michael, we're almost out of time,
- 7:53I'm only halfway done. I don't think I'm getting this topic. Or the point is to have enough that even
- 7:58the really experienced people don't run out of time. So don't feel like you've got to get through
- 8:02all of it, right? It's just, it's a big challenge, right? And so I think the open-ended
- 8:06quest concept, they can just keep going down these paths, which is pretty cool.
- 8:11Yeah, totally. And that's like sort of has formed the core of it. And we still use that in our live,
- 8:16use TwilioQuest in our live training today for that reason. But yeah, we had like the software and
- 8:21kind of a lot of the other tools that we built around it ended up being useful to build something
- 8:26for self-service learning too, so.
- 8:28Yeah. Before we move off of it, what does live training at Twilio look like? Is that like a big
- 8:32company that wants to implement working with you guys, say, hey, come and do an in-person class or
- 8:37these like conference things that you do? I know you are exhibitors at many of the conferences around
- 8:43and whatnot.
- 8:44Yeah, I think it's kind of a little bit of all those things you mentioned. So we will go to
- 8:49companies sometimes, and they're interested in sort of, you know, leveling up a bunch of developers on
- 8:54how to use Twilio because they're about to embark on a larger project of some kind. So we've definitely
- 8:59run TwilioQuest in those settings. And then we also, Twilio will sponsor conferences and other
- 9:05meetups and developer events. And we'll often do like a couple hours or maybe a half day where we
- 9:11get people together, they play TwilioQuest. And both when we do it on site at Giant Corporation,
- 9:17and when we do it at meetup, we usually do a leaderboard with the XP totals of everybody during
- 9:22the event. And then we usually give out some like goofy prizes at the end for people that have
- 9:27completed certain objectives within TwilioQuest. So yeah, and most of it we do we do kind of
- 9:33intersperse it with some live demos, like some live code demos, or some demos of larger applications.
- 9:38But it's usually like a facilitated hands on experience where people kind of move through
- 9:44the content at their own pace.
- 9:45Okay, cool. Ryan, how about you teaching background experience?
- 9:49For me, this is again, this is the first full time educational role I've had. So a lot of my
- 9:53previous experiences sort of been trying out a bunch of different ways to help people learn and
- 9:58find that way that I'm actually effective at doing that. So I mentioned that that one time boot camp
- 10:03course I did, that was the only time I did that. Because teaching at a boot camp is stressful and
- 10:08crazy, especially on top of a full time job as well.
- 10:11Right. It's a pretty big commitment. Those are like 12 weeks. And that's a lot of time, right?
- 10:16Yeah, it's definitely a weird place too, because it like, the stakes are pretty high for the people
- 10:21involved. Like it's a potential life changing opportunity. And, and like, not being able to
- 10:25commit to it, like as a full time position, I just felt like I was hard to serve them as well as I feel
- 10:30like they deserved.
- 10:31I can imagine. Yeah.
- 10:32Yeah. So I've also tried like speaking at local meetups, I do a, like a monthly blog post on
- 10:37educational topics. And I just tried a bunch of different little things. And in general, I find
- 10:43the, the ways where I kind of either get to engage in conversation with folks or sort of curate an
- 10:50experience for them rather than the sort of live, like lecture style. Like I don't think I'd be very
- 10:57good at like recording a audio course or like the one time I tried streaming was a little messy,
- 11:02like sorts of settings are hard.
- 11:05These more interactive sort of, I'm here with you rather than speaking to you.
- 11:09Yeah. I like, yeah, being, being more on the team with someone versus sort of portraying as this,
- 11:17uh, all knowing deity where I in reality don't know very much at all.
- 11:21Sage on the stage.
- 11:23Yeah. That's a tricky place to be. So Kevin, while you were speaking, something that
- 11:27sounds pretty interesting. You talk about having these leaderboards and people doing this together.
- 11:31And, you know, when I was thinking about this, it was like, oh yeah. And the training that you guys
- 11:36have been doing and whatnot, this might be really a really fun activity for a meetup, right? So if
- 11:41you've got like a Python meetup or some other meetup that there's a mission for, have everybody
- 11:46come bring their laptops and then just play together. How do you like create this sort of group
- 11:53leaderboard thing? Is that something that people from the outside could do if there's
- 11:57meetup organizers out there?
- 11:58We have done it for folks before. Like we, we haven't sort of made it self-service, but we have
- 12:04a community leaders that have been like, oh man, I would really like to do Twilio quest at our meetup.
- 12:09So, you know, it takes me about 10 seconds to create a new like event in Twilio quest. So
- 12:15I've created one for folks and they have gone to a URL and they can display the leaderboard there.
- 12:22And within the game, you can actually specify that I am participating in this live event. And then it
- 12:28starts sending all your points to the leaderboard. So we've definitely done it for a few third parties
- 12:33and we do it for first party, like Twilio events all the time. Like we have a Twilio quest tea party,
- 12:39which is a fun one that some, some of our colleagues have started to do where you just hang out and just as you imagine,
- 12:45drink tea and eat fancy cakes, and then also play Twilio quest at the same time.
- 12:50Yeah, that sounds pretty cool. All right. Nice. I think it would actually be a pretty fun activity.
- 12:54If you're trying to get folks involved to have like something of a beginner night, or you could pick
- 12:59more missions that are more challenging.
- 13:02Yeah, totally. We definitely want to make that more self-service. But in the meantime,
- 13:05if you tweet at Kevin Winery, he will set that up for you. So let me know.
- 13:09Super, super. Yeah. And I'll put a link to your Twitter, both of your Twitters in the show notes
- 13:14so people can just find it in their podcast players. Awesome.
- 13:16Now let's dive into Twilio quest proper and I'll read the opening paragraph. It's maybe I should try to
- 13:23describe it. It's a little bit, it's like a top-down sort of dungeon exploring game where you go
- 13:29through and you find clues and you solve puzzles by writing code to make those things happen, right?
- 13:35Is that a fair, very first impression?
- 13:38Yeah, yeah, I think so. Like we're kind of trying to go for like a Zelda or Pokemon style RPG where
- 13:44a lot of the progression is done by solving code challenges that will, you know, unlock doors and
- 13:49clear your progress or the way for progress in various ways.
- 13:52One of the things I like is the, there is conversation with little non-player character type
- 13:57things, but it actually speaks to you. And I don't know, there's just something about a game where it
- 14:02has music, but then the only way to interact with characters is, is reading. There's something nice
- 14:06about a little bit of conversation, but there's an opening section and I'll just read what it says
- 14:11there to give people the sense of kind of what you're going for, I guess.
- 14:15There's more and more, our lives are lived inside the virtual worlds of computers. The universe is
- 14:19where these virtual worlds reside is known as the cloud and it expands every second of every day
- 14:24with new worlds to discover the ability to write code. The laws that govern these virtual worlds has
- 14:29become a precious resource. And you have to go on to sort of save the world from the legacy society
- 14:35or something like that, right?
- 14:36The legacy systems, yes.
- 14:38The legacy systems.
- 14:39Yeah, they're always red when they appear in text. Very nice.
- 14:44So it starts out and you have this like, hey, welcome. You're going to like learn a little bit
- 14:49of code and you're going to, as part of the game, save the world from these legacy systems,
- 14:54but really just learn stuff, right? Which is great.
- 14:56Yeah. It's mostly, mostly just learning stuff at this point. We, in the coming year, we have some more
- 15:02story elements that are going to be coming out to kind of, that will, you know, pitch you against
- 15:07the legacy systems. But yeah, today it's mostly just learning how to code in a sci-fi setting,
- 15:12for sure.
- 15:13Yeah. Yeah. So for now, people can get ready, prepare their skills, hone their skills.
- 15:17Train up.
- 15:18Later.
- 15:18That's right. Train up. Exactly.
- 15:20This portion of Talk Python To Me is brought to you by Tidelift. Tidelift is the first managed
- 15:28open source subscription, giving you commercial support and maintenance for the open source
- 15:32dependencies you use to build your applications. And with Tidelift, you not only get more dependable
- 15:38software, but you pay the maintainers of the exact packages you're using, which means your software
- 15:43will keep getting better. The Tidelift subscription covers millions of open source projects across Python,
- 15:48JavaScript, Java, PHP, Ruby, .NET, and more. And the subscription includes security updates, licensing,
- 15:55verification, indemnification, maintenance and code improvements, package selection and version
- 16:00guidance, roadmap input, and tooling and cloud integration. The bottom line is you get the capabilities
- 16:06you'd expect and require from commercial software. But now for all the key open source software you depend
- 16:12upon, just visit talkpython.fm/Tidelift to get started today.
- 16:17You talked a little bit about how this started as working for like in-person experiences, but maybe just give us the
- 16:26history. It started way back in 2013, right?
- 16:28Yeah, yeah. So yeah, right around when I joined up at Twilio, because I had done some developer
- 16:33training stuff, I was sort of given the charter of, you know, we're having this conference,
- 16:38and we'd like to do a live training day, you should build some training for Twilio for the for the
- 16:44conference. I didn't want to do like slides code, slides code, slides code, you know, kind of like I had
- 16:49always done for developer training before. So over the course of like a couple weeks of like frantic
- 16:55hacking on like Angular one or something, I think it was back in those days, I created sort of the
- 17:01first crappy proto version of Twilio quest, where you could go through and do code challenges, except
- 17:06for the code challenges are all manually validated. Like I walked to your laptop and saw that you did
- 17:10the thing and then gave you points based on that, right? Was it also originally just in the cloud,
- 17:15just in the web?
- 17:17Yeah, it was it was just in the browser. Yes, it was built on top of parse on may they rest in power.
- 17:22But yeah, so it was, it was an app that was browser based. And yeah, we used it at live events,
- 17:28starting in 2013, and kind of sporadically going forward. And then a few years ago,
- 17:32we sort of cleaned it up, made a new version of it and actually deployed it on Wagtail, our docs,
- 17:38CMS, and did like sort of a version two of Twilio quest that was like a nicer version of what we
- 17:43initially did in 2013. And then last August, we launched Twilio quest three, which we rewrote from
- 17:50the ground up. And it is, you know, very much this game experience where you download the application,
- 17:55run it on your computer. And, and yeah, there are a variety of reasons why we did that. But,
- 18:01but yeah, it's kind of started for live training in 2013. And then we sort of rebuilt it from the ground
- 18:06up as like a self contained self service game so that it wouldn't be so tightly coupled to live
- 18:13training.
- 18:14Yeah, I think that's really neat. And people can definitely use it for all sorts of stuff.
- 18:17It's very unique in a lot of ways that we're going to talk about how you play it. It's not just your
- 18:22standard coding game gamification. Ryan, when did you get involved in the project?
- 18:26I joined back in June, I believe it was the first week of June. And that was sort of the last sort of
- 18:33crazy, crazy sprint for Signal this year, which is where we did the first sort of public release of
- 18:41Twilio quest three.
- 18:42Right. And Signal is your big developer conference, right?
- 18:44Yeah. Next one's coming up in May. And we have like a big one of those super class events that
- 18:49Ken was talking about our live training. We have our biggest one of the year there and have hundreds
- 18:53of developers come in. So we really needed to have it to request three up and polished and get the audio
- 18:58in and as much content as we could get. So it was sort of this big push that we all kind of came together
- 19:04for. So that was sort of my initial experience was very quick. It was a quick pace time.
- 19:10It was hectic. It was a hectic time.
- 19:12Yeah, we definitely got it together, thankfully, and shipped it in August.
- 19:17So yeah, super. And your background coming from games and more web development JavaScript side,
- 19:23what part did you work on?
- 19:25For me personally, I've always wanted to work on games, but I've also really enjoyed web development.
- 19:29So this intersection for me has always been like, when I practice code at home, I write web games.
- 19:35So I've been writing games in the same, like we use a library called Phaser, and then we use React,
- 19:41and all these web technologies that I've been using to make games for the past several years
- 19:45in my own time. What I didn't know then is that I was apparently training up for this exact opening,
- 19:50where...
- 19:51It's funny how life is like that, right? Like, this is the thing I'm really into,
- 19:55and then I have no idea what I'm going to do with this. And then boom, like, wow.
- 19:58Yeah, exactly. Good work there on making your hobby fit.
- 20:02Yeah, so I had basically been for several, several months before my application to work on
- 20:10TwilioQuest, I was working on another game that was powered by Electron and used Phaser and React
- 20:15to make an interactive, downloadable video game experience in web tech. So it was sort of that
- 20:21technical know-how and experience, I think, is the primary contribution. And then just in general,
- 20:26I've been making games for a few years. So I think that I bring some insights on that front as well.
- 20:31Yeah, and it's super cool. So I know what React is, I know what Electron is, I know what HTML is,
- 20:36Node, all those things. But Phaser I had not heard about, and it looks pretty interesting.
- 20:40Tell people about Phaser.
- 20:41Phaser.js is a game development framework of sorts, I think is the best way to think about it. So
- 20:46you could go into writing your own physics engine and your own collision system and your own audio
- 20:52player and your own rendering code.
- 20:55Then four years later.
- 20:56Yeah, exactly. Then you could start a project. So instead, Phaser gives you a lot of great APIs for
- 21:02things that are just like, I just want the character to move when I push the arrow keys. And Phaser says,
- 21:06like, okay, make a sprite and then add cursors and then like, okay, your character moves. The camera
- 21:11follows them. So it just gives you a lot of great utilities to get you up and running and like making
- 21:15your game rather than making all of the giant technological decisions and implementation that
- 21:21goes behind having a game run.
- 21:22Oh, that's cool. And it's based on Canvas and WebGL and it's on GitHub. Pretty neat.
- 21:27Yeah, it's an open source project.
- 21:28Yeah, yeah. Okay. Very cool.
- 21:30Yeah, it's been a pleasure.
- 21:30Yeah, I bet it has. You know, it's really much better than just trying to write that all from scratch,
- 21:35right?
- 21:36For sure. Yes.
- 21:36So Kevin, one of the things that I think that particularly speaks to me when I play this game
- 21:42is the way that it is real programming. Because one of the things that kind of bugs me is if I go
- 21:50to some online place and says, you can write code here and then this is part of our challenge. And I'll
- 21:56talk about some that are nice and not knocking on them at all. But you go there and it's not the same
- 22:00experience. It's not the same as if I'm going to open up the main web application that I work on or the
- 22:06mobile apps. I'm not going to do that in the browser. I'm going to fire up an IDE or some
- 22:11proper editor and work on my local file system, right? And so one of the things that really
- 22:15surprised me about this game is you go through and you have these challenges, you got to like unlock
- 22:19little electric doors or whatever. And the way you do that is you write some code to solve a challenge
- 22:23or a puzzle. But the place and the way you write the code is on your machine, right?
- 22:28Yeah, that is something that we kind of felt strongly about. Like, I love a lot of those browser
- 22:32based experiences as well. They're fantastic for like teaching the syntax of programming languages and
- 22:38things like that. But the skills that you need to like, as you kind of alluded to, to actually write
- 22:44code professionally, or you have to kind of start using your computer like a developer, you have to
- 22:49kind of know how to navigate a terminal and execute code from the command line and maintain a directory
- 22:55where all your all your code lives. So in a lot of the content in TwilioQuest, we try to,
- 23:01we try to have you actually do that. And because TwilioQuest is a desktop application running on your
- 23:06computer, that gives us the chance to kind of incrementally validate that you've done that. So
- 23:11we have one mission where you can learn Git. So we can verify that you have Git installed,
- 23:17we can look at a directory where you cloned a repository to see if you've
- 23:21created a branch of a certain name. So the fact that we're running on your computer gives us the
- 23:27opportunity to kind of really step you through what is necessary to actually set your computer up for
- 23:33development, which I think is like an important step of teaching people to fish in this process,
- 23:38for sure.
- 23:39I agree, because you come to one of these, these online things. And like I said, they can be really
- 23:45nice. But then I want to build a real thing. What the heck do I do? I have no like, there's not this
- 23:50web editor, okay, I got to figure out a proper editor, I got to, how do I get the, you know, Python or
- 23:55Node or Git or whatever it is I'm trying to work with onto the computer. And then Oh, it's not in the
- 24:00right path. And there's just all these challenges, right? So it's, it's pretty cool. Ryan, what are your
- 24:04thoughts on this?
- 24:04Yeah, it's that's the same thing for me. I think back to like learning to code, I use like computer
- 24:11craft in Minecraft or something. And I wrote this little thing that made a bot move around. And then
- 24:16as soon as you look at your normal computer, and you're like, how on earth do I do anything? Like,
- 24:22I don't know how to deploy this code, I don't know how to install stuff. I, it's all just sort of this
- 24:27mess that like, there isn't, at least, hopefully, two requests can help solve this. But there's not really
- 24:32anything that, that teaches you that process, except for like an instructor sitting next to
- 24:36you and like showing you like, how to do this stuff.
- 24:39Yeah, you know, there's a couple of other platforms out there that I think are worth throwing out for
- 24:43people to just consider kind of in this realm. And they're all trying to approach this problem of I
- 24:49want to teach some simple programming skills in some sort of gamified way, right? So the first one is
- 24:56the PyBytes code challenge platform, that when you go there, and there's like a bunch of little
- 25:01challenges that you do, and you can do them in your browser. And the way those validate is it just
- 25:06runs pytest in the background to verify, you know, that it's getting what it would expect, right?
- 25:10And then you the gamification side is kind of like you get badges, you become a ninja or levels or
- 25:15whatever. Then there's check IO, where you actually go into like virtual worlds, more of the canvas web GL
- 25:22type of thing. And you navigate those and you sort of solve parts of the world. And then when you unlock a
- 25:29part, you can compare your solution to the other people's solution and talk about it, which is really
- 25:33interesting. Like, for example, I went through that and I inadvertently learned that I have this tendency
- 25:40to optimize for performance rather than simplicity, whenever I'm doing something, you know, I'm like solving this
- 25:46problem. Like, Oh, I'll do it this way, because it would be really bad to just like, you know, re query the list
- 25:52every time. Let me like do some sort of little optimization for that. Just not thinking that
- 25:56that's what I wanted. That's just, here's a proper solution, right? Then I looked and other people had
- 26:01it and like half the length. I'm like, why did they get it so quickly? I'm like, Oh, because they don't
- 26:05care about this thing that I thought mattered. And it probably doesn't. Obviously, in that case,
- 26:09it doesn't. Right. But it's interesting to get this comparison. And then the last one, which I think is
- 26:14super interesting in the game side is code combat. And Kevin, you're familiar with that one,
- 26:18right? Yeah, yeah. I've definitely played code combat a little bit. And my daughter Grace has
- 26:23made a decent amount of progress through there as well. So yeah, it's a really, it's a really cool
- 26:27project. You know what I really like? I love code combat. My daughter's played it some and she was
- 26:32quite successful and she's not good at programming. She was pretty young. And what I really like about
- 26:37code combat is it doesn't pull the punches. It's not like one of the sketch type things where you drag
- 26:42it around. You're like, Oh, guess what? If you turn this around, it'll show you the code that you
- 26:45wrote, but you didn't really write. You know what I mean? This one is like a dungeon that you go
- 26:49through and you solve these problems, but you solve them by writing in a code editor online for real.
- 26:55But what's super interesting is the autocomplete of the code editor is like ridiculous. Like you have
- 27:00a hero object and the hero has to maybe attack an enemy. You type the letter A, it'll say it'll
- 27:05autocomplete hero attack enemy and it'll like select the enemy, right? It's like ridiculous amounts of
- 27:09autocomplete, but it's still real Python code.
- 27:11I think that's definitely what I like most about it is that you're typing in code. I mean,
- 27:16I think like the autocomplete stuff is also really awesome. And the working with the domain objects
- 27:25of the game is kind of interesting is it's sort of introducing you to object oriented programming,
- 27:31but not really like you're just kind of absorbing through osmosis. The fact that, you know, there are
- 27:36objects that have these members and all of these other, all these other things. So yeah, lots,
- 27:41there's definitely a lot of inspiration there for like different things that we do in Toolia Quest.
- 27:46Like I think we approach the content in a slightly different way and we, in the game world is,
- 27:51is a lot different, but code combat is really, is really cool.
- 27:54Like I said before, I think the most important difference that you guys have out there is that
- 27:58you write real code with a local editor and then you go to the game and you say, check it out.
- 28:03So I'll give a real quick sense so people know the flow. Like I went through the Python part,
- 28:08which we'll talk more about, but the first challenge or puzzle you have to solve is install Python 3 on
- 28:14your system and set the path, right? So in the game, you actually say, here's the path to the
- 28:18interpreter, executable. And then the next one is to create a folder and put a file in it. And
- 28:23then after that, it's like, well, we know where Python is and all the files you create for the rest of
- 28:27the game are in this folder. We can run them and we don't ever have to ask you again, but it's not like
- 28:32there was a now go to the preferences and set the config settings where you select Python. No, it was like part of the
- 28:37game. So it was fun to do that or, you know, relatively speaking.
- 28:40Yeah. Yeah. I think like exposing it as a part of the narrative of the level was pretty important.
- 28:46And I think like, yeah, that's probably going to be the main difference people, I hope, will notice in
- 28:51TulioQuest is that we made a conscious decision to sort of separate the programming tasks that we would ask people to do
- 28:58from like the gameplay aspects of like moving your character around and unlocking laser gates and all
- 29:03of that other stuff. More because like where we want to make sure that like the technical skills that
- 29:07we're teaching are very practical. I mean, there's, you know, several reasons for that. But in code
- 29:13combat, one thing that you're sort of doing is you're learning how like this code combat world works and
- 29:19working with this set of objects versus sort of equipping yourself with a skill set to write your own
- 29:26Python code. Right. Yes. So I think like that's kind of what we're trying to do with the
- 29:31technical content design in TulioQuest. Cool. Ryan, are you familiar with any of these or other
- 29:36game like platforms you want to give a shout out to? I'm not familiar with any of these ones in
- 29:40particular. The one that always comes to mind for me is there's like an online game called
- 29:45Screeps where you sort of write like JavaScript, like little bots that automate a bunch of tasks.
- 29:50And it's definitely much more about like, it's not necessarily focused on being educational,
- 29:54I don't think. But it's a game that is powered by people writing code, which I still find is an
- 29:59Screeps. Yeah. Yeah. Cool. How do you spell that?
- 30:02S-C-R-E-E-P-S, I think.
- 30:05Screeps. Okay. Yeah. Yeah. Yeah. Yeah. Cool. I'll put a link to that as well. Cool. That sounds
- 30:12interesting. Yeah. So let's maybe talk for a minute about the missions that you all have available.
- 30:18Then I want to dive into the Python one. Starts out with basic training. The only one, just so you know,
- 30:24the only one I've experienced with is the mysteries of the Pythonic temple. So you'll have to just kind
- 30:29of talk us through these, but what are some of the missions you got out there?
- 30:32A big chunk of the missions in Twilio Quest teach you how to use various Twilio APIs. So Twilio,
- 30:38for those that might not be familiar, we're an API company that provides communications APIs. So you
- 30:45can use Twilio to send text messages, make voice calls, or create video conferencing, or send faxes,
- 30:51all kinds of wild stuff. So a large chunk of the content in Twilio Quest is Twilio related,
- 30:57because that's kind of where we started. The place that we're going is starting to use Twilio Quest as
- 31:02a platform for general engineering education. So the Python mission, the Pythonic temple is one example
- 31:08of that. But we also have a mission called the flame of open source, where you learn how to...
- 31:13I love the name there, the flame of open source. Yeah, tell us about it.
- 31:17Yeah, it's a fun one. So in that one, you actually go through this forest. And in the center of the
- 31:24forest is this ancient artifact known as the flame of open source. And the way that you get to it
- 31:29is by configuring Git on your local computer, and going through the process of actually submitting a
- 31:36pull request on GitHub to a repository that we've set up on Twilio's GitHub as sort of like a way to
- 31:42learn how to do your first pull request.
- 31:44Yeah, that's cool. You don't have to do a real PR to a real project. You just have to do a simple
- 31:49one to yours, right? That's more achievable.
- 31:51Yeah, exactly. So you don't have to, you know, figure out how, how Flask works and submit a PR. But,
- 31:56but yeah, so it just ends up being a good way to, you know, actually use GitHub to submit a pull
- 32:01request. So you just kind of become familiar with that process. We also have a mission that teaches
- 32:06JavaScript, where you're kind of navigating a lab like environment and doing basic JavaScript stuff.
- 32:12we're actually kind of in the process of doing a big revamp, to make that a little more story based,
- 32:17like the Python mission is. And then we also recently released a mission that's sort of a
- 32:22companion for Advent of Code, which is another great resource that's out there that folks can use in the
- 32:27month of December or anytime.
- 32:29Is that like a problem a day or something like that?
- 32:31Yep. It's a new problem every day in December. And they give you unique input that you can download
- 32:38to your computer. And you could solve it with whatever tools you wanted. They don't actually
- 32:42provide like a browser editor or anything like that. But in TwilioQuest, we provide a mission and,
- 32:48you know, some, some tools and an integrated editor, where you can actually use JavaScript to solve the
- 32:54problems in Advent of Code as well.
- 32:56That's cool. Well, this episode is going to come out probably in January. So people might just want
- 33:01to put a note on their calendar for 11 months later, that this is going to be totally relevant.
- 33:05That'll just mean that they don't have to wait. They can just do all 25 days.
- 33:09The Advent of February code.
- 33:12This portion of Talk Python To Me is brought to you by Linode. Whether you're working on a personal
- 33:20project or managing your enterprise's infrastructure, Linode has the pricing, support, and scale that you
- 33:26need to take your project to the next level. With 11 data centers worldwide, including their newest data
- 33:31center in Sydney, Australia, enterprise-grade hardware, S3-compatible storage, and the next-generation
- 33:37network, Linode delivers the performance that you expect at a price that you don't.
- 33:42Get started on Linode today with a $20 credit and you get access to native SSD storage, a 40-gigabit
- 33:48network, industry-leading processors, their revamped cloud manager at cloud.linode.com,
- 33:54root access to your server, along with their newest API and a Python CLI. Just visit talkpython.fm
- 34:00slash Linode when creating a new Linode account, and you'll automatically get $20 credit for your
- 34:06next project. Oh, and one last thing. They're hiring. Go to linode.com slash careers to find out
- 34:11more. Let them know that we sent you. Yeah, so let's talk about this, the mysteries of the
- 34:18Pythonic Temple. And all these are kind of fun. The little intro for this part is you get to follow
- 34:23in the footsteps of the legendary explorer, Toledo van Possum. A hat tip to Geeta van Rossum, right?
- 34:29Indeed.
- 34:30As you uncover the mysteries of the Pythonic Temple, the last surviving structure of the ancient city of
- 34:35Python, and you learn how to use the Python in programming language and other tools. And your reward is the
- 34:40staff of Pythonic knowledge. Lovely.
- 34:42Indeed it is. Yes.
- 34:44Yeah. Did you see the one people have been carrying around at PyCon? I don't know if you were even
- 34:49there, but the last couple of years, Anthony Shaw has got this 3D printed, it's probably, I don't know,
- 34:56an inch thick and six feet tall and multiple, you know, Python colors. And Brian Okken had one,
- 35:01and they're walking around these giant Python, it's got a giant Python symbol on the top. These
- 35:04things are crazy.
- 35:05Wait, what? So there's a little staff of Pythonic knowledge?
- 35:09Oh yeah, let's see if I can find it.
- 35:10I have no knowledge of this. This is fantastic. I need to figure this out immediately.
- 35:15Oh man.
- 35:17It's real.
- 35:17Yeah. It's the, yeah, I'll put it, it's called the Pythonic staff of enlightenment. And yeah,
- 35:24I'll put it in the show notes here. I'll put it in there right in the doc so you can see right now
- 35:29as we're talking.
- 35:30I can't believe it. That is so hilarious.
- 35:33It is really cool.
- 35:34We were not, oh my God. Yeah. So like, I'll just go down a little bit. You'll see this bad boy. Yeah.
- 35:40You can order one. They're not totally cheap because there's a lot of power in that bad boy, but yeah.
- 35:44Yeah. They even got Guido Van Rossum posing with that thing at one of the conferences. It was great.
- 35:52That is pretty cool. Yeah. Now I feel like an idiot for not Googling this first, but that is.
- 35:58No, I mean, yeah, like this is beautiful. I think it's actually the perfect reward for this.
- 36:02So let me just like run people through the quick thing is, like I said at the beginning, you basically do this on your computer.
- 36:08So what I did is I fired up PyCharm and created a folder. And the first, you know, it says you've got to go through
- 36:13and collect all of the notes of Toledo, the Explorer to figure out what's going on and so on.
- 36:18And they're all behind these locked lightning barrier type things, laser barriers.
- 36:24And so you've got to go and solve the problems of each one. Like the first one is configure Python.
- 36:30So the game can find it and make sure it's on the machine. The next one is, I like the names here.
- 36:34Excuse me. The names are like the trial of salutation, which really is hello world.
- 36:40Yeah, indeed.
- 36:40You've got the trial of soliciting input, which is taking arguments, trial of naming, trial of numbers,
- 36:47myriad of properties, word succession, iteration. So like the foundations of the Python language,
- 36:51like the truth for the glory of Python, where you do if statements. And finally, the grand finale.
- 36:58I won't give people the answer, but you have to do the trial of trickery, which is biz buzz.
- 37:04Yep, indeed. So yeah, the entrance into the ancient city of Python was by no means guaranteed.
- 37:10You had to earn your place as a citizen of the city. So, so yeah, as the player, you have to go
- 37:15through the same citizenship trials that the ancient Pythonistas had to back in those days. So yeah,
- 37:22it's pretty fun to build out for sure.
- 37:24Yeah, that's super cool. And you're planning, you guys are planning more, right?
- 37:27Yeah, yeah. We, so the, if you actually load up the mission, you'll see that a lot of the
- 37:31Pythonic temple is, is currently collapsed. And you know, crews are working around the clock to sort of
- 37:37unlock new areas of the temple. And in those areas, there'll be sort of similar puzzles around,
- 37:43you know, learning how to use Flask and other libraries within Python and other more advanced
- 37:49Python programming techniques like object oriented programming and creating modules and things of
- 37:54that nature. Much of the current mission is kind of based on or teaching you basic Python syntax.
- 37:59So yeah, over the next, you know, coming months, we'll have more areas of the temple that become
- 38:04unlocked that you can explore and learn new stuff about Python.
- 38:07Cool. And how do I get the update? So one of the things that is easy for websites is to be
- 38:14updated without a whole lot of effort from the people. What have you guys done to update the
- 38:18thing I downloaded? Or how do I get updates?
- 38:21Yeah, so the thing that you downloaded is a launcher program. It's kind of like if you have used
- 38:26Minecraft before, like if there's a new version of Minecraft, it sort of automatically downloads it
- 38:31and unzips it and all that stuff. When you launch TwilioQuest, you see an interface that will
- 38:37check for the newest version. If there's a new version, it'll download it. And then you can
- 38:41choose to launch that new version if you would like.
- 38:43Okay. Brian, do you want to talk a little bit about the internals about how this thing is built? We've
- 38:48touched on some of the things like we touched a tiny bit on phaser and stuff, but maybe a little
- 38:53bit deeper look?
- 38:54Sure. Yeah, I could probably go on forever and get lost and confused because I'm sure I don't even know
- 39:00all of the details. But the core of it, it all sort of starts with that launcher that Kevin mentioned.
- 39:05We ship a version of Electron, which is sort of like shipping a small version of Chromium to each user
- 39:11so that we can kind of control the environment that our TwilioQuest is running in, which is actually a nice
- 39:17luxury compared to the web version where we have to worry about like, does this work on Safari and
- 39:22Firefox and Opera and where else?
- 39:25Did somebody actually seriously just visit it with IE? Did that actually just happen and they're
- 39:29complaining about it? Things like that, right?
- 39:31Yeah.
- 39:31I think that we actually, that happens a lot because some of the training events and stuff, like we end
- 39:37up working with people that are Windows developers that have like some IT restricted machine and like
- 39:43that's a, there's a lot of complications around that world that we have to deal with. And so this helps
- 39:49us restrict some of those variables. And then there's other variables that this introduces that make
- 39:53it hard for us to control because now we're shipping a Windows application, the Mac application and a
- 39:59Linux application. But that stuff all kind of wraps a relatively normal web page. Electron gives you
- 40:06sort of some Node.js processes that you can use to interact with like the file system and to like
- 40:11make network quests. And then we have a, another set of like a traditional web page basically where we
- 40:17have React running and it kind of does all of the UI for TwilioQuest. So everything that pops up and
- 40:22shows like Cedric is talking to you, one of our, our NPC mascots. That's all like React modals and,
- 40:29and dialogue boxes. And then Phaser is sort of letting you walk around the world and interact
- 40:34with stuff.
- 40:34Okay. Yeah, that's cool. And for people who haven't built Electron JS apps, it's kind of like
- 40:38you have the Node side of things and you have the browser side of things. You just have a,
- 40:43I don't know if it's index or main, but HTML, I can't remember, but you just have like your
- 40:47starter page and your starter JavaScript. And it's much like building a single page app as you would in
- 40:52React or Vue or something like that. But then you could call down to Node and do machine level
- 40:57stuff as well. Right.
- 40:58And so that's where some of the weird stuff comes in where like, because we have the ability to,
- 41:02we have sort of an integrated JavaScript IDE that you can use, or IDE is maybe generous,
- 41:07but editor. And then that sort of spins up other electron processes, like render processes that run
- 41:13your code sandbox so that Twilio Quest doesn't crash if your code loops forever or, or things like
- 41:18that. So there's a lot of kind of wild problems that at least in my web development background,
- 41:22I've never had to deal with before. So it's been an interesting challenge.
- 41:25Yeah, for sure. And how, how long did it take you all to find out that somebody might write code
- 41:30that's an infinite loop?
- 41:32Yeah.
- 41:33I mean, another process because it's hung up and I don't, they keep saying there's a buck in the app,
- 41:37but what is, it seems fine to me. I don't know.
- 41:39Yeah, no, there's definitely been a lot of like zombie process hunting that has happened over the
- 41:44years. But yeah, we, we hit that relatively quickly and there's still a couple of corner cases that where
- 41:49things can get gnarly with the code editor, but, but yeah, it's, it's been fun. Like it's just,
- 41:54it's a different set of challenges when you're operating on the desktop. When we kind of considered the
- 41:57trade-offs, we knew we wanted to write content that could teach any kind of technical skill,
- 42:02like whether it was like Git or Python or Rust or MongoDB or whatever it would happen to be.
- 42:09We wanted to be able to have like really granular validation and, you know, tight system integration
- 42:14for all of that stuff. And we being only one of me for a long time, and then Ryan joined up and has
- 42:21just been a superstar for several months now. But with a relatively small team, the prospect of like
- 42:27building a cloud-based environment that could support all these different technologies was daunting.
- 42:31So we opted to go with solving problems on the client side versus trying to create this
- 42:37virtualization infrastructure to do all the stuff that we wanted to do.
- 42:40Yeah. There's a lot of challenges to make that happen, set up the right config and
- 42:44right. Like if you're doing something that's got a server side process, like you mentioned MongoDB,
- 42:49then you've got to have a system, but you don't want them to abuse it or other people to see it.
- 42:53It gets really complicated. The security leaks or, you know, Docker or VM escape bugs that who knows
- 43:00even exists, right? You don't want to be part of that. So if it runs on the machine with their local
- 43:05Python or their local JavaScript or node or whatever, the worst thing is to attack themselves, right?
- 43:10Exactly. They are welcome to pwn their own computers if they would like. In fact, that means they've already won.
- 43:16They've already become a developer. So good job.
- 43:18Exactly. Well done. Well done. It worked on your machine until it didn't.
- 43:23Like I'm going to send this like launch sub process, RM-RF, you know, pseudo against their root directory.
- 43:29Boom. Like, oh, wait, why is it rebooting?
- 43:32Yeah. I like to joke that one of our final missions will be hacking Twilio Quest itself,
- 43:37making your own.
- 43:38Yeah. Nice. Well, speaking of hacking Twilio Quest, you know, you have these cool missions.
- 43:44What is the possibility of customizing missions or creating new missions? Could they, can that be done?
- 43:52Can people submit them to you? Would you include them? Like, what's the story around that? Like,
- 43:56could you crowdsource some of that? Yeah.
- 43:58Give you involved?
- 43:59Yeah, no, it's funny you should ask. We were actually just sort of scheming just this very
- 44:05week here in December about how we could make that possible. Because we've actually have made
- 44:10quite a bit of investment for like content authoring tools that we use.
- 44:14Right. Yeah. I was wondering, do you guys have like level builders and other types of things to
- 44:19help facilitate this and like for music and so on?
- 44:22Yeah. I mean, it's more like we built a lot of the plumbing around tools. So like the primary level
- 44:27editor we use is a program called Tiled or Tiled. It's just map editor.org. That's a very popular
- 44:33open source tool that, you know, you can use to build maps.
- 44:37Oh, yeah. Yeah. Yeah. Yeah.
- 44:38So we use that and that exports a JSON file that we that we process and use in the in the game. And then we've just built a lot of scripting and like command line tools for, you know, writing content and markdown and validation code and JavaScript to make sure that people have completed the missions, you know, to specification.
- 44:57So yeah, so we're not there yet. But we hope that in the not too distant future and next year, certainly we'll just be able to let people use the same tools that we use to contribute content to Twilio Quest as well.
- 45:07Yeah. That sounds really neat. And if you had the ability to create your own custom event that people could be part of, create your own custom levels that people could submit back. I could see a really cool little ecosystem build up around it.
- 45:20Yeah. I mean, I've definitely taken a lot of inspiration from Minecraft for a lot of the different parts of the UX and like the modding community around Minecraft is one of the things that's, you know, fostered a lot of creativity in that community.
- 45:33So we definitely want to provide the same kinds of opportunities if folks are interested for Twilio Quest.
- 45:38Yeah. As we've worked on this project, we've learned the limitations of being two humans.
- 45:42So the more we can bring more more folks in to contribute their knowledge and and train everyone, the better it's going to be for everyone involved, where more people can learn more things from different folks.
- 45:54And we really just think that there's an opportunity to kind of help Twilio Quest transcend beyond what just Kevin and I could accomplish on our own.
- 46:02Yeah, for sure. I could see tons of folks who are really passionate about their project, whether that's somebody creating a David Lord running Flask or somebody creating a new web framework or a new language or whatever.
- 46:13And they're like, I would really love to have a more engaging way to have a tutorial rather than just follow these steps and read the docs.
- 46:20Read the docs is great, but it's not the same as a game. Right.
- 46:24And so there's a lot of people who want to get visibility or more interest in their projects.
- 46:29You could end up with all sorts of things like the phaser people could come along and say, you know what, we want to have a little game to build games, right?
- 46:37Very meta or something like that. It seems like it would be a good opportunity.
- 46:41Yeah, totally. And I think like that's the like the power that you'd get from going that route is what we've sort of discovered almost by accident,
- 46:49which is that just by putting tutorial content in a game form where you provide like an actual literal path forward.
- 46:57So people tend to consume or to get much further in a tutorial or in any kind of learning process when they can see where the path leads and like have some kind of incentive to keep moving on.
- 47:08So like when we move from the web, which was kind of a little bit like the I can't remember what the PyBytes code challenges I think you mentioned.
- 47:16The previous web version of Twilio Quest was very similar where we kind of presented in a text based format.
- 47:21Here are the different objectives that you could complete just by taking content that was very similar and kind of putting it in a map that you could explore.
- 47:29We very quickly saw developers consuming twice as much or even more content on average than what we were seeing in the version previous.
- 47:38So there's a lot of power to structuring technical content and learning in this way for sure.
- 47:43How do you feel about like professional developers versus beginners?
- 47:47You know, there's been a lot of success with IOT things with young kids.
- 47:52I'm thinking middle school age and whatnot, especially people who would are not necessarily drawn to pure game play game development.
- 48:00Right. Like the UK did this thing with the BBC micro bit and micro Python and they found the number of young girls interested in programming and computer science massively increased after they had a course with the BBC micro bit rather than just, hey, we're going to have a programming course or a game club or something like that.
- 48:20I think like we've definitely seen Twilio Quest do well, like in a very diverse range of audiences, like across gender and age and various other vectors.
- 48:31We've seen in a professional setting, there's a manager whose company uses Twilio for various things.
- 48:39And he actually has everybody, all new developers when they onboard will actually install Twilio Quest and just kind of play around and learn JavaScript because some of them, you know, don't learn, haven't done JavaScript before.
- 48:50Yeah, that's one of the missions, right?
- 48:51Yes, that is.
- 48:53And so it's like part of their, you know, new engineer onboarding.
- 48:57And it's just kind of a fun way to get people up to speed.
- 49:00I wonder what their reaction is.
- 49:02You know, they're like, what kind of cool company have I joined where my first day is to go play a game?
- 49:07I can't believe it.
- 49:08Yeah, yeah.
- 49:08So, I mean, that's definitely what we're trying to foster.
- 49:12But, you know, not everybody is so lucky.
- 49:14There are some people who might, you know, fear getting in trouble for playing a game at work, maybe.
- 49:19So another thing that we're working on in the first part of the year is exposing a lot of the content in Twilio Quest through a like a command line interface.
- 49:27So if you are, for whatever reason, just really not about the game interface, we still want to try to provide some of the same learning opportunities too.
- 49:36Sure, sure.
- 49:36We chose the CLI just because we still feel that it's really valuable to have the dynamic interaction with the validators that we've written on your local machine versus deploying it just plain deploying the content on the web.
- 49:49Because then you get interactive feedback where if any stage along your process, you can figure out like we're able to tell you like, oh, that file path is wrong or your username is slightly case.
- 50:00The casing is incorrect.
- 50:01Like we would just be about ability.
- 50:03We have to help you and we're still on your computer.
- 50:04Yeah, no, that makes a lot of sense.
- 50:06There's probably some sort of implicit getting comfortable with this being in the command line, knowing where a lot of people don't even when they're not quite programmers don't even know how to get to their terminal app or command prompt these days because those are quite hidden on both Windows and macOS.
- 50:20Yeah, certainly.
- 50:21Yeah, not bad.
- 50:23So a lot of this stuff is very interesting.
- 50:26A couple of other resources, I guess.
- 50:28You guys threw out there, Tiled from MapEditor.org and Phaser.
- 50:31Those are cool.
- 50:32Are you familiar with Kenny.nl?
- 50:35K-E-N-N-E-Y.nl?
- 50:37Oh, of course.
- 50:37I think anybody who is developing game projects and has no dollars with which to do it has probably encountered like all the awesome assets that are out there for sure.
- 50:48Yeah.
- 50:49So you get a bunch of little map tiles and sprites and stuff.
- 50:53Yeah.
- 50:53It seems like a really cool place.
- 50:54People are wanting to build their own levels at some point in the future if that's possible or like play with Phaser or other game like Pi game or arcade.
- 51:03Yeah, there's lots of great resources there.
- 51:05Also like OpenGameArt.org.
- 51:08If you are kind of hurting for assets for music or graphics or that sort of thing, there's a lot of like creative commons or public domain licensed content up there you can use as well.
- 51:17Yeah, super.
- 51:18And not necessarily something that people could take, but it is interesting that you have it as a separate thing people can get is the original soundtrack to Twilio Quest available on SoundCloud.
- 51:27Yeah, absolutely.
- 51:28Yeah, we worked with some of our favorite indie chiptune artists and yeah, the original soundtrack I really love.
- 51:35I like how it turned out and it'll power a lot more experiences in the game as we go.
- 51:41But yeah, definitely check it out from SoundCloud.
- 51:43We're also going to try to make it a little easier to download and get a hold of in other formats as well.
- 51:48But yeah, super fun.
- 51:50Super cool.
- 51:51And I saw it and as you said, it reminded you a tiny bit of the early MechWarrior soundtrack, which I take as high praise because I also enjoy the early MechWarrior games.
- 52:00The early MechWarrior games were really special.
- 52:03I'm talking like 1995 to a little bit after that.
- 52:07Yeah.
- 52:07Maybe you played it on Opinium 90 or something like that.
- 52:10Those, the music was good.
- 52:12It was just, those were cool times when games were kind of like, you would experience like, wow, I cannot believe it is this immersive and this real.
- 52:20And that music was really, I think a big part of it actually.
- 52:22That and the fog.
- 52:23Yeah.
- 52:24That was kind of like the golden era of like simulation style games because like X-Wing and TIE Fighter were out there as well, which were fantastic.
- 52:31But yeah, no, just the fact that you kind of had like, it felt like you were piloting like a big lumbering Colossus.
- 52:38Fantastic games.
- 52:39I mean, definitely did play on a little Penny of 90 machine that I figured out how to work.
- 52:44Nice.
- 52:44How about you, Ryan?
- 52:45Did you play those games?
- 52:46I'm not familiar with MechWarrior.
- 52:47I missed out on that.
- 52:49The X-Wing games I do remember though.
- 52:51Yeah.
- 52:51Very nice.
- 52:51The very early, like them and then the other LucasArts, like, I don't know what they were even called at this point, but those adventure sort of LucasArts games are really fun too.
- 53:01Yeah, they were.
- 53:02Ryan's like the Spider-Man of our crew.
- 53:04He's like, you remember that really old movie, Empire Strikes Back?
- 53:06So you can tell us about those types of lines.
- 53:09That's awesome.
- 53:11Yeah.
- 53:12I think it's a classic.
- 53:12I remember.
- 53:13Yeah.
- 53:14That's awesome.
- 53:15Cool.
- 53:15Well, it's probably a good place to leave it, but congratulations on this project, you guys.
- 53:20I know you've been at it for, what is that?
- 53:23Six years.
- 53:24Overnight success just took six years, but it seems like it's really making a lot of progress and it's unique.
- 53:30And I think that's neat.
- 53:31Yeah.
- 53:31Yeah.
- 53:31It's been super fun to work on.
- 53:33It's definitely, it's very literally a dream come true for me.
- 53:36Like I've wanted to work on games forever and now, you know, have a chance to do it and educate people at the same time.
- 53:43So it's been, it's been fantastic.
- 53:45Yeah.
- 53:45Yeah.
- 53:45I agree.
- 53:46It's an amazing opportunity that I feel really fortunate to be here for this sort of bizarre intersection between video games and education is sort of, you've mentioned some other places that I'm going to have to check out later, some other sites and stuff.
- 53:59But this is the first time I've had any opportunity to do anything like this.
- 54:03And it's super cool.
- 54:04Yeah.
- 54:04It seems really great.
- 54:05I'm sure you have a lot of fun all day working on these things, except when you have those weird bugs that drive you crazy.
- 54:11Because bugs in games can be super hard sometimes.
- 54:14It's really hard to reproduce them.
- 54:16Yeah.
- 54:16Yeah.
- 54:16I used to work on 3D simulators.
- 54:18I'm like, why can I not see the thing?
- 54:20And it was like, well, we were rendering it counterclockwise instead of clockwise.
- 54:23Or so it was invisible.
- 54:23It was getting cold.
- 54:24It's like, oh my gosh.
- 54:25Yeah.
- 54:26Fortunately, we have fewer of those issues because that's one of the benefits of Phaser is that it handles some WebGL stuff for us.
- 54:35Yeah.
- 54:35Beautiful.
- 54:36Perfectly.
- 54:36All right.
- 54:37So before we get out of here, let me ask you the final two questions.
- 54:40And given that a lot of this is JavaScript stuff, feel free to give either a Python or JavaScript answer.
- 54:46So if you're going to write some code, what editor do you use?
- 54:48Ryan first.
- 54:49I'm a VS Code person.
- 54:50That's the only one I have installed these days.
- 54:53Oh, that's a big commitment to just have one editor installed.
- 54:55I mean, it's one thing to use one editor.
- 54:57It's another to have just one at all.
- 54:59Yeah.
- 55:00That's all I got left.
- 55:00Nice.
- 55:01Kevin.
- 55:01Yeah.
- 55:02I've used a few over the years, but I've also recently pushed in my chips on Visual Studio Code.
- 55:06The ecosystem around it has been pretty, pretty cool.
- 55:09So that's my weapon of choice these days, for sure.
- 55:12That's cool.
- 55:12And it probably doesn't hurt that you're both on the same team using the same editor.
- 55:15Yes.
- 55:16It is convenient.
- 55:17Yeah.
- 55:18And then normally I'd ask a notable PyPI package.
- 55:21So if you got one, go ahead and give it.
- 55:23But if you have like an npm one, that's also acceptable.
- 55:25So a notable library that you can use to build fun stuff like this.
- 55:29Yeah.
- 55:30I think if folks do have any interest in web game development, I think Phaser is definitely
- 55:35the one to take away from this episode.
- 55:37We support the project through Patreon.
- 55:40Rich does a great job with the framework.
- 55:43So definitely go check it out.
- 55:44Like Phaser 3 and the upcoming Phaser 4, which he's sort of rebuilding from the ground up with
- 55:49TypeScript and all kinds of other great stuff.
- 55:51Yeah.
- 55:51If you're at all interested in getting into web games, Phaser is the one to check out.
- 55:56Cool.
- 55:56Ryan, you got a recommendation?
- 55:57Definitely.
- 55:57Yeah.
- 55:58I mean, I can give a shout out for Pygame too, actually.
- 56:00Python audience, right?
- 56:02Pygame is actually the first.
- 56:03That's the first place I ever successfully shipped any sort of game project.
- 56:07So I can endorse that for sure.
- 56:09It gives you a similar great API.
- 56:12It gets a little harder to deploy the game.
- 56:14Phaser does have the benefit of running on any old web page, but you can still make something
- 56:18really cool on a local project with Pygame.
- 56:21Right.
- 56:21It's a lot of fun.
- 56:22That's awesome.
- 56:23And you bundle something like PyInstaller.
- 56:24You can probably deploy it, but you're right.
- 56:27A little bit of HTML and JavaScript is definitely easier to deploy.
- 56:30Yeah.
- 56:30Absolutely.
- 56:31All right, guys.
- 56:31Well, this was really fun.
- 56:32People are excited.
- 56:34Maybe they want to go try it out or look into seeing how they can take more advantage
- 56:38of these kinds of things.
- 56:39What do you say to them?
- 56:40Final call to action?
- 56:41I would definitely recommend heading out to Twilio.com slash quest where you can download
- 56:46the game.
- 56:47It's most recent iteration.
- 56:49And yeah, there's also a mailing list that you can sign up for at Twilio.com slash quest.
- 56:54We reach out on that mailing list, either Ryan and I do or I do, a couple times a month.
- 57:00And when we release new stuff, especially as we release new Python content, that would
- 57:05be the best way to keep on top of when that's out.
- 57:08Sounds good.
- 57:08Ryan, anything you want to add on the way out the door?
- 57:10No, that's it.
- 57:11Twilio.com slash quest.
- 57:12Go check it out.
- 57:13Super.
- 57:14I'll put all the links in the show notes.
- 57:15You guys, this is a lot of fun to explore and think about these ideas and play the game
- 57:19a bit.
- 57:19Thanks for being here.
- 57:20Yeah, no problem.
- 57:21Thanks for having us.
- 57:21This was a lot of fun.
- 57:22Yep.
- 57:22You bet.
- 57:22Bye.
- 57:23Bye.
- 57:23Bye.
- 57:24Bye.
- 57:25This has been another episode of Talk Python To Me.
- 57:28Our guests on this episode were Kevin Winery and Ryan Kubik, and it's been sponsored by Datadog
- 57:34and Linode.
- 57:34Datadog gives you visibility into the whole system running your code.
- 57:39Visit talkpython.fm/datadog and see what you've been missing.
- 57:43They'll throw in a free t-shirt.
- 57:44Start your next Python project on Linode's state-of-the-art cloud service.
- 57:48Just visit talkpython.fm/linode, L-I-N-O-D-E.
- 57:53You'll automatically get a $20 credit when you create a new account.
- 57:56Want to level up your Python?
- 57:58If you're just getting started, try my Python Jumpstart by Building 10 Apps course.
- 58:03Or if you're looking for something more advanced, check out our new async course that digs into
- 58:08all the different types of async programming you can do in Python.
- 58:11And of course, if you're interested in more than one of these, be sure to check out our
- 58:15Everything Bundle.
- 58:16It's like a subscription that never expires.
- 58:18Be sure to subscribe to the show.
- 58:20Open your favorite podcatcher and search for Python.
- 58:23We should be right at the top.
- 58:24You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 58:29and the direct RSS feed at /rss on talkpython.fm.
- 58:33This is your host, Michael Kennedy.
- 58:35Thanks so much for listening.
- 58:36I really appreciate it.
- 58:37Now get out there and write some Python code.
- 58:39I'll see you next time.