Latest / Talk Python To Me / #254: A Python mentorship story
Transcript
- 0:00How do you go from poking around at Python code to actually solving real problems the right way?
- 0:05Well, there are many paths. The longest one probably is to get a four-year computer science
- 0:10degree. Maybe faster, but pricey still, is a solid in-person developer bootcamp.
- 0:16But have you considered reaching out to the community to find a mentor?
- 0:19Many Python meetups have project nights where folks who could help will be attending.
- 0:24And if you're up for giving back, maybe you could become a mentor at one of these events.
- 0:29That's what this episode is about. We'll hear from two former guests of Talk Python,
- 0:34Rusty Gregory and Doug Farrell. They teamed up and are back to share their mentorship story.
- 0:39This is Talk Python To Me, episode 254, recorded February 14th, 2020.
- 0:58Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem,
- 1:03and the personalities. This is your host, Michael Kennedy. Follow me on Twitter where I'm at,
- 1:07mkennedy. Keep up with the show and listen to past episodes at talkpython.fm. And follow the show on
- 1:13Twitter via at Talk Python. This episode is sponsored by Brilliant.org and Linode. Please
- 1:18check out what they're offering during their segments. It really helps support the show.
- 1:22Rusty and Doug, welcome back to Talk Python To Me.
- 1:25Thanks, Michael. Glad to be here.
- 1:26Good to be back.
- 1:27Yeah, it's great to have you back. So, Rusty, you were on episode 194 previously about learning
- 1:34and teaching Python in a vacuum. And back then, we talked about how you were in not super populated
- 1:41part, a small town in Vermont, and you were working at elementary school, right?
- 1:46Correct. Yep.
- 1:47Yeah, yeah. Helping teach kids programming concepts and other things. And then, Doug,
- 1:53we had you on back like 12 episodes before then.
- 1:58I was teaching kindergarten directly and then basically just kind of made sure everybody else
- 2:03could do whatever they needed to do with computers, whether it was teachers or students, and basically
- 2:09just kind of all-around resource for people. We had another person that worked with the equipment.
- 2:14I was the people person, the bridge between that kind of the technology and all the students
- 2:19and teachers. And I also taught web design at a community college.
- 2:22That's super cool. And Doug, you were on episode 182, Picture Python at Shutterfly, where you
- 2:29talked about how you guys are using Python over at Shutterfly, which is a photo sharing, photo
- 2:33book site, right?
- 2:34Yes, correct. We use it quite a bit and doing more of that.
- 2:37Super. You guys got a lot of API stuff going on there, I'm guessing.
- 2:40Oh, yeah. A lot of rest calls and RabbitMQ stuff. And we're actually getting into AWS. So
- 2:45that's an interesting twist for us.
- 2:47Oh, yeah. That's going to be exciting. And I know you because you were on the show before,
- 2:51but also I've read some of your articles on RealPython and you're writing a book. You're
- 2:55doing a lot of things. You're keeping yourself busy for sure, right?
- 2:59Thank you. I've been enjoying writing the articles for RealPython and that actually led to a book
- 3:04proposal and actual book that I'm writing for Manning Publishing, which is fun and a little
- 3:08nerve wracking. Yeah, that's for sure. What's the book title?
- 3:11The Well-Grounded Python Developer. The proposal is, and I'm going to try to fulfill it, is that
- 3:16there's a lot of beginner books and there's a lot of expert books and cookbooks, but not much stuff
- 3:20that helps a beginning developer transition more towards an expert. So that's kind of what I'm
- 3:26trying to do is convey how to help somebody who's got a basic tool set move into thinking about bigger
- 3:33projects, the big picture stuff and think like a developer.
- 3:35You know, that's a really big step, I think.
- 3:38Yeah.
- 3:38It's easy to go around and say, I want to learn language X. So I want to learn what a loop is,
- 3:44what a variable is, how do I call a function? But then you go to actually create a program and you're
- 3:50like, it's like deer in the headlights or, you know, writer's block or something. It's just like,
- 3:54I don't really know how to put the pieces together. Right. And the advanced stuff is too hard.
- 3:59Yeah. It's like knowing how to use a hammer, but he doesn't know how to build anything.
- 4:02Yeah, exactly. Yeah. So I think that sounds like a cool project that you're working on. Great.
- 4:06Yeah. It'll be fun.
- 4:07Yeah. So at the beginning, Rusty, I think maybe it would be fun. You talked about a little bit
- 4:13before we hit record about sort of the progress that you've made. So maybe give people a sense of
- 4:19the challenges. You know, that was a really popular episode that you did with me way back when,
- 4:26and I guess that's probably a year and a half ago. So it's, it's been a while, but so you've
- 4:30made a lot of progress and I guess to sum it up, like one of your main challenges was you're in this
- 4:35position where you need to have a fair amount of expertise in the software that you're working with.
- 4:42And yet being in a small town, it's really hard to go to meetups or to find folks to collaborate
- 4:47with. And if you're the only one at the place you work, well, that's also doesn't help, right?
- 4:51Yeah. That was, I was actually learning with a colleague of mine who was kind of interested
- 4:56in getting into Python a little bit. And so we were both learning at the same time and then he
- 5:01promptly got another job with a different school district. So then I was, by myself again.
- 5:05And, it was, you know, it's a lot more fun when you can bounce ideas off people and everything.
- 5:10So I was getting started to get a little bit frustrated. I was starting to want to be able
- 5:13to do more than I, than I could.
- 5:14You know, what I think is interesting is everyone gets stuck when they're doing programming
- 5:20or they're working on software projects. You know, I remember not long ago, some library
- 5:25I was trying to use, I'm like, why does it not do the thing it's supposed to do? You know,
- 5:30and I've been programming for like 20 years. Right. But still I'm, I'm sitting here pulling
- 5:34my hair out because it seems like it says it's going to do X and it's not doing it for whatever
- 5:39reason. Right. And the thing that I think somebody somewhere knows how to make it do that.
- 5:44Exactly. But here's what I think is interesting is I think, you know, everyone gets stuck,
- 5:49but they don't always get stuck in the same place. Right. I might get to a part and I'm
- 5:53stuck here, but you've already figured that out, but you're stuck on something else. Right.
- 5:56But if we could just talk to each other and go, Hey, I tried this and I'm, I'm stuck. Like,
- 6:00you know, I did that. And it was, yeah, I remember that was hard, but now here, you can just like
- 6:04help each other over these little hurdles much easier if you can interact with somebody.
- 6:09Right. Stack overflows there, you know, when you have the time to, you know, craft a half
- 6:14an hour question about, you know, two lines of code to make sure you don't get ridiculed or,
- 6:19or whatever's going to happen if you don't, you know, freeze your question in the correct way and
- 6:23show that you've, you know, tried all these other things. And, and yeah, so there, yes. Being able
- 6:28to just ask somebody that, you know, is, is awesome.
- 6:30These public spaces that you can go like stack overflow or Reddit or whatever, they can be kind
- 6:36of rough, but let me tell you, I learned a program when it required a book when there was like
- 6:41hardly even in the internet. And when you got stuck, it was like, you know what, let's go get
- 6:47in the car and drive for 20 minutes and hope that there was a book at Barnes and Nobles or one of
- 6:53these other weird places that kept all these trees and buildings in square form. And you would go there
- 6:58and you would go through it. Like, so I guess the reason I put it out is like, it's kind of a love,
- 7:04hate relationship. Like I can type an error into stack, into Google and likely a stack overflow thing
- 7:10helps me nine out of 10 times. I don't have to ask the question. Right. But it can be rough to get out
- 7:15there and ask questions like, didn't you read the manual or that's a stupid way to do it or whatever.
- 7:20You're like, well, how about you just say a better way to do it would be this, because I only asked this
- 7:24way because this is the best I got. Right. I'm trying to learn, like, take it easy on me.
- 7:28Yeah. Lots of times in the early days, you don't have the vocabulary to explain what it is, or you don't
- 7:33understand this concept that you want to go. Like for me, it was databases. Like I didn't even know how to get
- 7:37started or how to, how to do things like that. So I had to like think through all of that. You can't
- 7:41do that in a, in a forum really. Right. Right. It's too general. So yeah. So I guess long story short,
- 7:48long question short, give us a quick update on what you've done. You've taken a couple of courses.
- 7:53Obviously you found a great mentorship story, which we're going to dig into, but just give us the recap.
- 7:59Yeah, it was great. So when we talked last time, I was doing a few things, processing, you know,
- 8:05pictures and, and writing a few little apps that interacted with Google sheets. And then
- 8:10I took a Java course, a Python course at an access course at the community college that I teach at,
- 8:15because I was able to do them, you know, pretty much for free. And I only took access because the
- 8:20SQL course kept getting canceled. So I figured that was the best I could do. And it worked out. I
- 8:25understand, you know, I wasn't happy, but I did it. Yeah. And then, I got a call from Doug
- 8:34afterwards, which we'll talk about after we talked last time, but, and after Doug and I connected,
- 8:39I was able to build a flask app that was like asynchronous play for this board game that I was
- 8:44interested in. It was basically just, it held your cards, you know, in between, but I built a
- 8:49dashboard for users, put a database on it, notification emails when it was your turn.
- 8:54I was really just kind of, I was spending like 25 hours a week on it at the time. Cause I was using
- 8:59this thing called walk a time that talks to Adam and I think it works for a PyCharm as well.
- 9:04Cool. So walk a times like time tracking, if you want to know how you're spending your time.
- 9:07Yep. When you open up your editor, it keeps track what language you're using at the time.
- 9:11Oh, interesting.
- 9:12Yeah. And it was, it's really great with Adam. I couldn't get it to work very well with Python,
- 9:16uh, with a PyCharm, but, I'm sure there's a way to make that happen. Yeah. So, I mean,
- 9:21that was just really exciting to go from, I was a web guy before, but, to be able to make
- 9:27an app that did all these things was just blew me away. And I had a blast that I, you know,
- 9:31try and stop me from coding on the weekend, getting up at seven in the morning and working on it. It was a
- 9:35good time.
- 9:36It's such a cool experience when you're like, just, you wake up, you're like, I gotta, I gotta get back
- 9:41to it. I really was. I'm not done. I still have these ideas. It's wonderful.
- 9:43Yeah. It was, it was a lot of fun. It even made me want to put up with the question of like, can I
- 9:47download this in the app store? You know, that's the first question I would show it to people. I'd be
- 9:51so excited. Like, Oh, can I, no, it's, it's not an iOS app. It's, it's actually a web app and
- 9:56it's in Python and nobody really cares. But anyway, I was pretty excited.
- 10:00You just got to show them how to put like a little icon, like save a shortcut to the desktop.
- 10:05Yeah. Their eyes just glaze over after you say no.
- 10:07I hear you.
- 10:09I started to, rebuild one of my first apps as well. Since then, try and do, you know,
- 10:15build on what I had done before. And what was that experience like with, more experienced eyes?
- 10:21It was wonderful. I was able to go back in and just make everything so much simpler to read. I
- 10:27discovered, flask sessions, which just made a world of difference. Once I was able to put things
- 10:33into a cookie then and persist it over pages was awesome because before I had,
- 10:37I had to come up with this hack that I was doing it. I went from sending it as a hidden piece in a web
- 10:43form. So every page had to be a form to figuring out how to do that. And yeah, it was, it was good.
- 10:49It was really rewarding.
- 10:51Nice. Well, it sounds like you're making really, really good progress there. And I now know about
- 10:56walk a time, which is apparently a thing I'm going to have to dig into.
- 10:59Check that out.
- 11:01For sure. And Doug, how about you? What have you been up to?
- 11:03You might not want to know.
- 11:04I have another article coming out on real Python, which was insane to do with the book. And then,
- 11:10uh, all of my free time, every spare second, that's not tied to work is involved in the book.
- 11:15And then just work has been very busy. the fourth quarter for us is insane. So
- 11:20it's been a very busy time. And then, right.
- 11:23Yeah. So I've just been very busy with that stuff.
- 11:25Yeah. This is like the big holiday rush. Everyone's going to get photo books for Christmas
- 11:30or something like that, right?
- 11:32Yeah. The fourth quarter is like a huge.
- 11:34So Black Friday, that's like a, a legitimate thing that makes the business go for you guys,
- 11:40right? Like gets you back in the black.
- 11:41Yeah. They put us, they put, they, they try to put like the police tape around the entire system
- 11:45so that we don't touch it after that. So it doesn't break. But at the same time,
- 11:50it's constantly like wants new features.
- 11:52Can't have it both ways, can you?
- 11:54Yeah. I saw a really cool joke cartoon type of thing. And it just said the first rule
- 12:00of programming is if it's not broke, don't touch it.
- 12:03That's really an excellent optimization.
- 12:08Yeah. I'm not sure if it's really good advice, but I certainly know the feeling and you know,
- 12:13I know the feeling even more when it's software that I didn't originally write and I'm not especially
- 12:19fond of or, or think it's like well written. Yeah. Yeah. It's like, if you touch that and break it,
- 12:24it becomes yours. Like, no, no, it's fine. We don't need to, it's fine over there. It's just,
- 12:29we're going to let it do its thing. If you want to touch it, you can fix it, but not at all.
- 12:32Cool. All right. So let's jump into the main topic here, which I think is going to be a lot of fun.
- 12:41So as I mentioned before, both of you have been on the show, episode 194 and 182. And I don't remember
- 12:50which direction it went, but I know that one of you guys reached out to the other after you were both
- 12:55on the show saying, Hey, it sounds like there might be some chance for us to work together or help each
- 13:00other out. And you all started working together through that, right? Let's give us the story there.
- 13:06I had listened to the episode that Rusty was on and I really liked, I really enjoyed it. And I thought,
- 13:12you know, I thought to myself, there's a real opportunity not only to help, help out, but to
- 13:17have him help me. I am teaching sometimes at this STEM place near me. And of course the writing,
- 13:23the articles is sort of like teaching. And plus I had taught many years ago and realized how difficult
- 13:30it is. And I was struggling at the STEM course with STEM place teaching kids. And I thought,
- 13:36you know, Rusty could really be helpful. And I, I've been in that position as a self-taught programmer.
- 13:40I learned myself all of the languages that I know. And so I've been subject to trying to figure things
- 13:47out. And I've been at the hands of divas who didn't really want to help me as much as give me a hard
- 13:51time. And I thought, you know, I could save Rusty some time and avoid that. I reached out to him
- 13:56through you to see if he'd be interested in connecting. And, and he was, which was great.
- 14:01That's really cool. And I'm pleasantly surprised to see that you all have gotten so much and made so
- 14:06much progress and done so much collaboration. That's, that's great. And so Rusty, I guess it's
- 14:12also maybe worth mentioning that you got a new position where you're actually doing more programming
- 14:17and this, this aspect of life is actually even more relevant to you these days, right?
- 14:23Yeah, it's, it was, it was really good that we had a new, with a change of kind of leadership
- 14:27and our tech team in the school district that I'm at. And the new guy was not as technical as perhaps
- 14:33the guy before him. So I got to help out with a lot of different reports that had to be filed and things,
- 14:39which the average person would probably not find that exciting, but it was great. I got to,
- 14:43you know, use some Python pandas to clean data and all the things I'd heard about basically listen to
- 14:48your podcast. And I was like, why would somebody want to use a Jupyter notebook? And then,
- 14:51you know, I figured out a reason why I might want to do that. Yeah, it was good. So now I'm the data
- 14:56manager for my district. I left teaching. I still leave in the middle of the day from programming and
- 15:01go and teach kindergarten. And then I will come back and finish off my day writing a SQL and,
- 15:08and plugins for a power school and things. But so it's an interesting break.
- 15:14No, they didn't have anybody to do it when I, when I took the job. So this year, so.
- 15:19Oh, you're a voluntold. I understand.
- 15:21Exactly. You can do this, but.
- 15:24Here's a, you got to help out here. That sounds wonderful. You describe it. It's always like
- 15:28these reports. A lot of people really wouldn't be that keen to do it or whatever. But I remember
- 15:32my first programming job, it could have been almost anything they were having me do. I'm just like,
- 15:37I'm sitting here at this computer. I was C++ at the time. Like I'm writing C++ code. They're paying
- 15:43me. And I have this book and I get to learn it while they're paying me. Like this is heaven,
- 15:48right? Like, I mean, it wasn't even that advanced to stuff. Right. But for me, it was like,
- 15:52I'm in, I can't believe it. Like, how have they not found out I don't belong here? I'm going to
- 15:56figure out this before they catch out onto it and get me out of here again.
- 15:59Yeah. Where's security being escorting me out?
- 16:01Exactly. Right. Exactly.
- 16:03It's been really good. I've been really enjoying the kind of the blending of, you know, education and
- 16:08programming at the same time. So I'm still involved in school and I've never had an adult job that
- 16:13didn't involve school, you know, working at school. So it's been, it's been a great process.
- 16:17This portion of Talk Python To Me is brought to you by Brilliant.org. Brilliant's mission is to help
- 16:24people achieve their learning goals. So whether you're a student, a professional brushing up,
- 16:28or learning cutting edge topics, or someone who just wants to understand the world better,
- 16:32you should check out Brilliant. Set a goal to improve yourself a little bit every day. Brilliant
- 16:37makes it easy with interactive explorations and a mobile app that you can use on the go.
- 16:41If you're naturally curious, want to build your problem solving skills, or need to develop confidence
- 16:46in your analytical abilities, then get Brilliant Premium to learn something new every day. Brilliant's
- 16:52thought-provoking math, science, and computer science content helps guide you to mastery by taking
- 16:58complex concepts and breaking them into bite-sized, understandable chunks. So get started at
- 17:03talkpython.fm/brilliant, or just click the link in your show notes.
- 17:09Do you feel that schools, elementary, middle, high school types level of schools are underserved from
- 17:18like custom software or software that solves their problems?
- 17:20That is a perfect question. Yes, because we don't have the money that industry has. So all the services
- 17:27go towards people who can pay for it. And schools have to, we get this generic thing that can be bent to
- 17:34our will, but have a lack of resources amount of people who can do it. You know, there's a district
- 17:39down in, in Burlington. It's the big city in Vermont. And you know, there's a data team of six people.
- 17:44You know, they, they hired a data scientist and stuff. And, and in my school district on the,
- 17:49on the edge of civilization, we have me and I've been there for eight months, you know?
- 17:55You're on the outpost way out there.
- 17:57That's right.
- 17:57Yeah.
- 17:59Yeah. That's an interesting point because if I go to any major fortune 500 company or pretty much any
- 18:08startup, almost any startup or, you know, even middle-sized companies, right? They all have a
- 18:13software IT group, right? Right.
- 18:16Maybe it's only five people and they're not super advanced, but there's a team of people who write
- 18:20software to make that place run. Like the place I was telling you about where I was doing the C++
- 18:25stuff. That was like six people, you know, and they still had somebody hired to work there as a
- 18:31developer and build software. So I just feel like there's probably a lot of opportunity to give a
- 18:37little bit of programming skill to folks at the non-college, non-university level schools to empower
- 18:43them to do, do more.
- 18:44I agree. You always say that, you know, Python is maybe your superpower at work and it's very much true
- 18:49where we're at. You know, there's very few people have the time to slow down and write
- 18:54code like I do at the moment. A lot of people that have my job around the state, it's been added on.
- 18:59Oh yeah, you're going to do this data portion as well as whatever. And I'm in the pretty unique
- 19:03position where I was hired to do that. So it's, it's been, it's been great.
- 19:08That's cool. And you want to, right? You're not voluntold.
- 19:10Exactly. I asked.
- 19:11Nice. And Doug, you had mentioned that you're a self-taught developer. Like I am mostly, I took,
- 19:19I needed a couple of credits at the university for a minor in computer science and other types
- 19:24of stuff. But for the most part, I'm pretty much self-taught. So I'm pretty sympathetic about
- 19:29those sorts of challenges and whatnot, but maybe just give us the quick story of, of that for you.
- 19:35Cause I'm sure that'll resonate.
- 19:37I graduated with a BS in physics, which I tell the joke all the time with a BS in physics,
- 19:42I'm completely qualified to get coffee for the other physicists.
- 19:45But by the senior year, I did a project where we built a very primitive cat scanner, which was a
- 19:54computer controlled cat scanner. And I got hooked. I bought a Radio Shack color computer,
- 19:58taught myself a basic and a little bit of assembler. And that was enough to get my first
- 20:04job as an engineer after college, doing process control. And I was off and running doing
- 20:09programming and I worked in Fortran and Pascal and CC++ PHP and then now Python and
- 20:16JavaScript quite a bit.
- 20:17Yeah. You've seen a lot of them. That's, that's super cool.
- 20:19Yeah.
- 20:20Yeah. So that, that starts when there are books before the internet, before Stack Overflow, right?
- 20:24Oh, this was, this starts before that, before books, this was like BBSs.
- 20:31So BBSs, that's like the internet that you go to. That's really slow and it makes sound and only
- 20:35one person can be on at a time, right?
- 20:37Yeah. My education was continually slowed down by getting phone calls from friends.
- 20:42Yes.
- 20:42I remember that. We actually had two phone lines at my house just so my brothers and I could
- 20:48all be on either internet dial up or on BBSs at the same time. And it was still a problem,
- 20:53right?
- 20:54Yeah.
- 20:54We'd have like call waiting come in and knock us off and oh my God. All right. So fun,
- 21:00fun time. So tell me about what you guys have worked on, especially in the beginning, I guess,
- 21:06Rusty, go ahead and maybe start this conversation now. Like, so Doug reached out to you and you're
- 21:11like, wait, this guy, just this random guy on the internet. That's really, yeah, that's really
- 21:16knowledgeable, wants to help me out. Like, what is this? And so where did you start? And like,
- 21:20what was that like when you got that message?
- 21:22I'd said earlier that, well, I didn't say on the podcast, but it was great because Doug
- 21:25wanted to exchange kind of some teaching knowledge with Python knowledge. And I said that I basically
- 21:30won the lottery and got somebody who knew exactly what I wanted. And Doug lost out because he's
- 21:35already a good teacher, but I still needed lots of help. So I just started asking questions. I wanted
- 21:41to go further with Flask and started to build that, you know, database app, the kind of asynchronous
- 21:46kind of card playing app. And I had no experience with, with databases or not. So he kind of showed
- 21:54me a, luckily he was writing an article on something very similar and kind of talked me through starting
- 22:00to use SQLAlchemy. And it just kind of got started. And I asked him questions about database design and
- 22:07I would, I would craft emails. And then, you know, there's a, we had about one or two day delay just
- 22:12because we're both busy people and that's how we kind of started. And then I started to ask more and
- 22:18more questions and it helped a lot that we had a lot of common ground. We're both cyclists. We both
- 22:24enjoyed Python and teaching. So there was a lot of, you know, banter. And I tend to try and ask a lot
- 22:29of personal questions when I'm working with people as well, just to kind of get to know them better.
- 22:33So started to build my app and, and I was able to go, you know, and say, Hey, I'm having problems with
- 22:40this. I didn't have to explain everything from the beginning or, yeah, it was just a really
- 22:44wonderful experience for me to be able to, just have get stuck and, you know, within a day,
- 22:51be completely unstuck and probably looking at a different feature.
- 22:54Yeah. That's really interesting. You know, like those types of assistance or whatever,
- 22:59when you're new, you can be stuck on something for like five hours and you're like this,
- 23:03I just don't know. I just tried everything. And somebody who's gone through it a few times,
- 23:09like, Oh yeah, that's confusing. But when I figured it out, it was X. Right. And then,
- 23:13so there's a lot of effort and that's potentially for like staying in touch and coordinating, but
- 23:18sometimes you can just look at something, Oh, that's really easy. And it's, it's just such a
- 23:23service to you. Right. To just be able to receive that and go, Oh my gosh. Right. I so appreciate it.
- 23:28Whereas like the person who do it, like, it's okay. Well, I just called it out of my memory. Right. I kind
- 23:31of know. Right. Yeah. I put everything on GitHub. I was starting to get a big into GitHub,
- 23:37as much. I'm still afraid that I'm not going to be able to recover what, you know,
- 23:42two or three versions back. And so I don't have that much faith in it, but it was good to be able
- 23:46to have everything there. So you've moved on past the, I've made some progress on this project.
- 23:51Let me zip up the directory and give it like a version.
- 23:55Doug, you're laughing. Have you seen that as well?
- 23:57I knew GitHub was great before I knew how to use it. Yeah. So we were able to do that. And then I
- 24:03could just say, Hey, you know, I've, I've done the update and Doug could pull it down on his end and,
- 24:07and run it and see what the error was or whatever it might be that way. So that was pretty cool.
- 24:12I always made sure that before I asked a question, I wasn't going to waste his time that I had
- 24:16exhausted everything. So it wasn't a flippant. Oh, I'm stuck for five minutes. Go and do this. It was,
- 24:21you know, I'm really stuck here. So now I'm going to have to ask. Yeah. Yeah. And I, you know,
- 24:25I have some folks who periodically ask me questions, whatever. And when it's like that, I totally don't
- 24:30mind. It's fine. Right. The thing is, you know, sometimes you have people are just like, well,
- 24:35this isn't working. Why? And, you know, it's pretty obvious that like a little bit of take the
- 24:41error message, put it in Google would come up with a really good answer. you know, it's one of those
- 24:45types of things. And yeah, so that's really, I think an important part of trying to make something
- 24:51like this work is if you're going to work with Doug and ask him questions and, you know, basically
- 24:57take some of his extra time and energy, cause he's got so much when he's not working on his book or his
- 25:03book articles or all the other stuff he's doing that it's really like, you know, that someone's put a
- 25:10lot of effort into it because then it's like, okay, well they really tried and they're really stuck and
- 25:13I can probably help them as opposed to just this person didn't even Google it. Like I really don't want to,
- 25:19you know, it really was a lot more. Yeah. Sometimes people will shoot me a message and I'll
- 25:25ask, could you help me with this? I'm really, it's like clearly not like from one of my courses or
- 25:30from an episode. It's just like random Python question. I'll take the question, put it in Google,
- 25:34grab the link one and shoot it back and go, how about this? Oh my gosh, that totally fixed it.
- 25:39That's an incredible skill.
- 25:41Yeah.
- 25:41You need to let me Google that for you as a site.
- 25:45I know. Is it still a, is that still a thing?
- 25:49Yeah. It was mostly concepts that when I would get to, to ask, you know, that's, I needed to know
- 25:55how to go about something. And I had to be careful because Doug would actually just write me the
- 26:01program and send it back. And I would be like, oh my God, how long did this take? And it was like a
- 26:06complete, you know, Ajax program that updated your database for you. It wasn't exactly what I was doing.
- 26:12So I would still have to create my own, but it was a working example of here. This is what it might
- 26:16look like that I could go into it and dissect it. I would have to be like, okay, I'm at work right
- 26:21now. I'm going to need three hours at home to like, look through all this that he's just sent me. And so
- 26:26it was pretty good that way.
- 26:27That's awesome.
- 26:28For me, that was the key with Russell was that he would always ask me, you know, I could see that he
- 26:33had looked for stuff and well-researched and intelligent questions, which was great for me because I,
- 26:38you know, I don't have a lot of time to spend, but the other thing was,
- 26:42I often didn't give him complete solutions. I would do the left as an exercise for the reader
- 26:47kind of thing where I would give him a sample that I knew that he could extend and extrapolate
- 26:54from in order to solve the bigger problems he was facing.
- 26:57Right. Like here's a really, really simple proof of concept of like some Ajax thing or something,
- 27:02right?
- 27:03Yeah. Some of the things were just conceptual Python stuff, like, you know, moving away from
- 27:08everything as a dictionary. Dictionaries are extraordinarily powerful.
- 27:12but to get into object oriented stuff, it's kind of a hurdle, but it has a really great
- 27:17use. And I knew that I wanted to take him, you know, from, from dictionaries to object oriented
- 27:21and then onto SQLAlchemy, which of course is dependent on objects to get into databases.
- 27:26Yeah, absolutely. I think SQLAlchemy is really special and ORMs in general. I think they're very special because I remember when I was learning to talk to databases and you had to write SQL embedded in strings, embedded in your programming language. You're like, I just want to like get some data. Why do I have to learn a whole new programming language for this? And then, you know, you got to go and put stuff back in the database and like, how do you get the right types? And then obviously you can't string.
- 27:56concatenate it. You got to figure out how to use parameters. There's just, there's all those layers of either best practices or just understanding or, you know, lazy loading or whatever. And with SQLAlchemy, you can kind of learn a skill that is also applicable in general Python, this object story. And databases are easy again. It's wonderful.
- 28:15Yeah. I mean, I've been in, had both feet in the object oriented camp since C++, you know, 20 years ago. And I didn't really want to have to deal with tables of raw data from SQL. I wanted things to come to me in an object form because I want to think in terms of objects.
- 28:31Yeah. I mean, usually a real common pattern, if you weren't using an ORM would be to do a query and then load up an object with the data that you caught back and then give that back, give that over. Right. It's like, well, why am I doing this?
- 28:42Like from an object and once coming in and then trying to update the database and make, Oh, this is fun.
- 28:48Yeah, exactly. Couldn't we let a framework do this? Which, which is really nice. And it creates the tables for you and all that. So I guess I'll throw this out to either of you. I don't know which one wants to take it, but Rusty, you spoke about using Git and source control and how that was a little bit mysterious. Like you knew it would be good for you and you knew you should do it, but it was kind of something you didn't really know. So it was just another layer of something you have to deal with while you're trying to learn all these things. And finally you got there. So that worked out as a super way for collaborating, right?
- 29:18Yeah, it was fantastic. I was using it really to go from my work computer to my home computer. You know, if I had 10 minutes at work for lunch or 20 minutes, I would go ahead and, you know, it'd work on my program and then sync it, upload it and then get home and then pop it, keep going. So that was pretty cool that I could switch between computers. That was kind of my initial impetus for using it. And then when Doug actually asked to be a contributor one time, so he could do a pull request. Then I had to like do like two hours worth of research when that came back to figure out how to merge and things like that.
- 29:47I think I did it right because it worked afterwards, but
- 29:50Oh my gosh, there's a merge conflict.
- 29:51What are we going to do?
- 29:52Yeah. So that took some time, but you know, we, I figured that out and I use GitHub for all my, my projects now just to kind of keep it there. But yeah, that was a part of the learning curve as well. It was really cool. I was still the only time I've ever collaborated with someone on GitHub. I've, I'm actually to the point now where I'm, I'm asking questions of a plugin, not plugin, package authors on GitHub as well, which has been pretty cool.
- 30:15It's a really nice place to be able to go and have a conversation as well. Right. We've had source control for a long time, but the fact that it's got this kind of social component to it is really cool.
- 30:24Yeah. Yeah.
- 30:25For me, it was great because, you know, Rusty and I had used a couple of ways to collaborate email, of course, and then we had done some screen captures and then screen capture movies and Skyping. And, some of that, you know, that was useful to me, but sometimes I was like, what is he talking about?
- 30:41I need to see this thing because I needed the context of, what it was running. And so having access to the whole code base through GitHub was really helpful for me for that context. And you know what the goal was that he was trying to achieve.
- 30:53Absolutely. I've certainly had people send me videos of like, here's what I'm trying to do this part. I'm stuck on, but when I click this, here's what's happens. And you know, that is actually really better than just a random email trying to describe it.
- 31:06But it's not necessarily as good as being able to just poke around yourself.
- 31:09Yeah.
- 31:10I'll make a video in, you know, in 30 seconds that would take me, you know, 20 minutes to type. So I'm definitely much more and I'm more comfortable in front of the camera and I've been using it in teaching for a long time to, to make videos. So that was probably the most common way I would send issues. I would say.
- 31:25That was great for me too, because I could think at length and, you know, I sort of could type my way to an answer within code instead of keeping rusty on the phone or trying to send another video back and forth. Cause some of those concepts are kind of abstract, like, you know, OO and things like that are a little abstract to try to talk about.
- 31:42Yeah, definitely. A good written example is nice there. You know, I've used that screen recording trick for bug reports, you know, for like random software. Like, I know you say this is not a problem, but here I've recorded it.
- 31:55This button that says do X, it doesn't do X anymore. Can you just help me out here? And that's pretty effective as well, but it's not so much of a mentorship, I have a relationship as well. Now, one of your philosophies, Rusty, is that you're not keen to use code that you don't understand outside of say pip install a thing and just leverage that directly. So how'd that play into this whole interaction?
- 32:20Like I say, unless it's a package, I'm really not that comfortable. Like if, you know, if somebody were to give me, here's a bunch of code that does exactly what you want. Now I wasn't doing this for a job at the time. These were personal projects that I was trying to learn. And I really feel like if that happens and I try and debug it, I, and I don't understand what's going on. It's going to be really, really tough for me to use that in any kind of a meaningful way. And that's one of the things that Doug helped me understand was actually, I listened to his interview on your show.
- 32:48And he was saying that he doesn't understand why people don't use an editor that has a debugger in it. And now I wouldn't now, you know, if I was going to write something because it's just that important. And I didn't really understand how important it was being able to look inside the variables would be.
- 33:02So I just really want to understand it at its base level because I just feel it's going to be so much better going forward. So yeah, there's even some packages I wouldn't use that took over my Flask app in a way like the Flask users package is just this huge invasive thing. And I didn't really understand what I wanted to do. If I was building something that I was just going to build it for a month and then leave it or whatever, I might use it.
- 33:23But otherwise, I'd rather understand that whole process so I could use it later on or use that knowledge later on.
- 33:30Yeah, I totally agree. And that Flask example is pretty interesting because I feel the same way.
- 33:34Right. Like I put together a course on Flask and it doesn't have any of the extensions, right? It doesn't use Flask login or any of that stuff because I just want to talk about the primary thing and every one of those layers.
- 33:47While it saves you a few lines here, it adds layers of complexity and understanding along the way. If people want to go grab that later, that's fine, right? They can go use that. But sometimes you just want to just like, what is the essence of what I'm doing? Right?
- 34:00Yeah. What do you think? How's your philosophy around this, Doug?
- 34:03I do like to use packages, mostly because I work particularly. I just don't have the time to build everything myself. But I spend a lot of time vetting stuff that I want to use.
- 34:13For instance, we write a lot of REST APIs and I looked around a lot to find a tool that I thought worked for me, which is why I use this thing called connection rather than some of the Flask RESTful stuff.
- 34:26Because it just fit my style of work. It seems well supported. It has current updates and all that stuff. There are things that I do want to build myself because I have to have that much control. It depends on how much my OCD kicks in.
- 34:40If I build it myself or use a package.
- 34:43Yeah, I think there's just so many trade-offs. And it's interesting to talk about because it's like, what's the right action? What's the right choice? You know, for example, like just take like Flask login or authentication or Flask users as an idea.
- 34:58On one hand, it's great to let that whole thing be someone else's problem. But as soon as it doesn't do what you need and you're like outside of its box, then all of a sudden you're jumping through all these hoops to try to understand how to juggle it plus what you're doing and so on. Right. And so it's just attention. I think people just got to get used to.
- 35:18When you download a good package like Flask users, it's great that a lot of that works for you with some hidden complexity. It's like a black box. But when you have to open the black box and try to do something with it, that can be a bit of a hassle.
- 35:32This portion of Talk Python To Me is brought to you by Linode. Whether you're working on a personal project or managing your enterprise's infrastructure, Linode has the pricing, support, and scale that you need to take your project to the next level.
- 35:47With 11 data centers worldwide, including their newest data center in Sydney, Australia, enterprise-grade hardware, S3-compatible storage, and the next-generation network, Linode delivers the performance that you expect at a price that you don't.
- 36:01Get started on Linode today with a $20 credit and you get access to native SSD storage, a 40-gigabit network, industry-leading processors, their revamped cloud manager at cloud.linode.com, root access to your server, along with their newest API and a Python CLS.
- 36:16Python CLI. Just visit talkpython.fm/Linode when creating a new Linode account, and you'll automatically get $20 credit for your next project.
- 36:25Oh, and one last thing. They're hiring. Go to linode.com slash careers to find out more. Let them know that we sent you.
- 36:35One of the things I think could be helpful from a mentor-mentee relationship is when you're new in writing code, and I kind of touched on this a little bit earlier, Rusty, when I asked you the question about going back to your other project, is a lot of times beginners, when they're working on something, they're like, if I can just get this to work, that's it.
- 36:54It's working now, right? But then there's the, oh, this is not very Pythonic, or did you know that Python has this language feature that makes those five lines be one, and it's real simple?
- 37:05Or even there's a standard library thing, like, why are you sorting this by hand? You know what I mean? Things like that.
- 37:10So maybe talk a little bit about, kind of helped him make his code more Pythonic, or make it a little more professional, or whatever.
- 37:16Well, I guess one of the early things that I did, or I tried to do, is when we first started to work together on the Flask app that Rusty put together, I recall it being a single file. It was a single Python file.
- 37:29And for me, I got, you know, I looked at that, and I said, oh, this is, it's hard for me to keep all of what's happened, this giant file, in my mental model all at once.
- 37:38The cognitive load on me was just too much.
- 37:41One of the things I did, and I think in one of the pull requests, was to introduce the idea of modules, and how to break code up into logical modules, where, you know, this kind of stuff should live here, this kind of stuff should live here, because you could think about, that sort of separates the work, or what you're doing, into a domain, a little domain, where that's all it really does.
- 37:59And you can sort of depend upon that. It makes the amount of stuff you have to keep in your brain a little bit smaller and more manageable.
- 38:06And then, you know, the idea of how to, creating your own modules, how to import your own modules, rather than just the system modules.
- 38:12I think for me, that was a big step that we took forward into making the work that Rusty was doing more along the lines of a developer, rather than just a programmer.
- 38:21Yeah, yeah, I certainly agree with that.
- 38:24It was great. Blueprints was a big part of that.
- 38:26Blueprints are interesting.
- 38:27These are things in Flask.
- 38:29You know, Flask, through, I don't know if I would put this on the people who were, like, writing the early tutorials for Flask, or just other people who are passionate about Flask and written tutorials.
- 38:42But whatever the origin is, it feels like Flask a lot of times gets sold as, like, Flask is amazing.
- 38:48It's so simple, you just need this one file.
- 38:51Just put your stuff there.
- 38:52Go.
- 38:53You know what I mean?
- 38:54You can do that.
- 38:56You can do that.
- 38:56For the really simple example, it's fine.
- 38:58Yeah.
- 38:58When your website has 300 views.
- 39:00For the whole world on a browser, that's fine.
- 39:01Yeah.
- 39:02You have 300 views and 10 database classes.
- 39:05And yeah, it's crazy.
- 39:06What nobody could get through to me until Doug and I worked together was why you'd want Blueprints.
- 39:12You know, while we got to a point where, like, you needed to break it up into these different pieces.
- 39:16And he must have shown me Blueprints two or three times before it finally clicked with me.
- 39:20Because I'd watched YouTube videos of the Flask site itself, or the docs.
- 39:25Yeah.
- 39:25Assumes you already know exactly why you'd want to do them.
- 39:28And yeah.
- 39:29So I just didn't understand why I'd want to start to break it up.
- 39:31I mean, one of the great things about Python is that it's supposed to be written clearly instead of cleverly, I suppose.
- 39:37You know, overly clever, I should say, rather.
- 39:39So Blueprints allowed you to kind of break that up, just like you would break up, you know, a function into smaller pieces, which was awesome.
- 39:45But yeah, it took a long time.
- 39:47And then even then, it's not super well documented.
- 39:49So watching somebody, a pro who had done it before was instrumental.
- 39:53And it really, really opened my eyes to why you'd want to do that.
- 39:57But it took a lot.
- 39:58Yeah, yeah.
- 39:59It's definitely one of those things.
- 40:00It's hard to sell.
- 40:01Like, why do I need this?
- 40:02Because a lot of times when you're getting started, you have three views.
- 40:05You're like, you're just making it complicated.
- 40:07Like, why are you putting all this stuff everywhere else?
- 40:09But when you have 300, all of a sudden, you know, having those categorized, like, here's the stuff about users.
- 40:14Here's the admin stuff.
- 40:16Here's the, I don't know, the blog stuff, whatever you're writing, right?
- 40:19Like, it's massive.
- 40:20And it's kind of like you said, Doug.
- 40:22I think one of the things that's really important for people to, as they're getting into programming to learn, is that you can think at different levels of building blocks, right?
- 40:31You can think, you talked about this with modules as well.
- 40:34Like, you can think of line by line what's happening.
- 40:37Or you can think of function by function.
- 40:38But if you use modules, you can sort of think, okay, that's the thing that I use for working with sending email.
- 40:45And I go to it and I say, send email, send debug message, send error.
- 40:49And that's, I don't care what, how that happens.
- 40:51I just ask it to do those three things.
- 40:52And so now you're just thinking at the, here's my email building blocks for the rest of my app.
- 40:57And so there's like these different conceptual layers that you go.
- 41:00And I think that's kind of being productive is really about identifying the right level and thinking of those Lego pieces, right?
- 41:07Oh, yeah.
- 41:08I mean, you know, that whole, why would I want to do this?
- 41:10You know, you start out simple and you think, oh, this is, you know, I can get something running pretty quickly.
- 41:15And then it starts to get more and more complex.
- 41:18And why would I want to do this?
- 41:20It's like, from my point of view, it's like, well, you know, you're already running into name conflicts with functions because you've got so many of them in one module.
- 41:27And you're crossing over where you're sending email in 10 different places.
- 41:31And it's hard to, it's hard to think about, you know, all those things that are going on there.
- 41:35If you put it in a module or the namespace and even, you know, what a namespace is, is so useful.
- 41:40And what Rusty said about that, we were over this a few times, part of the benefit for me, besides just enjoying helping him, was for me to find the right way to phrase it.
- 41:50You know, how do I convey this information that would help him hit?
- 41:54Because it's not like I gave him perfect examples and he took off of it.
- 41:58What I was doing was trying to find a way to show him an example or say it in a way where Rusty arrived at that aha moment all by himself.
- 42:07And suddenly realized, oh, this is why I want to do that.
- 42:11And then he would pursue it because it's not just because I told him to, it's because he suddenly saw the value of it.
- 42:17I think half the time he spent just stripping out my imports and everything imported in every single file.
- 42:23And that's one of the things I learned as well.
- 42:26Just in case you need it.
- 42:27I guess it's worth really quickly, just for folks who are out there who are using Flask, but they're like, wait, Flask Blueprints?
- 42:34Is this like an extra package or something?
- 42:36Flask Blueprints are awesome and I massively encourage people to use them.
- 42:41But Doug, maybe give us the quick elevator pitch on what those are.
- 42:45For me, Blueprints is a way to segregate functionality in the Flask app.
- 42:49So if you have a lot of URL endpoints, some of those are going to be related together like logins or these are the endpoints that I need to feed a page or provide a view.
- 43:00And you can have, you know, you have in a basic Flask app, you have one templates folder.
- 43:03And in that templates folder, you might have JavaScript and CSS and HTML.
- 43:07But as you get more pages in an app, that starts to pile up and you start coming in with these weird names and stuff like that.
- 43:14And then across, they don't really logically go together.
- 43:17So Blueprints is a way to separate the URL endpoints, the API, I guess, into modules which exist in separate files.
- 43:27And now you have all of these modules that contain that functionality, which they have their own template files, their own static files, you know, all those other things that make up the functionality of that page.
- 43:40I usually try to break it up by page because that's always complex enough for me.
- 43:43You have all the functionality of that page in one place, which is super handy because you can think about it in one place to the other.
- 43:50And nothing else in there, right?
- 43:51And nothing else.
- 43:52The other great thing, I haven't done this too much, but the other great thing is you can actually take that module, that Blueprint module, and use it in a separate app just by picking up that, you know, copying that directory or that folder, the project, what do they call it, a package, to another Flask app.
- 44:09And it would work.
- 44:10In my project, I had the main part where you actually played your cards or whatever.
- 44:14And then I just made another Blueprint.
- 44:16That was the member section.
- 44:18So then you'd check in, it'd pick up your deck, and then it'd shoot you over to that other module.
- 44:22And then there was a little point where it said, oh, if you're logged in, go back to here.
- 44:26Then you'd have to wait.
- 44:27And then when I wanted to build an admin section, that was a whole other Blueprint.
- 44:31Boom.
- 44:31Then I could work on that completely separate.
- 44:33Yeah.
- 44:34And so it's beautiful.
- 44:35So the reason I think it's less obvious in Flask and also, but still important, is Flask normally has you go app.route on all the view methods.
- 44:46And the place you create that route is in the main thing.
- 44:49So it's hard to share it to other files, which then have to be pre-imported.
- 44:53And it creates like this circular nightmare that you run into.
- 44:57And so it gets challenging.
- 44:59So people should, if they're not using them, they should definitely check into Blueprints.
- 45:02I use this idea even more extreme than that, maybe.
- 45:05So I've got separate modules for my related view methods, like say stuff about admin.
- 45:10And then there's functions in there that handle the views.
- 45:15And then I have my templates organized that way as well.
- 45:18So my template folders has maybe an admin subfolder.
- 45:21And then the names of the template files are the names of the functions.
- 45:24So there's like this kind of hierarchy of, I'm here, I know exactly where to go.
- 45:28There's not 500 templates in one file.
- 45:30And I also use this idea of view models, which is like classes that exchange and validate the data between the HTML request and the rest of your site.
- 45:40So like this data comes from the URL, this data comes from the form, this data comes from a header.
- 45:45Let's validate that and pass it on.
- 45:47And those also have the same structure, right?
- 45:49They're view models and then the module name and then the name that's associated.
- 45:53So I really love this idea of organizing it.
- 45:55It just, it means like almost no matter how complex your project grows, you just follow.
- 46:00It's like a little tree traversal and you found what you need on all the different layers.
- 46:04I love it.
- 46:05I think that's a really valuable part of Blueprints.
- 46:08I think one of the things you're alluding to, one of the more difficult parts of using Blueprints as a, not being familiar with it, is that idea of the app, the app instance and how to, how to share that in the other, the other modules in the Blueprints.
- 46:22Still working on that one.
- 46:23Yeah.
- 46:24Cause you, you created in the, in the main Flask app and then how do you access it elsewhere?
- 46:27That's, that's hard.
- 46:28I tried and said, I couldn't.
- 46:30My dog crashed.
- 46:31It won't let me.
- 46:32You start breaking up your code like this.
- 46:33You need to do it before you understand why you reach a point past where you should have done it.
- 46:38And then you start to understand that maybe I needed to start doing that.
- 46:41So having somebody there to kind of help you along with that process was, it's pretty key.
- 46:45Yeah.
- 46:45To kind of precipitate it and get it started.
- 46:47That's for sure.
- 46:48So what are some of the other tools you talked about using GitHub?
- 46:52You talked about recording, like sharing screen recordings.
- 46:55What are some of the other communication tooling that you used?
- 46:58Well, we just talked on the phone.
- 46:59Yep.
- 47:00It was harder to set up cause we're both busy folks.
- 47:03It's harder.
- 47:04It was harder to get the actual conversations, but it was great.
- 47:07So I would say every couple of weeks we'd chat on the phone and then we actually set up a video conference once as well, which was good.
- 47:14That was, that took a lot of doing to make sure we were both at a place.
- 47:16Cause you know, you can't do that necessarily quickly at work or whatever.
- 47:19Yeah.
- 47:19That can be challenging.
- 47:20It's also fortunate that the Rusty and I are both on the East coast.
- 47:23So there's no time zone issue for that video conferencing or trying to share a Skype call or something.
- 47:29Yeah.
- 47:30I do think that the tooling is around to make this much more possible for distributed folks.
- 47:36It's not like, well, I've got to find somebody in my town to help, which that may be great.
- 47:41Right.
- 47:41It may be great to find someone locally.
- 47:42Cause then you could just, Hey, every Wednesday, let's get lunch together and I'll bring our laptops or something like that.
- 47:47But you know, that limits the options of who you can work with pretty dramatically.
- 47:52If you restrict it to your town versus the world.
- 47:54Well, one of the other things that I tried to do, which I think is important for me as a mentor is that I try to be responsive to Rusty, that he sends me a question or he's updated his, the Git repository and asked me something about it.
- 48:07Is that I try to look at it pretty quickly because one, I want to help him.
- 48:12But two, I don't want to fall behind where he's, he's moved on because he hasn't heard from me.
- 48:16And, you know, suddenly my assistance is irrelevant.
- 48:18Right.
- 48:20Right.
- 48:20Right.
- 48:20You've already gone so far to help him out.
- 48:22You gotta, gotta keep going.
- 48:24Doug, how did you work with the, I guess there's probably this tension around, am I just doing the work for him versus teaching him, you know, give him a fish versus teaching him to fish?
- 48:37Yeah.
- 48:39Well, I think about that a lot because I teach at a STEM place where, with kids, you know, that range from age from eight to 16 and, they'd be happy to have me give them all the fish I have rather than figure it out themselves.
- 48:53So I'm onto that trick.
- 48:54Not that Rusty does that, but, oftentimes I guess one of the, I guess I do two things.
- 48:59I don't try to solve the entire problem for me and I'll give him a working example, but it's really a prototype that he's going to have to extrapolate from in order to do everything that he intends to do.
- 49:09And then the other thing I try to do is I really try to listen more than talk because I've found, I'm sure both of you have seen this, over time, over time.
- 49:20Listening more gives the person a chance to put their thoughts into words in a way that they're trying to explain it to them.
- 49:27They just keep nodding.
- 49:28Some, but quite often they come to the solution themselves by the act of expressing it.
- 49:34Yeah.
- 49:34You've kind of shaken up their thought patterns and got them to focus from a different perspective, right?
- 49:40To try to verbalize it and whatnot.
- 49:42Yeah.
- 49:42Silence is powerful.
- 49:43Yeah.
- 49:44Plus I know that, you know, I can tend to ramble on and on myself.
- 49:47So I want to give, I want to give him an opportunity to tell me what he's really trying to do.
- 49:51Well, that was a great story you told me, Doug, but that's not what I was asking.
- 49:56That's a real possibility.
- 50:00Yeah.
- 50:01Yeah.
- 50:01Well, for me too.
- 50:02So this sounds like this has been working out really well for you guys.
- 50:06And certainly I think it's great, Rusty, that you've got this job where it sounds just looking in from the outside.
- 50:12It sounds to me like you've leveled up a little bit in terms of what you're doing with Python and with code and the impact that you're able to have doing more analysis of what's going on and so on.
- 50:23And I'm sure this, this hasn't hurt that process at all.
- 50:26So it sounds like it's going really well.
- 50:28And I guess maybe the last thing I'd like to explore while we're together is just, you know, how do we help other people make these connections and help each other out and, you know, get, get benefits on both sides.
- 50:41It's a tough one.
- 50:42And I think before I actually connected with you to talk about, you know, kind of learning Python by myself, I'd gone to a couple of meetups in Burlington.
- 50:50And, you know, for me, it's an hour drive down there, an hour drive home and, and stuff.
- 50:55And I ended up there and everybody there is like working at a startup and, you know, is, is pretty savvy.
- 50:59And we had this like presentation.
- 51:02We're doing this with Dockers.
- 51:03And here's the thing about Kubernetes cluster.
- 51:05You're like, what is a loop?
- 51:07It was a lot of people who knew each other, you know, from different projects and stuff, you know, it was kind of a, an old boys club kind of thing or young boys club, I guess.
- 51:15And I, we had a presentation one night when I was there, there's a bunch of different organizations came out and said what they were doing with code in the area.
- 51:22And I would actually, I was thinking to myself, well, I'm just going to, next time there's one of these things, I'm going to show up with a slideshow and say, Hey, I want to try and bring, you know, coding to Franklin County as a teacher.
- 51:32And if I could have a mentor, I think I could get to the point where I could do that kind of thing.
- 51:36So I was not necessarily that desperate, but I was like, that was like my next big plan because I didn't really have anything else up my sleeve, you know, to try and make connections as far as that goes.
- 51:46It is tricky.
- 51:46I do think these meetups are very valuable.
- 51:49People are pretty humble or they're not really, you know, they, even though I'm sure people are doing stuff that sounds intimidating.
- 51:56I don't find very many people are condescending, I guess is what I was looking for is like, they're pretty welcoming of newcomers, especially in the Python meetups.
- 52:05And so I do think coming out to these are, you can really make some good connections at them.
- 52:10Yep.
- 52:10This was a general, like, I don't think there is, there is a Python group there, but it never has a meetup.
- 52:15So it was just kind of a general code.
- 52:17But it was a, you know, it was a comfortable atmosphere, but I wasn't necessarily going to walk out, you know, with the kind of connections that I was looking for.
- 52:23I don't know.
- 52:24I think I just kind of got lucky to get connected with Doug.
- 52:30So yeah, I don't know that I have any help.
- 52:32Yeah.
- 52:33It's funny how life takes these turns, right?
- 52:34Yeah.
- 52:35Doug, what do you think about finding mentors?
- 52:37Well, I think for me is, it's interesting.
- 52:40You know, I approached, I approached Rusty because there were some things that I wanted to help him with, but there's also some things I wanted to help me with.
- 52:46And so it's kind of a two way street about the mentoring.
- 52:49But I think part of it is just asking someone to do so is probably a big thing.
- 52:54I go to a Python meetup in Hartford, Connecticut, and I've given presentations there and I've met a lot of people.
- 53:00And some people, you know, have gotten in touch with me afterwards and, you know, enjoyed the presentation or whatever.
- 53:06But very few of them have asked me for help.
- 53:08And at the meetup, it was clear to me that they were really looking for help.
- 53:12And I thought, just ask me, you know, why not?
- 53:14Yeah.
- 53:15Yeah.
- 53:15Just, you know, the worst that could happen if somebody says no.
- 53:18I don't know how prevalent this is.
- 53:21And I honestly haven't been to it here in Portland, but at least in Portland, one of the Python meetups here has like a weekly, I'm sorry, not weekly, a monthly project night or something.
- 53:31Where you just come with whatever project you're working on and you could just talk to other people.
- 53:36And either they have a project or they're just there to give advice or whatever.
- 53:40And that seems like a really great thing to set up if it doesn't exist near you.
- 53:44I suggested that to the guy who runs the Hartford meetup that I've gone to.
- 53:47You know, they usually have two presentations a night and then he's had hackathon kind of things.
- 53:52But they're sort of free form.
- 53:54And I suggested to him that they might do exactly what you suggested is a tutorial night where people, somebody comes and they focus on a thing.
- 54:02And they work on that thing to try to kind of like a class, I guess.
- 54:06Yeah.
- 54:07Yeah.
- 54:07Like we'll do a hands-on workshop on SQLAlchemy or something like that.
- 54:12Yeah, exactly.
- 54:13Yeah.
- 54:13You know, another thing I'll throw out there, it doesn't work for super, super beginner, but it does work, I think, for even intermediate, like advanced beginner, I guess I would call it, is one of the things that really changed the interaction and trajectory for me was when I started doing presentations at my local meetup.
- 54:34Yeah.
- 54:35And at CodeCamps.
- 54:35Because other people who were really bright and really experienced, like, oh, that was really interesting.
- 54:40I didn't know that thing, but they knew other stuff that I definitely needed help with, right?
- 54:44And so I had dove into some small area and wanted to present on it.
- 54:48And that got me sort of connections, not exactly like a mentorship, but like a peer group that I could then start talking to them about these other things that I needed.
- 54:58And that actually really made a huge difference.
- 55:01And I know a lot of these meetups, they're looking for people to present.
- 55:05And you don't have to be an expert in everything.
- 55:07If you just know one thing you can spend 15 minutes on, there's a good chance you could talk about it and get connections you would otherwise wouldn't.
- 55:14Oh, absolutely.
- 55:14I mean, I got started writing articles to publish because I was doing presentations at works at our various engineering all hands at work.
- 55:24And people responded well to these presentations about various things in Python.
- 55:28And I got the idea to turn them into some articles.
- 55:31And I've been working with Dan Bader at RealPython.
- 55:35And they've been very popular.
- 55:36So that's what got me into that.
- 55:38I think the short form, I think, is probably the key there to getting people up to present.
- 55:43If you only had 10 minutes or 15 minutes to say something, that's a lot less intimidating than if you were going to give a half hour, 45-minute presentation and then take questions.
- 55:53If you could, you know, everybody stand up and do like a lightning, you know, here's 10 or 15 minutes.
- 55:57A lightning talk, yeah.
- 55:58Yeah, absolutely.
- 56:00I think that would be huge.
- 56:01I don't know.
- 56:02I guess part of it is, look, if you're looking for a mentor, you've got to take a few steps to get out there, right?
- 56:06Certainly sitting behind your computer at home and not talking to anyone is not going to get anyone to help you because they don't even know that you're out there.
- 56:14But also, you know, it's also a bit of a give and take, right?
- 56:18Like you said, you both helped each other with various things and whatnot.
- 56:22I guess the one other thing to maybe mention is there are people who help with speaking in the Python space.
- 56:29Like if you apply to PyCon, you can get a mentor that will help you craft your application and craft your presentation.
- 56:37Basically, whatever it is you're going to present, they'll give you feedback and advice on that.
- 56:42I guess the danger is that they accept it.
- 56:44Yeah, then you're committed.
- 56:48Oh, we've chosen you for the keynote.
- 56:49Oh, super.
- 56:50Oh, my God.
- 56:51This is going to make me sweat.
- 56:52But yeah, it's still, I think, I do think there's ways out there.
- 56:56I mean, obviously, there's communities.
- 56:58You can join like different Slack communities and whatnot.
- 57:02There's codementor.io.
- 57:03Never use them.
- 57:05Not a recommendation or endorsement.
- 57:06I just know they're out there and you can.
- 57:08I think it might even be a paid relationship.
- 57:11But if you're like, I really need somebody to help me with this project.
- 57:13And if I spent a month or two, maybe, you know, with one-on-one help, it might help.
- 57:17So, you know, that's another thing that you could do.
- 57:19I don't know if anyone has experience with that.
- 57:21Yeah.
- 57:22I went to, this is a long time ago now, but I went to Toastmasters near me for a while
- 57:27to help with public speaking, which is not necessarily, it's certainly not code oriented,
- 57:31but it helped me a lot to improve my public speaking.
- 57:35I wish a lot of people who I work with would go.
- 57:37Sure.
- 57:39Well, I hear you.
- 57:40And I was going to say that one of the really important things that you can learn that is
- 57:44not taught in any sort of computer programming background is this public speaking, putting
- 57:51yourself out there.
- 57:51Yeah.
- 57:52It really makes a big difference on a lot of different levels.
- 57:55And so, whether it's Toastmasters or it's more like organic, hey, I started giving talks
- 58:00at my local meetup and then at, you know, small local PyCons or whatever, like I highly encourage
- 58:06it.
- 58:06It's a rare skill.
- 58:07And if you have it, it'll put you in a different place.
- 58:09Oh, I really think it helps your career to be able to do that.
- 58:12I've been telling my own kids that for a long time, dealing with kids, you know, in public
- 58:16schools and things like that, that if they can just communicate and get their information
- 58:20out there and they don't mind putting themselves out there a little bit, that's going to be,
- 58:23that's going to be like Python.
- 58:24It's going to be like your superpower at work.
- 58:25You can actually communicate it because, you know, these kids have their heads in their phones
- 58:30and, you know, I'm not saying that's horrible, but there's not a lot of my own children are
- 58:33scared to call people on the phone.
- 58:34You know, it's.
- 58:35Yeah.
- 58:35Yeah.
- 58:36Yeah.
- 58:36I know like my daughters are not huge fans of talking on the phone either.
- 58:39Yeah.
- 58:40I think they mostly hate the numbering system dial 472 for this system or whatever.
- 58:45Right.
- 58:45So I understand it.
- 58:46Like they don't want to wait there for 20 minutes, but yeah, I do think that this is a
- 58:50skill that is going to be more special, not less.
- 58:54It's not like everyone's now a good speaker.
- 58:55When I was a kid, no one was, but now everyone's so good at public.
- 58:59Like, no, that's not true.
- 59:00Right.
- 59:00It's certainly not.
- 59:02So I think it's really a great thing as well.
- 59:04I mean, it's not directly related to being a mentor in a technical space, but I do think
- 59:09having that, you know, I think it helps you with other places.
- 59:12Like I talked about like presenting the meetups and whatnot.
- 59:14Sure.
- 59:14Yeah.
- 59:15Which gives you an opportunity to meet other people who you could either ask to be a mentor
- 59:19or be a mentor to.
- 59:20Yeah, absolutely.
- 59:21Yeah.
- 59:21That's very cool.
- 59:22All right.
- 59:23Well, you guys, this is a really interesting story and I appreciate you coming on here to
- 59:27share it.
- 59:27Glad to.
- 59:27Excellent.
- 59:28Yeah.
- 59:29And Doug, I do want to ask you really quickly before we move on to the last two questions.
- 59:33Just really quick.
- 59:34You talked about your book.
- 59:35When's it going to be out?
- 59:36Well, it won't be out probably till 2021 because it's, I've only gotten four chapters written
- 59:41and I've got 16 total to do.
- 59:43So I got a while to go, but I'm supposed to be producing one chapter a month for the Manning's
- 59:49early release program.
- 59:50So I'll be chugging away.
- 59:52That's cool.
- 59:52Well, keep slow and steady.
- 59:54All right.
- 59:55That's the way to do it.
- 59:56That's, it's cool though.
- 59:57I'm looking forward to it.
- 59:57It sounds great.
- 59:58Yeah.
- 59:58Thank you.
- 59:59All right.
- 59:59Now, before you all get out here, the last two questions.
- 1:00:02So when you write some Python code, I'll go with you, Doug, first.
- 1:00:06What editor do you use?
- 1:00:07I primarily use PyCharm, which I really like, but I'm getting up to speed on Visual Studio
- 1:00:14code because that's what I recommend in the book because it's freely available and it's
- 1:00:19a great tool.
- 1:00:19Yeah.
- 1:00:20Those are both really good.
- 1:00:21Obviously, I'm a huge fan of PyCharm, but basically I use VS Code for anything that's not
- 1:00:25a Python project as well.
- 1:00:27So yeah, it's definitely a good one.
- 1:00:29Rusty, how about you?
- 1:00:30I prefer Adam if I'm going to do something that's a one-off or if I'm going to be working
- 1:00:35in multiple languages.
- 1:00:36Jupyter Notebooks has been really big for me this year as well.
- 1:00:40And if it's a big project, I do PyCharm.
- 1:00:43But like I say, I'm in a relationship with PyCharm, but willing to try new things.
- 1:00:47I've really lost all of my love for it.
- 1:00:50My PyCharm stopped telling me when my functions are used or it stops telling me if I need an
- 1:00:55import and things like that.
- 1:00:56And I can't figure out how to fix it.
- 1:00:57So yeah.
- 1:00:58Oh, that's not good.
- 1:00:59There is a way in the settings that you can go in and tell it to clear its cache.
- 1:01:04I've done it all.
- 1:01:06Okay.
- 1:01:06Well, what a bummer.
- 1:01:11Yeah.
- 1:01:13All right.
- 1:01:13Cool.
- 1:01:13Well, yeah.
- 1:01:14So Adam, that's cool.
- 1:01:16That's like the grandfather of VS Code in a sense, I guess.
- 1:01:20That's where Electron came from, right?
- 1:01:22I really like it.
- 1:01:23It's really, really, really customizable and really fun.
- 1:01:25And until I really enjoyed it until Doug convinced me that I needed a debugger and there's no good
- 1:01:31debugger built in.
- 1:01:32So yeah, I had to switch.
- 1:01:33I couldn't let him go down the path of being one of those Vim guys who just loads his code
- 1:01:37with a print statement.
- 1:01:38Nice.
- 1:01:41Nice, nice.
- 1:01:42And while we're talking about this, it's not either of your answers, but let me just
- 1:01:46throw it out because it's pretty interesting.
- 1:01:47So Rusty, you bring up Jupyter Notebooks, which is super common in the data world.
- 1:01:52Have either of you all heard about Carnets, C-A-R-N-E-T-S?
- 1:01:57No.
- 1:01:57So Carnets is an open source, free, local Jupyter Notebook platform for iOS.
- 1:02:04Wow.
- 1:02:05So yeah, it comes with like NumPy, SciPy, Matplotlib, all that.
- 1:02:10And it runs like on the device, not just a browser talking to something.
- 1:02:14So it works with no internet and stuff like that.
- 1:02:16Anyway, who knows how long it'll be until someone says that's their answer, but it's still a pretty
- 1:02:20cool little option to help people about.
- 1:02:22That's cool.
- 1:02:22Yeah, for sure.
- 1:02:24And then notable PyPI packages.
- 1:02:26Doug, you want to go first?
- 1:02:27Well, I have two kind of.
- 1:02:29One is not a PyPI package.
- 1:02:30I've been using P-Y-E-N-V to run multiple Python versions, which I find fantastic.
- 1:02:36Very handy.
- 1:02:38I was just thinking this morning, like I should probably start playing with that more because
- 1:02:41it was nice to say this one is a 3.6 one and this one is a 3.8 one.
- 1:02:45Yeah.
- 1:02:46Right?
- 1:02:46And with the book, I've had to update my Python version for the book twice already.
- 1:02:51It's probably going to happen two more times.
- 1:02:55Yeah, right.
- 1:02:55Exactly.
- 1:02:56And then the other one that I like, I just discovered this a couple of days ago is this
- 1:03:00thing called JustPY, all one word.
- 1:03:02It's an object-oriented web framework, but everything is done in Python, including the rich JavaScript
- 1:03:08web application, which uses Vue, but is embedded in the Python.
- 1:03:13Yeah, this is really interesting over at JustPY.io.
- 1:03:15I just learned about it as well.
- 1:03:16And it's like, yeah, it's a pretty cool little framework for sure.
- 1:03:19Cool.
- 1:03:20All right.
- 1:03:21Well, that's a good recommendation as well.
- 1:03:22I have no idea if you can pay up and install it, but it's definitely cool.
- 1:03:25Rusty, how about you?
- 1:03:26Package?
- 1:03:27I'm going to go with pandas.
- 1:03:28I've been cleaning data for 2,000 students for about six months, and it's been amazing.
- 1:03:34And I never really knew why I'd want it before, but yeah, it's been a lot of fun to use, actually.
- 1:03:38Yeah.
- 1:03:39I wish it looked like the rest of Python, but...
- 1:03:41It's its own special thing.
- 1:03:43Yes.
- 1:03:43So that's cool.
- 1:03:45And something I just learned about recently is through Brian Okken, who I think learned
- 1:03:52about it through another one of our Python Bytes listeners, is detail.
- 1:03:56details, but D-T-A-L-E.
- 1:03:59I don't know if you guys are familiar with that, but it's a cool framework that lets you
- 1:04:04visualize Panda data frame.
- 1:04:06So if you click on the link, you can click on, there's like a little interactive demo tutorial
- 1:04:11thing you can check out somewhere.
- 1:04:13There's a live demo right at the top.
- 1:04:15But it's like, think a super reactive Excel hype thing that you just point at your data
- 1:04:21frame and it just comes to life and you can even see like example data.
- 1:04:25Wow, that's cool.
- 1:04:26Yeah, it's super cool.
- 1:04:27So anyway, if people are taking your advice and using pandas, they might also want to check
- 1:04:32that out.
- 1:04:32It's a pretty cool little visualizer.
- 1:04:34Excellent.
- 1:04:34Yep.
- 1:04:35All right.
- 1:04:35So final call to action.
- 1:04:37People are out there.
- 1:04:38Either side of this relationship that they're looking to set up to work together, what do
- 1:04:43they do?
- 1:04:43Well, just reach out and make themselves public.
- 1:04:45Put yourself out there.
- 1:04:46And yeah, just got to take the chance and maybe somebody will take you up on it.
- 1:04:50On both sides.
- 1:04:51I reached out to Rusty to think that I could help him out and he was willing to let me
- 1:04:57do so, which was very great of him.
- 1:05:00That's awesome.
- 1:05:02Yeah, I'm sure he didn't see it that way.
- 1:05:03That's awesome.
- 1:05:04I could have had no information at all on the national offering to help him.
- 1:05:07This crazy guy that has no idea about programming.
- 1:05:11Let's talk about the program on the internet.
- 1:05:12No, obviously he knew you were on the show and stuff, right?
- 1:05:16So very cool.
- 1:05:17Great.
- 1:05:18I think that's good advice.
- 1:05:19And I do think that that is what it takes, right?
- 1:05:21No one is going to be willing to help you if you don't get out in the community, make
- 1:05:25some connections and take some steps, right?
- 1:05:27Like if there is someone showing effort to make progress, you're way more willing to put
- 1:05:32in a little effort to help them rather than someone just like, you know, looking to get
- 1:05:36someone to figure stuff out for them.
- 1:05:37Yeah, absolutely.
- 1:05:38Awesome.
- 1:05:39All right.
- 1:05:39Well, this is really interesting peek inside what you guys have been up to and I'm sure it'll
- 1:05:43help some folks along the way.
- 1:05:44I hope so too.
- 1:05:45Yep.
- 1:05:45Thanks for being on the show.
- 1:05:46Thank you very much.
- 1:05:47Thanks, Michael.
- 1:05:47Thanks, Rusty.
- 1:05:48Yep.
- 1:05:48Bye guys.
- 1:05:49Bye guys.
- 1:06:19you'll automatically get a $20 credit when you create a new account.
- 1:06:21Want to level up your Python?
- 1:06:23If you're just getting started, try my Python Jumpstart by Building 10 Apps course.
- 1:06:28Or if you're looking for something more advanced,
- 1:06:30check out our new Async course that digs into all the different types of
- 1:06:34async programming you can do in Python.
- 1:06:36And of course, if you're interested in more than one of these,
- 1:06:39be sure to check out our Everything Bundle.
- 1:06:41It's like a subscription that never expires.
- 1:06:43Be sure to subscribe to the show.
- 1:06:45Open your favorite podcatcher and search for Python.
- 1:06:47We should be right at the top.
- 1:06:49You can also find the iTunes feed at /itunes,
- 1:06:52the Google Play feed at /play,
- 1:06:53and the direct RSS feed at /rss on talkpython.fm.
- 1:06:58This is your host, Michael Kennedy.
- 1:07:00Thanks so much for listening.
- 1:07:01I really appreciate it.
- 1:07:02Now get out there and write some Python code.
- 1:07:18I'll see you next time.