Latest / Talk Python To Me / #190: Teaching Django
Transcript
- 0:00You'll find this episode to be part discussion on how to teach and learn Django, as well as why
- 0:05learning web development can be hard, and part meta, where Will, Vincent, and I discuss the
- 0:11business of creating content and teaching around Python. I think you'll enjoy both parts on this
- 0:16episode of Talk Python To Me, recorded December 6th, 2018.
- 0:20Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the
- 0:38ecosystem, and the personalities. This is your host, Michael Kennedy. Follow me on Twitter
- 0:43where I'm @mkennedy. Keep up with the show and listen to past episodes at talkpython.fm,
- 0:48and follow the show on Twitter via at talkpython. Will, welcome to Talk Python To Me.
- 0:52Thanks for having me.
- 0:53It's great to have you here. I'm super excited to talk to you about teaching developers in
- 0:59general and teaching Django in particular, and even how do people go about making that
- 1:04kind of stuff part of their job and stuff. So I think there's a lot of interesting angles
- 1:09to touch on here. But before we get to them, let's start with your story. How did you get
- 1:13into programming in Python?
- 1:14Sure. So I got into programming later in life. I didn't grow up coding. Computers were
- 1:18just scary and frustrating for me.
- 1:20Define later.
- 1:21Later would be... So I first coded a site in 2008 when I was 27. I started my career as a
- 1:28book editor, which you probably haven't heard before. And I noticed that two things were
- 1:32happening. Amazon was coming in and telling all the publishers what to do, and they were
- 1:35sticking their head in the sands. And I also noticed that we were spending $10,000 on a website.
- 1:41And I thought, I could do that. So I decided to get an MBA, diversify my options, because
- 1:47publishing seemed to be going the wrong way. And I learned how to build websites. So I built
- 1:51websites for a bunch of my former authors. And that was a side business I did throughout my
- 1:56MBA. It was a frustrating experience. It wasn't that fun. I just sort of pushed through it.
- 2:02And then I was able to join a startup called Quizlet in 2010 as the third employee we could talk about.
- 2:09What did they do?
- 2:09So they're the largest education site in the US, at least. They're a top 20 website.
- 2:14It's study tools, flashcards, and games for students. So when I joined, it was just a couple of us. And
- 2:20when I left in 2013, there were 10 of us, but it was a top 100 website, I think. And now it's
- 2:25a top 20 website and I think something like 200 people.
- 2:29Yeah, it's a good looking place. Do you know, is it done in Python?
- 2:32No. Well, I think they do some scripting now. It's PHP.
- 2:35Okay.
- 2:36They're so big now. I'm sure they do some Python stuff, but yeah, PHP. So I did a lot of the hiring
- 2:41there or I helped with a lot of the hiring there to be accurate. And even back then, PHP wasn't hot.
- 2:46Everyone wanted to do, you know, it was a disadvantage hiring MIT Stanford grads with PHP. They wanted to
- 2:53do Node or Rails at the time.
- 2:54Right. At the time. Yeah. Makes sense.
- 2:56Yeah.
- 2:57Okay. So I think this is really interesting. So let me stick into this for a minute before we move on.
- 3:00Like you were doing book editing and then you went to get your MBA and also learned programming.
- 3:07And that those sound at first blush, like completely two different directions. But I think there's
- 3:13actually a lot of intersection in people who want to create their business or enable their business.
- 3:19They have an MBA. And I think these programming powers are like really important actually.
- 3:23Yes.
- 3:24Yeah. They're incredibly important. I mean, and back when I was doing this 10 years ago,
- 3:29which is weird to say, you know, tech wasn't cool. I think it was still,
- 3:33we're just coming off of real estate. I was sitting in a finance class when the market crashed in
- 3:372008, learning about efficient markets.
- 3:39Wow.
- 3:39They had to throw away the book and start over.
- 3:41Not quite.
- 3:44Yeah. We could talk more about that, but tech wasn't sexy. Startups weren't sexy. I knew I wanted to go to
- 3:50San Francisco because I'd come from an industry publishing that was being
- 3:54disrupted. And I thought it'd be better to be on the side of change rather than defense.
- 3:58But yeah, it wasn't, people were still in traditional mindset. I mean, now where I went,
- 4:03I got my MBA at Tuck, which is the business school at Dartmouth in New Hampshire. Now
- 4:07tech is the biggest thing by far. I think it even exceeds finance and consulting. Everyone goes to
- 4:12Amazon and or becomes product managers. So, you know, digital literacy is really, really important.
- 4:17That's actually a course I'd love to teach at some point. Some schools have this, you know,
- 4:21you say, okay, you're going to go in and be a manager. You know, what do you need to know,
- 4:25right? Like you should build a static website. You should know how the internet works. You should
- 4:28have some basic concepts. I'm not sure that they're doing that yet, but they're aware that they need to,
- 4:33you know, educate the managers about how the modern world works because everything is tech. I mean,
- 4:38even marketing, they, I'm not sure if they've changed this, but used to be really advanced,
- 4:42you know, Excel macros, which sounded sexy. But the reality is, you know, if you're an MBA going to a
- 4:47company, you need to learn SQL or Python scripting. Like that's going to be much more valuable
- 4:52today. So yeah, so I think it's exciting. They didn't teach it back then. Now everyone's kind
- 4:56of catching up. It almost makes me think tech has peaked a little bit that everyone wants to go into
- 5:00tech, but.
- 5:00That's right. Well, I think, I don't know if I agree with, I think if you want to go into tech for pure
- 5:06tech, maybe, right. Just, I just want to be a straight programmer and I don't have any specialties.
- 5:11I'm not sure I would say that, but that's a possibility. But I think there are just so many
- 5:16opportunities to take the thing I'm building, the thing I'm doing, the thing I'm special at,
- 5:20and just 10 exit with software that that's going to have a really long run.
- 5:25Yeah. I think you, yeah. If you had like an MVP for MBAs course, that would,
- 5:29I think that would make a lot of sense.
- 5:30Yep.
- 5:32But yeah, but we'll just to finish my story. So I was at Quizlet, which is fantastic opportunity.
- 5:36And then I decided to leave. I thought, you know, I could go again, as an MBA person,
- 5:42I could go raise some money and try to hire people for the startup idea I had,
- 5:45or I could teach myself how to properly code over the next two years. And I decided on the latter,
- 5:50knowing that, you know, most startups fail. The one I worked on didn't work out. So we left San
- 5:55Francisco, my wife and I, and I basically locked myself in a room for two years and learned how to
- 5:59code, which was kind of awful, but for various family reasons was the way it had to be done.
- 6:04You know, I had that optimism. I'd just been at Quizlet, right? It just worked.
- 6:08So I assumed everything, you know, would kind of work for me. I'm curious, you know, for you,
- 6:11like you've gone out on your own, there's trajectory of like the first year, you're so excited,
- 6:15right? It's like, you're doing your own thing. You're so efficient, right? You have days where
- 6:18you work two hours and you go like, that's more than I would have done in like a week,
- 6:21maybe at my last job without all the responsibilities I had. But then, you know,
- 6:25year two, three comes in and it gets a little more real. And, you know, you're kind of like,
- 6:29huh, you know, I'm on year five now. So without arguably a big win. So it's an interesting
- 6:36trajectory. It's so fun to do for a year or two. Like, I think everybody, if they can,
- 6:39should try to, it's like the sign I saw on a school bus as a kid. It was like, kids,
- 6:43like leave school now, go out on your own before, you know, while you still know everything.
- 6:47It's a little bit like that, right? Because now sometimes you're like, oh, a big company.
- 6:52That'd be nice.
- 6:52Yeah. The stability.
- 6:53Exactly.
- 6:54I will have a vacation or that I will get paid this much that I can plan around it. Yeah.
- 7:00I still don't know what I'm going to get paid. It's, it's all over the map,
- 7:02but on my side, like I can't, I can't complain. Things are super going super well. You know,
- 7:08listeners are really supportive of the podcast. Businesses are sponsoring the podcast are really
- 7:14great. And I've been with me for a long time. The courses I'm doing, you know, people really
- 7:19seem to appreciate them. So I, in that regard, like I have absolutely no complaints. It's just great.
- 7:25But I do sort of feel the drag of reality, if you will. I mean, it's in that, you know,
- 7:32like I probably spend 30% of my time just doing paperwork, answering like what sometimes are mundane
- 7:40emails. Sometimes they're amazing stuff I get from people, but a lot of times it's just like,
- 7:43I got to keep this moving, that going. And there's just more friction in the world. So yeah,
- 7:48I hear you.
- 7:49Yeah. And I think it's, I think it's the grass is greener. I mean, there's friction in every job,
- 7:53but, but it's, yeah. And I think it's too, as you mentioned vacations, like, I mean,
- 7:57I can speak honestly, like I'm super burned out right now. Like I haven't taken a, from coding
- 8:01anyways, I haven't taken a coding break in, you know, five years of more than a couple of days.
- 8:05Yeah.
- 8:06I have one plan coming up and I'm sort of aware that I need to make it, but I'm also aware that
- 8:11I'm not, you know, making great decisions right now. So I'm sort of like, I'm going to wait on that.
- 8:15But yeah, as you said, like with the drag of success, like, I think that's an important point
- 8:20is that two things. One is that sometimes a moderate success is the hardest thing because you don't know
- 8:25if it's, if you should stick with it or not. Right. Like it's better to fail fast or fail big when you're
- 8:30kind of in the middle, you're like, you get the self-questioning loop, which is not productive.
- 8:33But then, yeah, for me, like I'm, you know, this is my first year doing this full time. You know,
- 8:38I have to hire an accountant. I have to emails, you know, just more distractions, you know,
- 8:43positive things. I'm still working out how to deal with that. You know, it's just me. I don't,
- 8:47I know I don't have the ability to hire someone. Even if I did, I sort of feel like it'd be almost
- 8:50be easier to hire six people than one person. Yeah. Oh, I totally hear you. What I would say,
- 8:55at least around that, at least those are the kinds of things that you sort of go on autopilot with to
- 9:02a large degree. It's like driving. Like when you first learned to drive, I taught my daughters
- 9:07recently how to drive. And like every interaction with the mirrors, with the gauges, with the controls,
- 9:11it's just like, I can't do all this at once as dad. I'm like, I understand now that you feel that
- 9:16way. You need to learn how to do it. And then it's going to be fine. And I know it doesn't like
- 9:20completely fix it, but a lot of like the accounting stuff and whatnot, it does at first, it's such a
- 9:25challenge. And then it doesn't become, it becomes not so much. I think it's speed bumps rather than,
- 9:30you know, a parachute. Yeah. I'm guilty. You know, I have an MBA, so I'm a little bit like,
- 9:34I know how to do accounting, but I don't know how to do accounting. And even if I did,
- 9:38I wouldn't want to do it. So there's a priority stack, right? So that's sort of the,
- 9:41the nice thing about a big job is like, I want to hire me to tell me what to do sometimes.
- 9:45Right. It's like the curse of autonomy. It's like, so I've actually like, you know,
- 9:49I've gotten much more disciplined with making time to schedule my days. Like,
- 9:54so I come into each day and I've, I just execute rather than think about it.
- 9:58Yeah. I think that's important for anyone who's like, maybe they just work for themselves
- 10:02or they work from home. They're trying to do their own business. If you don't create this
- 10:07structure again for yourself, it can get really overwhelming or it feels like you're spinning
- 10:11your wheels. It's weird to think about how, you know, if I think like for you, right,
- 10:14like how productive we can be, even though sometimes we sit here and think, what am I doing today?
- 10:19Right. Like you have the podcast, you have your courses, you have everything else. Like
- 10:22I was looking back on my year and it's like, it's been a big year for me in terms in the aggregate,
- 10:27but day to day, it's a lot of, you know, you don't have wasted time, right? Like when you have a
- 10:30normal job, you have the water cooler, you have this, that, or you have days where you're like,
- 10:33you know what, it's three o'clock. Like I'm going to do low level stuff. There's really no low level
- 10:37stuff, which is a blessing, but it means that I need to, you know, go take a walk instead of
- 10:42banging my head on something. So yeah. So those are all challenges around, you know, being self-employed
- 10:47and creating content. Yeah. I think, you know, I don't want to go too far into this because it's not
- 10:51the main topic necessarily, but it is super interesting to me. So I'm going to have to resist the urge
- 10:55in a hard way. So I think one of the big differences that people are trying to create content
- 11:00for themselves, they're trying to be self-employed, maybe even in a consultant role,
- 11:04they're trying to be a book author, whatever, is you have to shift your mindset from, I get paid to
- 11:12create value. I know not, I get paid to spend my time. Right. So if I, if I, I've worked at plenty of
- 11:20like large companies or in small companies as well, but even if I have a bad day, if I show up and I
- 11:25have like, Oh, I wasn't so productive today. It's like, whatever. Like I get paid exactly the same.
- 11:29Cause I exchanged my time for money, but now it's like, I've worked on projects that were super
- 11:35successful for a month. And I've worked on projects that would be like bad, bad pay for a month, you
- 11:40know, like, and you just have to, realign your thinking of, I get paid for the value I create.
- 11:46How do I do that? And just optimize around that.
- 11:49Yeah. Yes, exactly. I think about this a lot.
- 11:52Easier said than done, but yeah. I mean, because you have days where you, you know, like a weekend,
- 11:56right? Like I try not to work on weekends cause I have a family and generally I have higher sales on
- 12:02weekends. So it feels pretty awesome to not work and get paid. Then again, sometimes I'll really work
- 12:09hard for an extended period of time during the week and sales are low, which, you know, this is a bad
- 12:13habit. I, I, because I'm self-published, I can see my daily hourly, you know, minute by minute sales.
- 12:18Minute by minute. Yeah.
- 12:19I've gotten better at not looking at it, but it is a weird shift, right? And the challenging for,
- 12:24you know, tech content is it's not, it's not really an annuity. It requires constant upkeep,
- 12:28which is a challenge for burnout, but also an opportunity because most people don't update
- 12:33stuff, you know, especially frameworks, right? Like I'm a little bit envious or people who work
- 12:38with programming languages because you have a larger audience and probably more competition,
- 12:43but Python, you know, 3.6 versus 3.7 isn't changing as much as Django 2.1 to 2.2. You know,
- 12:51Django has two major updates coming out next year, which is fantastic for the language, for the
- 12:55community and for developers. But, you know, like I published my first book in, you know,
- 13:02March, I had to update it this fall. I'm going to have to update them again in April. I'm going to
- 13:05update them again in December and I'll have three books out. So there's, you know, it's a chance.
- 13:10I like the idea of constantly iterating on my stuff and with text as opposed to video,
- 13:15it's very easy for me to do. I probably do changes every week, small things making them better, but
- 13:20yeah, it's a challenge and opportunity. I mean, that's partly why, you know, there's so few books on
- 13:24frameworks. It's just so hard to keep up. Right. You don't want to be behind, but got to put a stake
- 13:29in the ground somewhere. I guess the best bet is just pick the newest possible framework you can go
- 13:33with. I think so. Yeah. Or I'd say, I think, I think that the key is to not do everything. It's to,
- 13:39it's okay to be known for one thing. Sure. I've thought a lot about this because I,
- 13:43I use Django. I like Django. I also write a lot of JavaScript. I've done a lot of React.
- 13:47You know, I want to do everything, but really it's better to, you know, look through the world
- 13:52through a keyhole. And, I think that's better for people too, right. To be known as like, I need
- 13:57to learn Django. I think Django in particular, if I had to bet is going in the right direction on that
- 14:02stuff. So, but it's a little scary bet, right. To sort of say like, I'm attaching myself to this
- 14:07train. I mean, we do it all the, like we do it across the spectrum though. Right. If,
- 14:12if I'm developer at a company and we're going to start a new website, I've got to pick a web
- 14:18framework. If I'm a book author, like, like you, I got to pick a framework, right? if I do
- 14:24training, same thing you're going to like, you can't do it all. So like you said, you got to
- 14:28specialize. I'll say it across the board. I think picking the frameworks and making these kinds of
- 14:33technology bets are super important for our careers, no matter where we are. Like imagine
- 14:38you just work in like cubicle. You don't do anything public. You just, you, you pick to work
- 14:42on this one project or whatever, right? Like if you decide to change careers, if you worked on say
- 14:48some obscure framework versus Django, when that switch or that, that choice didn't seem obvious,
- 14:54well, it looks pretty like a pretty good choice now, right? When you go to get that next job.
- 14:59So I think having this, this vision for what is the right, like where are things and where are they
- 15:04going is actually something everybody should continuously cultivate in themselves.
- 15:08Right. Well, I think with content, I'm curious on your thoughts. There's, you know, the levels of
- 15:12like, who do you, who do you do the content for? I think teaching is all about levels. And if there's,
- 15:16you know, three levels, beginner, intermediate, advanced, beginners don't know anything and don't
- 15:21value their time. So they won't pay for stuff. Generally speaking, intermediate is probably where you
- 15:26can say, Hey, I'll save you 20 hours instead of one or, you know, the inverse of that. And then
- 15:31advanced, assume that they can read the manual and figure it out. So most content I think is at that
- 15:36intermediate level for that reason, but it's, you know, it's something we have to figure out,
- 15:40right? Like with your courses, I'm, I think about this all the time. I try to not skip a step,
- 15:44but I try to make it intermediate level. And then I often get emails about, you know, why didn't you go
- 15:49advanced on this? It's like, well, I'd love to actually, that would be more interesting for me
- 15:54as a developer. But I think that's not where the, I'd rather get people up that curve and, you know,
- 16:00and take all the steps to go like, you know, building projects. So, so my first book, you build
- 16:04five different web apps. It's not a book length, one project where at some point you make a mistake
- 16:10and you fall off and you're just like, and you're done, you're done, right? Like, cause that's how
- 16:14I learn. I mean, that's, you know, I know with your courses, you do that. I think everyone says,
- 16:18oh, how do I learn this? Like go build a bunch of projects. Okay. Where do I do that? Where do I see
- 16:23that? The answer is like nowhere. Yeah. You know, even with Django, as big as Django is, if I've asked
- 16:27this people and I wondered this, wondered this five years ago, where do I see a Django blog implementation?
- 16:32Where do I see that list of 10 Django sites? If it even exists, it's out of date in a year or two.
- 16:38So the first book that I wrote was just my own notes to myself just to remember this stuff.
- 16:44And then I eventually put online and eventually I decided to call it a book, but you know, I didn't,
- 16:49wasn't aware of anything else that really did it like that. I still don't know if there's anything
- 16:53that goes and builds multiple apps in a book format. I think most things are one big mega project,
- 16:58which I don't know if that's my learning style or what, but I like the repetition of, you know,
- 17:03in my book, each thing builds upon itself. So I don't re-explain stuff, but it's like, okay,
- 17:07we've seen this before. I think that that's such a valuable one. And so this book that you're talking
- 17:11about is Django for beginners, right?
- 17:12Yes.
- 17:13Yeah. Okay. So I really liked the format. You have the five different web apps that you build. They
- 17:18start out really, really simple and they get a little more advanced and a little more advanced,
- 17:22like, oh yeah, let's now talk about databases. And now let's talk about user authentication.
- 17:27And it builds up. And I really think that that is the way that people learn.
- 17:30Well, it's how I learn. So it's hard to know, right? I mean, I just threw it out there thinking,
- 17:34who knows what will happen. And the reason I kept doing it is because the online sites started getting
- 17:39traction because I looked at it, you know, when I, back in 2012, when I first thought about this,
- 17:43to me, I was thinking, well, I'm going to do Rails or Django because those were the two hot things in
- 17:48San Francisco. And Rails was a lot hotter. Rails had a much better beginner community. I would say,
- 17:53it had the Rails tutorial, but I, for whatever reason, I just picked Python and Django, maybe
- 17:58because I thought Python was more useful, but I knew that I was like, I just got to stick with one
- 18:02for a couple of years and do it, but it was really rough. So that book in the, originally was my attempt
- 18:07to do like a Rails tutorial, you know, the Michael Hartle Rails tutorial, because I think that once I
- 18:13understood Django, I thought it wasn't that Django itself was so complicated. It was that the explanations
- 18:18assumed a level of knowledge that people didn't have. And I think this, you know,
- 18:22I'm curious on your thoughts. This is a thought I have on the Python community that many people
- 18:27are more advanced. You don't just jump into Python. Like you usually come from HTML, CSS, JavaScript,
- 18:34or maybe you're doing, you know, Java or something in a university. And you already have a lot more
- 18:41experience before you get to Python. And then before you get to Django. So the Django docs, like the Django
- 18:46docs are fantastic, but they're written for an intermediate web developer new to Django.
- 18:52So if you're new to web development, it's just like, ah, yeah, you're in for a world of hurt. I mean,
- 18:57that's why I just submitted a talk to PyCon for next year on, you know, why learning Django is hard.
- 19:02And I think the biggest reason is because web development is hard. And if it's your first time
- 19:07learning web development, you're going to associate all that pain with the framework that you choose,
- 19:12which is unfair, but that's how it is. So anyway, so that first book was, you know, a couple of years in,
- 19:17I thought, you know, Django is fantastic, but why isn't there actually truly beginner?
- 19:21Why isn't there better?
- 19:22Why isn't there better stuff? You know, in the, in the docs and most tutorials assume
- 19:25they just kind of jump in halfway. It's, it's how you and I would discuss a project,
- 19:29but you know, like one of the, I think best things I do is I literally say to people, okay,
- 19:34we're going to create a directory for the code and here's where to put it. And here's the commands.
- 19:40And that seems so basic, but so many people can't even get to that step. So they just fall off.
- 19:46I did like that about your book. Yeah. Yeah. When I was looking through, I really liked that.
- 19:49I find it interesting. I think I'll run this by you. You let me know what you think. Cause
- 19:55I learned to do programming later than a lot of folks. I don't know, like a medium age,
- 20:01I would say I learned proper programming junior, senior year of college. Right. So I didn't start out
- 20:08like programming when I was young. I fiddle around. I love computers and stuff, but I didn't really get
- 20:13into programming until I was almost done with college. And I feel like people who learn programming
- 20:18a little bit later in life, the sharp edges and the pain that you hit on these things you
- 20:24get hung up on are the memory is more recent. Right. And I think that's actually a super important
- 20:31aspect of being a good teacher, either in books or videos or in person or whatever,
- 20:37even just speaking at a conference is remembering the sharp edges because a lot of the people out
- 20:44there are just about to bump into them or they just recently bumped into them. And if you have that
- 20:48empathy and that shared experience a little more deeply, then it's, it's a little bit easier to help
- 20:52and go like, actually, no, don't just say create a virtual environment. Say, these are the four commands
- 20:57to create the folder and then the virtual environment, then activate it. Because if you
- 21:00don't write some people, let's just go, ah, so frustrating. Right. Yeah. It's empathy. Right.
- 21:05I think empathy is what makes a great teacher. And yeah. When you learn programming later in life,
- 21:09I think it's two things. It's more recent. I think the bigger thing is you, you have experience,
- 21:14you've learned other things. When you're a kid, you just accept everything as at face value. And I think
- 21:19this has changed, but 10 years ago, a lot of people who knew how to program learned how to program
- 21:23because they weren't playing sports or doing traditional activities, they were at home
- 21:27on their own or in online communities, learning how to code. And they became known for coding and
- 21:33it sort of builds up. They just get used to it. Right. It's just normal to them. Whereas,
- 21:37you know, as an adult, I mean, I was 32, I think when I got serious about coding and,
- 21:42you know, I have a brain, I work hard. I've never been so frustrated in my life. Right. And so you get a
- 21:47little bit of the Stockholm syndrome. You're like, is it me or is it coding? And I think it's really
- 21:51just that it's could be explained better. I don't think that programming is any,
- 21:55and this is interesting thinking about programmers. Like I feel like programmers are the group that's
- 22:00most prone to telling themselves that they're smart that I've worked in. I've worked with a lot of
- 22:06smart people. And I think maybe it's to do with the fact that our field changes and it is, you know,
- 22:12very mentally challenging, but yeah, there's sort of that like macho nerd attitude that's prevalent in
- 22:17engineering that I find incredibly off-putting. I think most people do. But yeah, so for me
- 22:22personally, like my role model is Julia Child actually, because most people don't know this,
- 22:26that she didn't learn how to code until she was, I think 32 as well. She was well into her thirties.
- 22:30And so is she the world's best cook? No, like I'm not going to be the world's best programmer,
- 22:34but she's really good at explaining it because she, again, as you say, has that experience,
- 22:39that empathy. And the challenge for me now actually is with this Django stuff that I,
- 22:43I've internalized a lot of it, but I respond to so many emails from users that I use that to sort
- 22:48of not lose touch with how hard this is because it, because it is, it is easy to do to just,
- 22:54you know, even just the other day, I was trying to show someone, I was like, Oh, you can build a
- 22:58website and throw it up online in 10 minutes. And it's hard to do even my book. Right. I was like,
- 23:02Hey, here's my book. You can do it. Like, let's do it. Bang, bang, bang. He's on a windows machine.
- 23:06An hour later we had Python installed. Yeah. Right. So these are the things too,
- 23:09like, like virtual environments, you know, installing Python. Some of my most popular
- 23:12posts on my website are how to install Python because right. As you know, there's, it's hard
- 23:18to do and there's actually multiple ways to do it. And generally an engineer will say,
- 23:22well, here's the five ways to do it. Here are the pros and cons. When a beginner just wants you to say,
- 23:26do it this way. What is the best way? Just tell me that. I don't need to know this.
- 23:29So in my book, I don't get into these, there's debates within the Django world about structure and
- 23:34some other things we can get into, but I don't bring them up. I may quickly reference them,
- 23:38but I just say, here's how to do it because I don't think that that matters at the beginner stage.
- 23:43I think you want to get the confidence, you want to get stuff going. And then later on,
- 23:46you can have those debates. And even now, like we could talk about like with virtual environments,
- 23:50PipM is in the news, which I use in my book. There's these kinds of religious debates that are
- 23:55beginners don't understand. And on some level I think are counterproductive,
- 23:59but kind of just are, and I've internalized them.
- 24:01Yeah. This portion of Talk Python To Me is brought to you by us. Have you heard that Python is not good
- 24:10for concurrent programming problems? Whoever told you that is living in the past because it's prime
- 24:15time for Python's asynchronous features. With the widespread adoption of async methods and the async
- 24:21and await keywords, Python's ecosystem has a ton of new and exciting frameworks based on async and await.
- 24:27That's why we created a course for anyone who wants to learn all of Python's async capabilities,
- 24:32async techniques and examples in Python. Just visit talkpython.fm/async and watch the intro video
- 24:39to see if this course is for you. It's only $49 and you own it forever. No subscriptions.
- 24:44And there are discounts for teams as well.
- 24:49One real quick thing on the sharp edges and stuff. I think having these different little apps helps you
- 24:55take these first few steps onboarding into the programming world. You do with your five web apps,
- 25:00I have my 10 apps course that you build the 10 apps. They get increasingly hard.
- 25:03And it's, you make these wins. You're like, I built a thing. Like I've gone from beginning to end and I've
- 25:10survived, survived it. Whereas if you have like one long tutorial or one long thing in a book or
- 25:15something, you're punished along the way. And if you don't withstand all the punish, it's like running
- 25:20a marathon versus a mile, right? You got to run the mile to learn to run the marathon, but you don't
- 25:25have to run the marathon first, right? So you can do these steps and you can get these early wins and
- 25:29build the confidence. You had mentioned installing Python. And what I liked, one thing I saw in your
- 25:35book that I thought was pretty cool was you talked about installing Python on macOS with Homebrew
- 25:41on say Ubuntu or something. You just app install the package, right? But I doubt too many of the
- 25:46beginners are using Linux. Maybe they are, but... Well, yeah, actually I get a lot, I get quite a few
- 25:51questions from Linux users. And I've always assumed if you're on Linux, you know what you're doing, but
- 25:56people are on Linux for very strange reasons. Yeah, sure. You can't assume anything, but yeah.
- 26:01Yeah. Well, I guess there's traditionally been this way of like, you run this command, you get Python
- 26:05on Linux. And that's not traditionally existed on macOS until people started to use Homebrew and it
- 26:11barely or doesn't exist on Windows. So I think the leveraging these things is really quite powerful.
- 26:19Yeah. I think if, I mean, if I could wave a wand with Python to solve installation, it's a much bigger
- 26:25deal than people think because most people don't own their own computer or they're on Windows where it's,
- 26:30you know, much harder than on a Mac, you know, a school setting Chromebooks, you can kind of do it
- 26:35with Anaconda, but it's messy. So most Python people I talk to are just like, oh, how hard is it to install
- 26:41it? And I just think there's a general, yeah, I don't know. I just think people should go and try to
- 26:46teach someone up because, you know, we were talking about the easy wins. I think that first win, like
- 26:51when I've taught like at the college level and when I show people create an HTML file, put anything in it,
- 26:56double click it with your mouse and it shows up on the screen, that wow moment, the look on their face,
- 27:02the feeling they have is so powerful and that sustains them through so many things. And I think,
- 27:08and those wins kind of, they get harder as you progress in programming, but I think you need those
- 27:12wins. Like we're in agreement on this. Like you need that confidence. You need the ability to share
- 27:18your stuff with friends and family and have them go, oh, that's cool. Or you can show them how to do
- 27:22tracking codes and say, hey, like, I know you didn't look at my site, right? There's all these
- 27:25aha moments. And I think, I think very top down in terms of teaching with, I want to maximize the aha
- 27:31moments, you know, and say too, like, here's what we're going to build. There's a lot of courses and
- 27:36books that just jump into it. And it's like, what are we doing? I think you should always say, here's
- 27:40where we're going. We're going to struggle, but we're going to get there. I have that debate with other
- 27:44teachers. I mean, Andrew Pinkham, who did Django Unleashed, you know, his book is a fantastic book
- 27:49and he goes bottom up with stuff and I go top down and yeah, it's a pedagogical difference,
- 27:54I guess. Yeah, it definitely is. And I think at the heart of that difference is how long will
- 28:00somebody persist learning arbitrarily small details towards a far goal? If they're willing to go through
- 28:06as many details as it takes, you could probably be more efficient that way. But that's not the,
- 28:10I don't believe that's the reality. People need these early wins. Yeah. Well, that, and that's the
- 28:14challenge with a CS degree is you, you get all the things you need without the context to know why you
- 28:19need it. It's like, nobody studies music theory for the sake of it. They hear a song and they want to
- 28:23play it. And yet, why do we assume that people need to take all this theory without any context?
- 28:29If I could redo everything, I would get a bunch of these early wins, have them feel some pain,
- 28:35and then understand why data structures are amazing, right? They're mind blowing when you've
- 28:40been frustrated on it, but when they just given it, I think it doesn't mean as much, but that's like
- 28:45everything in life, right? Like, you know, the answer is you have to live it to understand them.
- 28:49There's something about this experience thing. So I guess experience, one thing that might be a little
- 28:55bit different is when I, certainly when I learned a program, this was...
- 28:59Are you going to use yours?
- 29:00Yeah. I was going to use, I'm just trying to think, when was I a junior in college? This would be like
- 29:061995. World Wide Web was created two years before then. And so there was not much to learn. It was like,
- 29:12you get a book and you sit down and you learn it. I suspect there was some differences from say 2013
- 29:18when you learned versus say now. Like, how have you seen that change even in the five, six years?
- 29:24Yeah, I think it's just a lot better. Bootcamps just started in San Francisco then. There wasn't
- 29:30really this idea that anyone could code, but many people were feeling as I did that you feel like a
- 29:34second class citizen. You work at these companies. I mean, I was, you know, an MBA well into my career hiring
- 29:40people right out of school making more than I was. And so sort of...
- 29:45Yeah, that feels great, right?
- 29:46Well, you know, it is what it is. I mean, it's deja vu of my publishing career, right? I became a book
- 29:51editor, you know, in three years, which I figured would take 10 or 15. And so I was like, okay,
- 29:57what does this look like for the rest of my life? And same thing again, you know,
- 30:00and I didn't actually go into it thinking I wanted to be a programmer. I got into it thinking
- 30:04my glaring weakness is not being a better programmer for someone who's on the business side.
- 30:10And I still think if I was, you know, rational about it, how could I make the most money? It would
- 30:14be to be a tech whisperer to a CEO or a COO. Because it's that middle management position. It's that,
- 30:21you know, explaining tech to people who don't know tech. That's actually the sticking point for a lot
- 30:26of stuff. But yeah, but in general, 2018 is so much better. YouTube is a thing. There's video courses.
- 30:31There was no one really doing self-published content. I think there was lynda.com.
- 30:34Yeah.
- 30:34And I think there's more just communities around, hey, it's okay to learn how to code and do it
- 30:38together. Because the isolation that I felt that many people feel, that's the really hard part.
- 30:42You feel like you're in this tunnel and you can spend a week in Stack Overflow hell. And you ask
- 30:48questions in Stack Overflow and people are mean to you.
- 30:50Yeah, they're super mean. Like, you asked it wrong. Go away. I was really frustrated. I had to,
- 30:55like, I'm just, I'm sorry.
- 30:56Yeah, read the manual. I know. I will say though, that something about Stack Overflow,
- 31:01that I still keep with me is the idea that there's a community of engineers that will answer
- 31:06my specific question and help me for free is mind-blowing in a non-tech context. That is,
- 31:14I remember the first couple of times I asked questions and people quickly, you know, that's
- 31:18what I love about engineering is that it really generally comes from a really good place of
- 31:22we're all learning together and we want to help. And that is not the case in finance,
- 31:25consulting, all these other fields.
- 31:27Sure. There's probably not a Stack Overflow of, you know, financial analysts or for lawyers or
- 31:33things like that, I would guess.
- 31:34Yeah. But, you know, the flip side is that engineers' passion gets abused. You know,
- 31:38there's a lot of, you know, open source, there's burnout and all these things. So,
- 31:42you know, it's one of those jobs where programmers really like what they do,
- 31:44but then you sort of pay a price for it.
- 31:47It's on net, it's fantastic. Like I love doing something that I'm interested in that challenges
- 31:51me, but it's, it's really hard to, most of my friends are not programmers. It's really hard to
- 31:55explain what I do to non-programmers, right? I mean, I spend most of my day deeply frustrated and my,
- 32:02my tolerance has increased, but I don't, you know, get pats on the back for anything, right? Right.
- 32:07Because we, we automate what we know and then we move on. And that, you know, I think ties in probably to
- 32:13some of the mental health stuff for programmers, but yeah, it's, you know, I'm like constantly
- 32:16learning, but I'm also constantly learning. And that's why you need content, you know, people like,
- 32:20like yourself and, and others who say, Hey, this isn't, this can be done so much faster, right?
- 32:26Like not everyone can read the manual and grok it. And that's a surprising thing to me is the audience
- 32:31that I have, I'd be curious about yours. You know, I have people who been programming for decades,
- 32:35people who've been programming in Python for over 10 years, but they're not doing web and they,
- 32:42you know, in Django's the web is hard to learn or people coming, you know, yesterday, someone kind
- 32:48of grumpily emailed me saying, I actually put a review on Amazon and said, yeah, I'm from a PHP shop
- 32:54and we have to learn Python Django. And yeah, this book is good, but it doesn't go into like where I put
- 32:58the business logic. So four to five stars, you know, I'm grateful for him for writing the review.
- 33:03Everyone should write reviews for tech books, but you know, it's like you, you sort of, yeah,
- 33:09you can't win. And there's a very wide audience of people who, yeah, well, that's one of the
- 33:12tensions where if you had put too much emphasis on that, people are like, I don't need that right
- 33:16now. This is, why do I need all this detail? Right. So it's, you can't have that many variations,
- 33:22right? You just gotta, you just gotta decide and try to help as many people. I guess one of the things,
- 33:27you know, if, if you're writing these books and you're helping people, a lot of people learn Django,
- 33:32maybe touch on some of the things you feel like Django has done right, or Django makes getting
- 33:38going in web programming easier, better than say like Flask or Pyramid or something like that.
- 33:43Why Django for you, I guess?
- 33:45Yeah. So why Django? Because it's in Python, which is a fantastic growing language, which is easy to learn
- 33:52and you can use your whole career because I like Django over Flask. That's a little bit of a religious
- 33:59debate. You know, it comes down to, do you like to paint between the lines or not? I'm fine with
- 34:05decision, not having to make all the decisions, even if I don't agree with all of them, you know,
- 34:08Flask and other micro frameworks, people really, really seem to like that. I think that the trap is,
- 34:13I think a lot of beginners look at the hello world script for, you know, Flask versus Django and Flask
- 34:18is fantastic. You're up and running. It looks so easy. Yeah. It looks so easy and it is so easy,
- 34:22but then you add a dozen packages. Where do I find them? Are they up to date?
- 34:27It quickly becomes quite advanced. Whereas Django just puts you between the lines in the same way
- 34:33that Rails does. And I really appreciate not having to deal with that. Partly, I think, you know, I spent
- 34:39over a year working on a startup that used Meteor.js, which is a JavaScript framework, which was fantastic
- 34:44to use, but was constantly changing. And, you know, the stability of Django is an underrated feature for
- 34:49beginners. It's around, it's going to be around. There's all these benchmarks. It doesn't change that
- 34:54much. Actually, those are huge wins for the Django community. You know, in terms of what's,
- 34:59the docs are fantastic. The community is really nice. There is a little bit of a learning curve,
- 35:03but I try in the book to show, you know, hello world can be done pretty quickly. And actually,
- 35:09pedagogically, there's, I have a post on three ways to do an about page, which could be any static page.
- 35:14There's like the really fast way to do it. They're like kind of fast. And then like the way you would
- 35:18do it with, you know, different apps, if you're going to build out a structure. So I just sort of give
- 35:22that to people just to say, you know, it's going to be okay. We're going to, we're going to get
- 35:26through this. Yeah. So yes. So those are all advantages of Django. And I was just at Django
- 35:30con for the first time. The community is fantastic. Yeah. Did you give a presentation there? I did.
- 35:34Yeah. I gave a talk on finally understand user authentication with Django rest framework. So not,
- 35:41not a short, not a short title. And I think that that talks on YouTube now, but it was,
- 35:45you know, realization I had is you don't really learn HTTP until you build an API,
- 35:50or at least I didn't really understand it. It's a really interesting point is I feel like I didn't
- 35:54either. And so I started building really restful services, right? You're like, Oh, I didn't even
- 35:59know that you use the verbs in this way or that they had these meanings or these are cacheable and these
- 36:04are not cacheable and these are modifying and these are not modifying. And the status codes are similar,
- 36:09but not the same. Like, yeah, I remember just thinking, Oh, there's, there's get and there's post
- 36:13and post is where you submit stuff back in the day. Right. And what's a put in. Yeah. I mean,
- 36:17cause I, and I mean, I remember, you know, so I had a project where I needed to build an API and I
- 36:22didn't know rest framework very well. And I was just so upset that it was hard to learn when I just
- 36:28wrote a book on Django. Why is this hard to learn? And it's hard to learn because APIs are a whole big
- 36:34bag of stuff and authentication is a hard thing. And I, and I made the point in the talk that I even asked,
- 36:39I said, we talk a lot about headers and understanding what is an HTTP request and response,
- 36:43like actually look like I asked the audience, I said, what's the bare minimum header I need to
- 36:48include? Because in practice, there's so much cruft in there that you never even look at.
- 36:52One of them is authentication headers. And even in that audience of, you know, over a hundred people,
- 36:57first of all, almost nobody answered the question. You know, these are like the creators of Django.
- 37:02And then I think maybe four or five people got it right. You know, the answer I, a question I asked
- 37:07was, is it zero one, two or more? And you know, it's a trick question on purpose. It's just a
- 37:12question to say like, nobody really knows it's in the headers because we don't need it until we need
- 37:15it. The answer is for a get request in HTTP 1.1, you need one, which is, you need one thing,
- 37:24which I'm forgetting what it is. It's like a loud host or something. You know, so it's a trick
- 37:28question, but it's, it's this point that even the experts of this, you know, the abstraction exists
- 37:31for a reason. But yeah, so that's that, that's, that talk was on. It was actually a pretty
- 37:35advanced talk, but it was my personal frustration with learning how to build APIs.
- 37:41You seem to, you have this habit of like, I go through this experience and then the sort of
- 37:46making it all whole and well against write a book about it, right?
- 37:49Yeah.
- 37:50Because your other book is on restful APIs with Django Restway Mark.
- 37:53Yeah. It's pain driven development or something. I mean, you know, there is an argument. I think
- 37:57it's true that the best time to teach is when you're learning it because I, you know, I always make
- 38:01notes of, and that actually brings up, you know, I'm the issue I have now with text-based
- 38:05stuff is this idea of like happy path programming, right? Like if I were sitting down with someone,
- 38:10I would want to show them how to mess things up. Like I would mess, I mess things up going through
- 38:14my own books, trying to do it from scratch. So how do I, you know, how do I comfort the reader and make
- 38:19them understand that these are normal and these are actually interesting and important, but not
- 38:22overwhelm them. Cause I don't want to just give you the recipe and say this, then this, then this,
- 38:27then this, I want to mix it up a little bit. But I think that for me, the big challenge of tech
- 38:32writing is breaking beyond, you know, this, this, this, this, this, this, this, it's, it's
- 38:37putting some empathy in there. It's trying to predict one or two things, but not too many
- 38:41so that the reader feels like they're on, you're on their side and you kind of understand.
- 38:45So, yeah. So in that, in that talk, you know, I started off saying like, what is the web?
- 38:49What is the internet? Like I built it up even for that advanced crowd. Cause I think it's
- 38:54important to do that. I mean, I even, I talked about custom user models, which in the Django world is
- 38:59a big, big deal that Django has this built-in user model that everyone swaps out for a custom user
- 39:03model, which again, you don't find out until you're well into your Django journey and you want to change
- 39:08your user model and you go, Oh, I can't.
- 39:10Right. So this is like, if you have a users in your website, there's a prebuilt model that has
- 39:16prebuilt fields that just comes with Django, but you don't have to live with it. Yeah.
- 39:20So it's a legacy issue. So Django has this fantastic built-in user model,
- 39:24but the very first time you run migrate, it links up with the admin and throughout the rest of the,
- 39:29you know, the framework. And it's very, very difficult to unwind that. And so there's been
- 39:34a progression where people used to use profiles and now you can do a custom user model, which is
- 39:39basically just a, just a copy of it. And then everything works. Okay. And I actually, I was
- 39:44really heartened that when I gave that talk and I demonstrated how to do the custom user model,
- 39:47cause that was a whole separate thing that I have a couple of popular posts on. I said,
- 39:51why isn't there a simple way to do this? Like, you know, everyone seems to know how to do this,
- 39:56but like the official docs do a pretty complex implementation. In my opinion, they use abstract
- 40:00base user instead of abstract user, which we could talk about, but people, I don't know if they care
- 40:05about that, but even, you know, I won't say who it is, but someone who's very, very, very accomplished
- 40:11in the Django world came up to me after my talk and said, Oh, I've been doing user models the old way.
- 40:15I didn't realize the new way could be so simple. I should do it that way,
- 40:18which I think speaks, speaks to the, you know, humility of true masters, but also just, we're all learning,
- 40:24you know, it's, it's worth covering the basics because you just can't assume the experts know
- 40:29anything. There's too much to learn to know.
- 40:31Sure. Yeah. It sounds like a really interesting talk. What was your experience? Like, what do you
- 40:36learn from, from doing this presentation and being with these folks?
- 40:39Yeah. It just humanized things for me. I mean, it was, it was, I thought a lot about whether
- 40:43I wanted initially submitted the talk because I wanted to go, but I'm self-employed. So I didn't
- 40:47have the funds to pay for it. But if you get accepted for a talk, you don't have to pay for a
- 40:51ticket. I decided to do a 40 minute talk instead of a 20 minute talk, which is way more than twice the
- 40:57effort. So I probably spent about a month of time on the talk and I gave it Django Boston first.
- 41:02But yeah, it just made my own understanding rock solid. Even though I'd written the book,
- 41:06I thought I really knew it. And I was like, Ooh, there's a couple of edge cases.
- 41:10Yeah. It was a, it was a blast. It was really fun to, to see the people I know,
- 41:14to see how welcoming everyone is, to go to the talks to, you know, I met people who'd read my
- 41:18book because, you know, you probably have this too. For me, I just see numbers on a screen. It's,
- 41:23it doesn't feel different having one reader or, you know, a thousand or 10,000, you know,
- 41:29and it doesn't really feel different. So to, to get that validation was, was a confidence boost.
- 41:34I think that it actually, I think it, it's a confidence boost, but it also,
- 41:38at least for me to go to conferences like that and meet folks like that, which I,
- 41:43it's one of the things I absolutely enjoy and look forward to and try to make a lot of time to do.
- 41:48It just reminds me like there are real people actually getting like real value
- 41:53from the work that I do. And it feels like to me, like you and I are speaking right now and that's
- 41:59just, we could just be doing this in a coffee shop or over a beer or something. Right. But
- 42:03there's lots, lots of people listening who, you know, maybe this is helping in some way. Right.
- 42:08And, and having that experience, getting there and interacting with people is, it's really wonderful.
- 42:12I suspect, you know, most people. Yeah. Yeah. It's like this, it's like this for days. So it's really nice to,
- 42:18yeah. Yeah. Most people who just work on projects, right. Like Django rest framework,
- 42:23for example, or API star, right. Tom Christie had a booth a while ago, like 2017, I think maybe 2016.
- 42:31I can't remember which, but you know, it's like, Oh, the, all these people are coming to talk to me.
- 42:34It's so amazing. And just, I think we all as contributors to the community feel that on one
- 42:38hand. And then on the other, I definitely think it humanizes it a lot of, especially for beginners
- 42:44because they, they see the tutorials, they see the code and it's like the humanity is largely stripped
- 42:49away. And it's like just down to the essence of what do I need to do? And the human side of it is kind
- 42:54of not there until you meet the people. Yeah. And the human side, especially if Python and Django is
- 42:59fantastically giving. And, and I think you also, you know, I took away to how, how fragile Django is.
- 43:05It's easy to think of it as this amorphous thing, you know, with millions of users, but Carlton Gibson
- 43:10gave a fantastic keynote. So he's the Django fellow. So it's a halftime position. He's co-maintainer of
- 43:17Django rest framework, talking about the fact that it's really about a half dozen people who really make
- 43:22Django go. And then maybe another dozen more, and that drops off to, you know, one-offs. So as
- 43:29as robust as it is, it really relies on a lot of these unsung heroes, largely doing it unpaid.
- 43:35And so it's, it's a little scary, but it also is, you know, humanizes it. And you realize these are
- 43:40people doing it because they want to, to be helpful and people contribute in different ways. I mean,
- 43:44I think about, you know, how can I most contribute? Like there's certain things I'd love to do some
- 43:48core contributions, but I think doing the teaching I'm doing now is also important and, you know,
- 43:53you can only do so much, but yeah, that's for sure. So people should go to conferences.
- 43:56They're not scary. People are really nice.
- 43:58Yeah. Some of my favorite times of the year are actually going to a PyCon and other,
- 44:03other events like that. So people, if they're out there listening and they haven't gone,
- 44:07you should definitely look into going if you at all can. It's really a great experience.
- 44:11Yeah. And they, they do try to have financial support, you know, you have to apply, but they
- 44:15try to make it as welcoming as they can. So try not to be scared off by the sticker price.
- 44:20Yeah, for sure. So we talked about your books and some of the techniques in there and just the,
- 44:26ideas about teaching programming and Django and so on, what are maybe some of the other
- 44:31resources for learning Django you'd like to put out there for people?
- 44:34So there's websites. There's Vitor does simple is better than complex, which is a fantastic site.
- 44:39He's also started doing videos on YouTube. I think he has two series, which are fantastic.
- 44:44Michael Herman, who was one of the original founders of real Python has a site testdriven.io.
- 44:50It's not Django, but it's Python, Flask, React, Docker. And he has like, I have a Docker Stripe
- 44:56tutorial on, on test driven. That's a great resource. Nige has a, you know, there's only,
- 45:01there's only three books updated to 2.1 in Django and I've written two of them.
- 45:05The other one is by Nige, building your first websites. That's fantastic. So yeah, the, the,
- 45:10the usual stuff, I don't think there's, you know, there isn't a Django screencast. Well,
- 45:15there's GoPro or go Django. Yeah. I think there should be more stuff, but those are, I guess those
- 45:19are my greatest hits for stuff. There's, you know, two scoops book. Yeah. I'm curious for you,
- 45:23like, what do you, are there, you know, you're in Python, but maybe not as deep in Django as I am.
- 45:28What, what, you know, when someone says, I don't want to learn Django, like, where do you point them?
- 45:32Yeah. I honestly, it's, it's a bit of a challenge as well. I've, there's a couple of like playlist
- 45:37courses on, on YouTube. Yeah. The, the two scoops book is pretty good from Danny, but yeah, I don't
- 45:45have a ton of resources. I point people at actually. Yeah. Yeah. Corey Schaefer has a really good YouTube
- 45:51series. It's new. I guess I understand more now why it's hard to keep up with it, but I sometimes think,
- 45:56you know, millions of people use this. Why isn't there more out there? It is interesting,
- 46:00right? I mean, I know the answer, the answer is it's crass to say, but the answer is money
- 46:04is because you make more as a programmer than you do as a teacher. So, you know, I think you have to
- 46:08really, really want it or really take a hit to commit yourself to a teaching career. There,
- 46:13there are people who are the outliers, but you don't need, you know, 30 Django teachers,
- 46:18right? You really need like two. That's true. Once there's two or three top resources in a thing,
- 46:22it's kind of, that's, that's kind of solved the problem. And we were touching on this before we
- 46:26hit record, but to be a developer requires one set of skills to be a teacher requires a second set of
- 46:33skills to be a teacher doing independent content on the internet, either in book form or video form
- 46:40requires like a third set of skills. And I would say, you know, the farther you go down that path,
- 46:46the more it requires skills that most developers don't have, which is marketing.
- 46:50Yes.
- 46:50Not in the dirty, gross marketing sense, but you, you have to be able to get the word out to people
- 46:55because it, it almost doesn't matter how good it is. There's this layer of, you have to let people
- 47:01know, or it just doesn't matter, which is unfortunate, but that's how it is.
- 47:04Yeah. You have to let people know and you have to keep doing it for a long time.
- 47:07I'm guilty of, you know, email marketing. I don't do any, you know, I give away the,
- 47:12the online versions, the first couple of chapters, I should definitely throw up and require an email.
- 47:16It's challenging. I mean, you know, I'm doing the podcast, so that's marketing for me anyways,
- 47:21speaking as marketing, but it is, it does. Yeah. It feels dirty to a lot of developers. I mean,
- 47:26but I look at it like, you know, your stuff is good. You need to tell people about it, right? Like
- 47:29you think about a movie star, they spend more time marketing a movie than they do making it. And
- 47:35it's gone in a couple of weeks. So when I think of that versus, you know, a course that has to be
- 47:41updated or a book has to be updated every year. It doesn't sound so bad, but I think that the
- 47:46challenge is that marketing doesn't feel as good as coding or teaching.
- 47:49Yeah. And it's something most people just have no experience in, right? So you're an expert in this
- 47:54one thing and you need to use this other skill to make it successful. And this other skill you have
- 48:00no experience in. And I think it's a little bit of a, I think it's intimidating as well.
- 48:05Yeah. But I think you just have to put out good stuff or my, you know, my personal goal for next
- 48:10year is to do more with less. Like I feel like I've, you know, this year is almost three books,
- 48:15DjangoCon talk, major project, a couple dozen articles on my personal site that get some traffic.
- 48:21I've just been pumping content out and I need to personally, you know, figure out email marketing.
- 48:26I need to keep my stuff up to date and just be smarter about it. I'm aware of that. I'm actually
- 48:33kind of looking forward to it as a little bit of a break, but yeah, that's the number one,
- 48:36the number one challenge for developers who want to make a career doing stuff is, is content. And I
- 48:41could list a number of people I think are amazing teachers and they just don't have a heart for doing
- 48:45marketing and that's why they're not able to do more of it.
- 48:47Yep. Absolutely. So I did want, it took me a moment to look it up, but did want to come up,
- 48:51but you talked about the core developers and there not being that many people who are actually
- 48:57contributing day to day in Django and that makes sense, but it's, you know, it's kind of standard
- 49:01open source. I mean, 12 people, that's actually a lot compared to many open source projects.
- 49:06I was going to say, double check, double check my numbers. I know, you know, Carlton went over,
- 49:09I know it was a half dozen that really do it and something like that. Yeah.
- 49:12Yeah. Yeah. Sure. At least the scale sounds pretty right to me, but there was a post by James
- 49:18Bennett called core no more, which is about restructuring the core developer relationship
- 49:25and definition to try to bring more people in to contribute to Django and really the impression
- 49:32of having core developers and other developers, it means a lot of times the other developers don't
- 49:38feel worthy or have the power to actually make changes or start contributing. So the Django team
- 49:44is trying to reorganize how they're doing this to help break down some of those barriers. And I think
- 49:48that's pretty interesting. So I'll, I'll throw his article into the show notes as well.
- 49:53Yeah. I think, you know, so a couple of the keynotes were from, you know, non-traditional
- 49:57background location developers. Django is very aware of it. They're working hard. It's still, I think
- 50:03all six are white males like you and me. So it's, and you know, from, you know, Australia,
- 50:10North America, Europe. So yeah, they're very aware of it. Just the representation, even though
- 50:14there's huge communities that use it outside of those places and the core distinction. Yeah. It's,
- 50:19it's a hurdle. I mean, I haven't done a contribution to core Django. I mean, I'll be honest, it's a little
- 50:23bit intimidating for me, right? Like who am I to, yeah, to change something?
- 50:26Well, and it's such a long running, highly polished piece of software that it's not like,
- 50:33oh, we're just going to, yeah, obviously does this wrong. We'll fix that. Right. Like a lot of
- 50:37the super low hanging fruit has been picked. I've thought a lot about this. There's really two
- 50:42types of things you can do. One is to fix like a highly technical problem. Like for example,
- 50:47Django switching over to async. That's what it's 2.1. It'll be 2.2 next year. And then 3.0, 3.0,
- 50:53we'll start a switch over to async. So there's a lot of work to be done there. That's technical.
- 50:57And that's true. That's a, that's a fresh path sort of, right?
- 51:00Yeah. But that's like a technical challenge, but then there's all these gray areas, you know? So
- 51:05for example, when you start a new Django project, I think you should automatically default the user
- 51:10into using a custom user model. Why do we have to configure it? And actually I talk, spoke online
- 51:16with Tom Christie, the creator of Django rest framework. And he, that was his suggestion. I
- 51:19was saying, why don't we go under the hood and change it? And he said, well, why don't we just
- 51:23change the start project command, which is the command that you use to run a new Django project?
- 51:27That's a great idea. I should probably do that. But you know, that's an example of that's not
- 51:31changing what's under the hood. That's changing kind of how it's used. And that's potentially a
- 51:37bigger benefit to the community, but that's a harder thing to get buy-in on because people have mixed
- 51:43feelings. Whereas, you know, oh, let's make it async. That's a little more binary. So those are these,
- 51:48these two big buckets of, you know, kind of gray areas that Django people can agree would,
- 51:53could be better maybe. And then there's more pure technical challenges. And I think the latter are
- 51:58actually a little bit easier to solve for that reason.
- 52:01Sure. You know, some of these changes, they sound really easy, but they have far ranging consequences.
- 52:06And so there's always like, sure, you could change the template to just generate this model. And it
- 52:11would, I could do that this afternoon. Like, why don't we just do that? But then all the documentation
- 52:16has to be written. All the screenshots got to be retaken. All the tutorials have got to be,
- 52:20I mean, just like, you know what I mean? There's-
- 52:22Well, for you and me, yeah.
- 52:23Yeah, yeah. There's this sort of knock-on effect of, it looks like a small feature,
- 52:30but then it becomes major. And I'm not saying it's not worth doing it. I'm just saying it,
- 52:33a lot of times they look much simpler and quicker than the full-on externalities of it. You know,
- 52:41like it's knock-on effect across the community.
- 52:44Right. And that's why you need newcomers who don't know and don't care about that. And we'll go ahead
- 52:47and do a patch and like get this started because, you know, the core developers are well aware of
- 52:51these, some of these issues. And if someone just came in and said, boom, here it is, I think a lot
- 52:56of them will be solved. You get a little bit of fatigue, I think, with some of the same issues over
- 53:00time. So you need, that's why new blood is really important.
- 53:03Yeah, for sure.
- 53:04If you ask to a person, if you ask, you know, the Django core team, do they feel like amazing
- 53:08developers? Almost none of them would say yes. They would all have their own version of imposter
- 53:12syndrome, which I think is something beginners don't really realize is that everyone feels this.
- 53:17It's just how it is in our field. And it's not unique.
- 53:20Well, there's just too much to know. Like 20 years ago, you could pretty much know all of C++,
- 53:25but try to know all of the packages on PyPI, right? You just, you just can't, right?
- 53:30And this is a programming thing. Like I live in Boston, I'm surrounded by doctors. You know,
- 53:34nobody says, oh, you're a, you're a pediatrician. Why don't you go do heart surgery?
- 53:38Right. But it's like, oh, you're a PHP programmer. Why don't you go do Golang? Like the expectation
- 53:43is, is there. And I think partly it's, we put it upon ourselves because we're all self-taught and
- 53:47we love doing it. We're like, well, I could learn that. But the reality is, you know, even Python,
- 53:52right? Like a lot of readers of my stuff have never done web before, even if they're, I'm sure,
- 53:57much better at Python than I am. It's just a different realm. But yeah, it'd be nice. You know,
- 54:01it'd be nice if those, those lines were a little more clearly defined. So we didn't beat ourselves
- 54:06off about, you know, cause there's a progression of learning where you say, okay, I'll build a
- 54:09website. Okay. HTML, CSS. Okay. Now what now JavaScript. Okay. Now, now deployment. Okay.
- 54:15Now web framework. Oh, I gotta go learn Python or Ruby. Okay. Learn that. Okay. Now I gotta learn
- 54:20Django. Okay. Now I gotta learn testing. Like it just, oh, I gotta build, oh, and then you build Django
- 54:25and you find out, Hey, guess what? Everything is about APIs. Nobody cares about monolithic web stack.
- 54:29You go, oh, okay. Now I gotta learn API. You know, it just never ends.
- 54:33Yeah. So yeah, the web is especially hard though, because you're usually programming in four or five
- 54:38different languages at once. You're doing Python or some other server side framework language. You're
- 54:44doing probably some kind of data access. So SQL or Mongo query language, something like that.
- 54:49You're doing CSS, you're doing HTML, you're doing JavaScript, and then you have the infrastructure.
- 54:54You have all these things. It's not just, you know how to program in Python and you're good.
- 54:58Right. And I think also I realized at DjangoCon is that, you know, most people who do professional Django,
- 55:04they just do Django. You know, I was kind of shocked that they didn't know JavaScript very well,
- 55:09but it should make sense, right? Like they, they don't do JavaScript, right? Like all those things
- 55:13you mentioned, when you start off, when you say, I want to build my first web application,
- 55:16you think you have to do everything. If you go join a company, nobody wants a generalist,
- 55:19unless you're, you know, the software architect, they, you get very specialized very fast,
- 55:24but the challenge, right, is that the world doesn't change around you. So even if you're doing right,
- 55:27Django for Django APIs for three years, you know, it's Angular to view to react when you want to go
- 55:32build your side project. You, I think there's enough people who will say I'd pay 50 bucks to have
- 55:36someone like you explain to me how to use this thing rather than waste all this time. But yeah,
- 55:42so that, again, that was another humanizing thing for me being like, oh, wow. Like I just assume
- 55:47everyone, you know, knew 12 languages, like the back of their hand, including JavaScript. But you know,
- 55:51there's, that's not the case, right? People are human. Yeah, absolutely. Definitely interesting
- 55:56conversation. I guess we should probably leave it there. We're probably running a little low on time.
- 56:01Cool books. Nice talking to you about teaching and learning. I think those are two sides of the
- 56:07same coin, which is pretty interesting. Yeah. Yeah. Thanks so much for having me on. Yeah, you bet.
- 56:11Now, before we get out here, there's the final two questions I always ask people. So if you're going
- 56:15to write some Django code, what editor do you use? I hate this question, actually. I think it's a
- 56:21question that interests you and me and it's incredibly off-putting to beginners. I use VS Code
- 56:26because it's free. I was just in a university that's using my book and they're using PyCharm,
- 56:30which I don't know very well. And I was blown away at how awesome PyCharm is, but also kind of worried
- 56:35that they don't know how to use Terminal because it's all built in and they don't have to worry about
- 56:39virtual environments. So that's the trade-off you make. So, you know, I think I probably would use PyCharm
- 56:44if it was just me, but because I teach and I want to keep it accessible, I use VS Code. And,
- 56:48you know, if you get your plugins right, you can mimic a lot of the functionality.
- 56:52Yeah, that's cool. Yeah, VS Code's coming on super strong. And then notable PyPI packages?
- 56:57So Django, well, PyPI packages. Yeah, Django REST.
- 57:01They can be Django ones, that's fine.
- 57:02Django REST framework is not part of Django. People don't realize that. It's a separate thing. I guess
- 57:08the big one I would say is Django all off for user registration in Django, which we didn't really
- 57:13touch upon, but is somewhat complicated. If you want to dig in and do it yourself, that's great.
- 57:17If you want to just get up and going with user registration, Django all off is a popular and I
- 57:24think great place to start with that.
- 57:26Yeah, that sounds really cool. I guess I do want to throw out just this one package that I ran across
- 57:30recently. I think we'll maybe help some folks called Django Hunter. Are you familiar with that?
- 57:35Yeah, yeah. Please mention this. Yeah.
- 57:36Yeah. So it's easy, especially as a beginner, you're trying to juggle 5,000 things in your head.
- 57:43Okay, is Linux set up right? Am I logged into this? Have I got the database connection right? Is the
- 57:48firewall set correctly for that? That you might accidentally push out some feature of Django
- 57:55turned on that you don't actually want turned on, like having a full on debug mode, but also
- 58:00other settings as well. So there's this project called Django Hunter that will go and look
- 58:05at your project and tell you if any of those things are happening to it, which seems pretty
- 58:09helpful.
- 58:09Yeah, absolutely. And actually, that whole toy app to production is what my third book is on,
- 58:14and it's really not a straight line at all. So it's fantastic to have tools like that.
- 58:18Yeah. And when is that coming out? Well, how about this? What's the title?
- 58:22I know, I'm happy to answer that. So initially, I took pre-orders for it for the first time. And I just
- 58:29yesterday, I'm laughing because just yesterday, I emailed a couple hundred people and said,
- 58:33look, I'm just not going to hit the deadline. It's causing me anxiety. It's going to be done
- 58:36when it's done. And I felt better, but also kind of bad about that. But I got so many nice emails
- 58:41from people just humanizing for me that people are supportive. So April, I can't see how it would
- 58:47take that long, but I'm now saying April. But the short answer is it'll be done when it's done. And
- 58:52I don't recommend authors assign deadlines to their projects.
- 58:56Sure.
- 58:57What's the title?
- 58:57Django for Professionals.
- 58:59Okay, cool. It sounds like another good project. I'm sure it'll be excellent. All right. So final
- 59:03call to action. People are excited to learn Django or teach Django. What will you tell them?
- 59:07Check out my books. There's a lot of good books out there, really. Any of the ones that are up to
- 59:11date are probably pretty good. Personal site, wsvincent.com has a lot of articles. I mean,
- 59:16if you want just an overview of Django, there's an awesome Django repo that I maintain with links to
- 59:22lots of stuff that I personally think is good. Yeah, that's what I'd say. I wish there were an
- 59:25easier answer, right? I wish you of all people, Michael, could say, here's where you go. Because
- 59:31it's somewhat telling that even you struggle a little bit with Django.
- 59:34It's true. It's true. All right. Well, thank you so much for being on the show, Will. It was great
- 59:40to chat with you and fun to bounce these ideas around.
- 59:43Great. Thanks for having me.
- 59:44This has been another episode of Talk Python To Me. Our guest on this episode was Will Vincent.
- 59:51And it's been brought to you by us over at Talk Python Training.
- 59:55Want to level up your Python? If you're just getting started, try my Python Jumpstart by Building
- 1:00:0010 Apps course. Or if you're looking for something more advanced, check out our new async course that
- 1:00:06digs into all the different types of async programming you can do in Python. And of course,
- 1:00:11if you're interested in more than one of these, be sure to check out our Everything Bundle. It's like
- 1:00:15a subscription that never expires. Be sure to subscribe to the show. Open your favorite
- 1:00:19podcatcher and search for Python. We should be right at the top. You can also find the iTunes feed at
- 1:00:24/itunes, the Google Play feed at /play, and the direct RSS feed at /rss on talkpython.fm.
- 1:00:31This is your host, Michael Kennedy. Thanks so much for listening. I really appreciate it.
- 1:00:36Now get out there and write some Python code.
- 1:00:38We'll see you next time.