Latest / Talk Python To Me / #305: Python community at Python Discord
Transcript
- 0:00People often ask me how they can find a Python community to be part of,
- 0:03maybe a discussion forum or a Slack channel. This week, we look at one of the most active
- 0:08communities, Python Discord. It's Python on a Discord server, but much more than that too.
- 0:13You'll meet Leon Sandøy, who along with a team of folks runs Python Discord.
- 0:18Join us on this episode of Talk Python To Me, number 305, recorded February 17th, 2021.
- 0:26Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries,
- 0:44the ecosystem, and the personalities. This is your host, Michael Kennedy. Follow me on Twitter,
- 0:48where I'm @mkennedy, and keep up with the show and listen to past episodes at talkpython.fm,
- 0:53and follow the show on Twitter via at talkpython. This episode is brought to you by Linode and us.
- 1:00Leon, welcome to Talk Python To Me.
- 1:02Thank you. Thanks for having me on.
- 1:04Yeah, it's great to have you on. You're doing such interesting work in the community,
- 1:08and I'm excited to just give you a chance to share what you're doing with the world. It's
- 1:13cool what's going on over at Python Discord, and it's a lot bigger than I think people realize.
- 1:18Yeah, especially the last year, it's completely taken off. It's quadrupled in size over the last
- 1:24year. Wow.
- 1:24And we have 150,000 users now, 100 members of staff, and we're involved in all sorts of conferences and
- 1:32helping out in the ecosystem overall, I think. It's starting to become a big deal. I'm really
- 1:38excited to be part of it.
- 1:39Yeah, I would say that's fantastic. Now, before we get into the main topic,
- 1:42let's hear a little bit about you and your background. How did you get into programming in Python?
- 1:46It's an interesting story. When I was six, my grandpa bought me my first computer,
- 1:51and he was like an autodidact. He was an engineer, like a petroleum engineer, and he learned all sorts
- 1:59of stuff on his own time, and he wanted me to get into computers. And I started learning a little bit,
- 2:03but I never picked up programming because the consensus in the community where I grew up was
- 2:09that programming was this thing that you needed academics to do. You needed that education,
- 2:15you needed that university background, whatever. Like, it was mathsy, it was complicated. It's not
- 2:19something that a young person could do. And growing up in the 90s, that was a little bit more true then
- 2:24than it is now, but it still wasn't true. And I went a different way, and I ended up in music.
- 2:29I started studying music when I was a little older, and I kind of gave up on my dreams of, like,
- 2:34being a computer engineer. I even dropped out of school, never finished my education, wanted to be a full-time
- 2:39musician. That didn't work out. Turns out, it's not very well paid, and you'd really have to kind of get lucky.
- 2:44Yeah, it's a tough one, right? It's fantastic if you can make it, but it's not easy.
- 2:50I gave it a good try. I learned a lot.
- 2:51Yeah.
- 2:51But ultimately, I went back to, like, IT. I did, like, customer support. I did, like,
- 2:56operations, stuff like that. And my sweetheart, my love, she got me this book. This was, like,
- 3:0314 years ago. As almost like a joke for my birthday, she got me a C++ book. Like, I don't know what to
- 3:09get you, but you like computers, right? And I sort of, I had this reaction, like, you don't know what
- 3:14you've done. Like, this isn't for me. I don't, I can't do anything with this. This is for people who have
- 3:18the academics. All these preconceptions flared up, and I just felt like it was stupid. But she insisted
- 3:23I give it a try, and I read this book on the plane ride, and it was, like, simultaneously an epiphany
- 3:30that, like, holy shit, I can actually do this. I like this. This is logical. And at the same time, I was pissed
- 3:36because I felt like my whole life people had been lying to me saying that I couldn't do this, and that I had,
- 3:40like, disregarded it. I'm starting, I was 21. I could have started 10 years before that.
- 3:45Yeah, I've been wasting my time because I had this misconception, right?
- 3:48I think a lot of people labor under that misconception that, like, that programming is something that you
- 3:52can't easily, like, that's something that people do after a university degree or whatever. But that's
- 3:57just really not the case, especially today.
- 3:59Yeah, especially today. There's so many resources. Like, you talk about getting a book in the 90s,
- 4:04and I got, I can't remember what my C++ book I got in the 90s, but it was fantastic. But it was just a
- 4:09book. And if you got stuck, well, you read the chapter again. You know what I mean? And that was it,
- 4:13right? It was like really hard. Now there's YouTube, there's online courses, video courses,
- 4:19there's communities like Python Discord. The support that is there is much to all this stuff that you're
- 4:25talking about. It's more true now than ever.
- 4:27Yes, exactly. In my involvement in Python Discord, I'm trying to be part of letting people understand
- 4:32that that's true, like being that support system to help people get into programming, even though
- 4:37they're young and inexperienced, that it is possible. You can come hang out with us,
- 4:42we can help you get into Python, learn how, you know, take your first steps into development.
- 4:46I think that's important. Because I, yeah, I'm a little upset that that wasn't,
- 4:50that I didn't take that path earlier.
- 4:52I didn't have quite the same experience, but I had a similar experience where I thought,
- 4:55oh, this is interesting. I would be cool. But it's, there's no way I can do that.
- 4:59Yeah. Well, when did you start?
- 5:00I started doing C++ programming my senior year in college for a research project,
- 5:06because I had kind of been good with computers, but I didn't really consider myself a programmer.
- 5:11So I just, you know, I pursued other things like science and whatnot and math, and I just
- 5:16finally got into it. And the thing that really made me realize, like, this is something I really
- 5:21like is I remember working on these research projects, and it was a math research project,
- 5:27but also required a lot of visualization and programming. And I would be really excited when
- 5:31I'm doing the programming part, then I have to get up some programming math, like I have to solve
- 5:36some of the math problems in code. I'm like, oh, this part is kind of boring. Okay, back to the
- 5:40program. I'm like, oh, wait a minute, the part that I'm supposed to be here for is the part I like
- 5:44Lee. So the programming is just super awesome. Yeah, so later as well. But yeah, it's better late than
- 5:49never, right?
- 5:50Yeah, that's sort of my story as well. Like, when I picked up, I didn't really like C++, I learned C,
- 5:55I didn't really like that either. I got a little bit into like game programming, I looked at C#,
- 5:59later Unity, and none of it really clicked with me. But when I found Python, it was like, you know,
- 6:05angel chorus, like, finally, I found my home, it was like the wool being lifted off my eyes,
- 6:10like I found my thing. And I started putting it in every facet, every corner of my life. Like,
- 6:15I was working in as I was an ops engineer at the time, working for an ISP. And I just started
- 6:21automating all of the boring stuff. I was like, yeah, Excel stuff.
- 6:25You get so much joy out of that, because it's those things that just grind on you every day.
- 6:30And then you're like, wait a minute, that can happen instantly and automatically go away.
- 6:35And then after doing that for a couple years, I realized that I was having way more fun writing
- 6:39the code than I wasn't doing anything else in my job. And I needed to just like pivot.
- 6:42Yeah.
- 6:43But it's hard when you don't have that any education, no real experience to find that first job.
- 6:48I applied like 50 places, I think before someone really gave me a chance. And they only gave me a
- 6:53chance because they were like, yeah, but we'll give you a tough technical interview. It'll be like
- 6:57several stages. You'll have to write a whole project and send it into us. This will take a
- 7:02week like to finish. But I got through it and they were impressed and they gave me a chance. And once
- 7:07you get that first job, at least here in Norway, where I'm situated, they basically throw jobs at
- 7:12you if you have a couple of years experience. I think that's pretty true in general. I think it's
- 7:16true in the US as well, where that first step is such a big one. But if you can get into the industry
- 7:21and like, oh, you know what you're doing, then all these opportunities open up. So I think anyone
- 7:26who's out there listening, who feels frustrated, like, oh, it's so hard to get that first job. Like
- 7:31that is the hardest career step you're ever going to make. Right. Because after that, it's just,
- 7:35it's so much smoother and easier. I think especially for people who are in other jobs, and they're
- 7:40looking to like change into development. It's tough. But once you have that foot in the door,
- 7:45it's amazing. Like I could pretty much change jobs today if I wanted to, to any number of other
- 7:50things. Yeah, absolutely. But what I want, because I love my job. Yeah. So the other question I'll
- 7:56ask at the beginning of the show, it's because it's really interesting to hear the perspective
- 7:59that people are coming from. Yeah. You know, are you a DevOps person? Are you a scientist? Are you a
- 8:04web developer? So what do you do these days? So I'm working for a company called Dignio. And we're a
- 8:10med tech company focused on remote care is the technical term for it. So essentially, we're the pitch is,
- 8:18did you know that hospitals and governments in general spend like a significant amount of their budget
- 8:24dealing with chronically ill patients who make up a minority of the actual patients who are being
- 8:30treated. So we're spending like most of our money on the fewest of the people. It's like the last one
- 8:35year of life is so expensive compared to the prior, you know, N minus one. Yeah. And then you have this
- 8:41shift going on in certain countries where like, the age groups are shifting. So there are more
- 8:46older people, and you need way more elder care. And it's expensive because the elderly often have
- 8:52chronic diseases. And again, that takes up an enormous amount of resources. So the main thing is
- 8:57they keep having to go to doctors, they have to go to hospitals to get like simple checkups and
- 9:02measurements. And so our solution is, well, they should do that from home. They shouldn't have to
- 9:07constantly be traveling around to places to like get their blood pressure measured or whatever. We can
- 9:13do that via Bluetooth and an app. Yeah. And then you can just deliver all of the metrics to the doctor
- 9:17and they can contact them if something changes, if it looks bad, right? Like so that they get the
- 9:22treatment when they need it, but they don't have to constantly be wasting their own time and the,
- 9:26well, the government's resources essentially on, taking the bus for four hours to get to the
- 9:32nearest, whatever stupid. So we're trying to solve that. Yeah. That's fantastic. And right now we're part
- 9:37of the COVID-19 thing. I mean, remote care plays a big role there. We want to keep people out of hospitals,
- 9:42obviously, and, and prevent, infection from spreading. So having them, you know,
- 9:48they're doing their measurements at home, they're reporting their symptoms and taking their own
- 9:52temperature measurements and stuff like that. And then the COVID-19 teams can just monitor them
- 9:57remotely. So we're working with the NHS and the UK, we're working here in Norway with, the capital
- 10:02and, with a bunch of hospitals. We're trying to get deeper into China. It's really exciting work.
- 10:08And I think that, you know, like ultimately it's, it's important work. It makes me sleep well at night.
- 10:12Yeah. But as to legitimately helping people, right? Yeah. Right. I think ultimately we're going to save
- 10:18lives. Like at some point you inevitably save a life because you're helping relieve pressure from
- 10:24these, like import, these critical systems. And, my husband, maybe that's especially true during a
- 10:29pandemic. You have to like keep the capacity open at hospitals and so on. Like, yeah. So anything you can
- 10:34do. I often think about what changes are going to stick after the pandemic is over or reduced.
- 10:41And what's just going to go back to normal. Right. I think that that kind of remote care stuff is going
- 10:46to stick. I think it's going to be one of the things like, why didn't we just do this before?
- 10:50Right. You really don't need to come in to say, are you still feeling fine? Yeah, I'm feeling fine.
- 10:53Here's my measurements that my wearable has been collecting. Yeah. It looks like you're fine. Right.
- 10:57And we've been around for 10 years. Like remote care has been around since the early 2010s,
- 11:02but it's like, as soon as the pandemic hit, it exploded. You've seen companies like assume and all of these
- 11:09people who specialize in having your doctor check up remotely. They're exploding. They're being
- 11:15propelled five, 10 years into the future in terms of like growth and opportunity. And yeah, that's not
- 11:20going to go away after the pandemic calms down. We're here to stay now. And I know firsthand that
- 11:26municipalities and governments are buying in not just like temporary relief for COVID-19,
- 11:31but more permanent solutions for, for remote care and monitoring. So this is definitely one of the
- 11:36changes we're going to see, I think, stick around. Yeah. And Python's powering some of that.
- 11:40Python's powering most of that. Our whole backend is Python, Flask. Our infrastructure as code is mostly
- 11:46in Python and also a lot of Terraform. I've been involved across the whole stack. We also use
- 11:52Angular for our front end. We have Swift and Android and Kotlin. So there's a big stack, but Python is at
- 12:00its heart running the backend that talks to all of the different platforms that their services use.
- 12:06Cool. Yeah. Very neat. Yeah. Sounds like a fun place to work. I was just going to say, before we move on to
- 12:10the main topic though, there is one other thing that I think you are quite notable for in the recent days.
- 12:16Yeah. I think I know what you're going to say.
- 12:19Yeah. Yeah. So you did this beautiful song called the Pep 8 song. And look at that. It's almost got
- 12:2430,000 views on YouTube, which is pretty amazing. I'll put the link into the live stream for people
- 12:29to check out. But yeah. What was the inspiration behind that? That was really well received.
- 12:32Yeah. So it was a team effort, right?
- 12:34That was a team effort. One of my admins, Daniel Brown, came to me with an idea. He said,
- 12:39you know, wouldn't it be funny if we did a version of Mad World, but instead of singing Mad World,
- 12:45you sing Pep 8. And the whole song is just about... So he just gave me the idea. And it was beautiful.
- 12:50I was like, yes, we need to do it immediately. I just got started. Yeah.
- 12:53I got some people involved in helping out to finish everything up. And my sweetheart filmed it.
- 12:59So it was great. We have an outreach team at Python Discord with Sebastian Seth in the lead. And he
- 13:07helped sort of like get it out there. And I think we really managed to somehow get it out there. I mean,
- 13:12this could have been a thing that nobody ever saw, but somehow it broke through.
- 13:16Yeah. Yeah. There's probably a lot of great stuff that got created and posted and like went nowhere,
- 13:21right? Yeah, for sure. No, this was fun. I can't really take much credit because it's just a cover
- 13:25of an existing song, but I've been making music since I was a teenager. And, you know, like I said,
- 13:30I tried to be a musician. So I cherish every occasion I get to actually sit down and make something fun.
- 13:35And like, especially when you can share it with a community and they like it. So most of the music
- 13:40I write, nobody will ever hear. Yeah. There's very few people. So this is just, yeah, it's been really fun.
- 13:45Yeah. Well, if you haven't heard the song, I'll put the link in the show notes. People should
- 13:48definitely check it out because it's, it's all about the, you know, don't use try except pass.
- 13:52Here's what you do with comments, all the stuff that you learn about in Pep 8 to write good Python
- 13:57code, but musical form. Isn't it bizarre how much music like connects with your memory?
- 14:03You know, like, like my daughters, when they were younger, they would sing songs. They would know
- 14:08every word. There was this biology teacher who wrapped the energy cycle of the cell, like mitochondria and
- 14:15all that. And like, she would study for biology by just listening to the rap about mitochondria. And
- 14:19you've got Hamilton, the musical, which so many people listened to and learned about like detailed
- 14:24American history, which they would think was so boring, but then it's in music form. So then I love it.
- 14:29Right. That's weird. Right. Animaniac song with all the states and the periodic table thing that was
- 14:34right. All of these are examples of, yeah, it's a, it's a vehicle for learning. I think it actually
- 14:39works. I love the Pep 8. It's really dear to my heart. It's one of these documents. I think that
- 14:44like, it's so perfectly explained sort of the culture of Python and it's well-written. It's easy to read.
- 14:50You should all read it too. Not just like, listen to the song. You should go read the Pep 8. If you
- 14:53haven't read it, it's very, very edible. Yeah. It's like the operating instructions for Python code.
- 14:59This portion of Talk Python To Me is sponsored by Linode. Simplify your infrastructure and cut
- 15:05your cloud bills in half with Linode's Linux virtual machines. Develop, deploy, and scale your
- 15:09modern applications faster and easier. Whether you're developing a personal project or managing
- 15:14large workloads, you deserve simple, affordable, and accessible cloud computing solutions.
- 15:19As listeners of Talk Python To Me, you'll get a $100 free credit. You can find all the details at
- 15:25talkpython.fm/Linode. Linode has data centers around the world with the same simple and consistent
- 15:31pricing regardless of location. Just choose the data center that's nearest to your users. You'll also
- 15:37receive 24-7, 365 human support with no tiers or handoffs regardless of your plan size. You can choose
- 15:44shared and dedicated compute instances, or you can use your $100 in credit on S3 compatible object storage,
- 15:50managed Kubernetes clusters, and more. If it runs on Linux, it runs on Linode. Visit talkpython.fm
- 15:57slash Linode or click the link in your show notes, then click that create free account button to get
- 16:02started. The main thing that we're here to talk about today is Python Discord. That's right. So
- 16:09Discord is something kind of like Slack, but more focused on the gaming community traditionally.
- 16:15Why don't you tell people what Discord is real quick and then Python Discord?
- 16:18Yeah. So they started out as sort of a competitor for stuff like TeamSpeak and
- 16:23they wanted to be that gaming platform, but then they've sort of pivoted because they've attracted
- 16:28communities that are way outside of that core market. And now recently they've rebranded to being
- 16:34just like a place for people to have good conversations like that local community feel like
- 16:38you have a sewing club or your local swim team, get a Discord. And it really is a solid platform. They
- 16:46have very high quality video conversations and every feature that Slack has and then some.
- 16:51Yeah. What I really like is you can just go in there and you could be chatting in a room or you
- 16:55could just say, click a button and like, let's make this a video call. And then it is, right?
- 16:59Right.
- 16:59It's really easy to sort of jump through the different mediums of communication there.
- 17:03But I think the thing that they nail that Slack isn't, I mean, Slack is really intended for these
- 17:08like small corporate teams so that you can have your own space. Whereas Discord is more for like
- 17:14open communities, right? So they want more people to join in. So it's got this discoverability aspect.
- 17:20You can grow your community as big as you want. On Slack, technically after you have a certain
- 17:25amount of messages, they tell you, well, now you have to like pay to unlock the content in this channel.
- 17:31And that's not suitable if you have a hundred thousand people in the community and they're
- 17:35charging eight bucks a head, like it doesn't work. So Slack's great for your work chat,
- 17:39but it's not really suitable for a massive community like Python Discord. So it's a really,
- 17:44really great place for that. A lot of tech platforms have moved to Discord as well.
- 17:49You have the Reactiflux people. That's a massive server. Pallets projects,
- 17:53the people who made the Flask and Click, they're on Discord as well. Many of the game frameworks like
- 18:00pyglet and Pygame was there up until recently. I think they may have disbanded that server, but
- 18:06yeah, there's a lot of tech there happening. Great communities.
- 18:08Yeah. Another thing that you talked about that's really interesting here is there's a whole way to
- 18:13program it with Python that allows you to sort of make it better like bots and other things, right?
- 18:18That's right. It's quite accessible to Python through this framework called Discord.py. So it's made by this
- 18:25guy called Danny. And it's fairly easy to work with. It's fully asynchronous. So in that sense,
- 18:31it's a little high level. You have to understand the async await syntax. Not everyone learns that
- 18:36their first day of Python. But once you get there, it's very nice. It uses a lot of uses type annotations
- 18:43in a clever way to convert the input that you send to the bot to something useful like a user or a channel. It uses lots of decorators. So it's actually quite a beautiful solution to that problem. And you can make very, very scalable bots that can be on thousands of communities at the same time, interacting with like millions of users without it falling apart.
- 19:07Yeah, yeah, very cool. Joe Banks out there in the live stream says at Python Discord, we'd hit the slack limit of around 1000, sorry, 10,000 messages in less than 10 hours.
- 19:18Yeah.
- 19:18Yeah. That's not a great long term solution, is it?
- 19:21No, it wouldn't work for us. Joe Banks, of course, being one of the co owners of Python Discord.
- 19:25Yeah, fantastic.
- 19:26Along with Sebastian Seth.
- 19:27Yeah, yeah. Very cool. So how'd this get started? Tell us about the community.
- 19:30About four years ago, I met Joe in this community. At that time, it had 200 users. And it was a very different place. It wasn't like nobody there really took it seriously. It was just a small server of people who were into Python.
- 19:44But then I guess there were a couple of us who started really seeing the potential that this had to be a great place to learn and to teach. And I've always believed that teaching is a fantastic way for me to cement my skills to improve my own skills. So I've always like tried to spend a lot of time teaching and tutoring, because I thought it made me a better programmer as well. And you know, like, it's a nice, wholesome thing to do.
- 20:09I totally agree. I think it does.
- 20:10And we kind of sold that to a lot of more experienced users, like you should spend your time here, because it's going to make you a better developer. And because it's a nice thing to do. And we started getting more and more of those people who were into that culture. I think at that time, I felt like I wanted to create something that was in opposition to my experience in the 90s. I spent a lot of time on IRC. And IRC was not a nice place. It was very toxic.
- 20:32Yeah, generally, if you ask the question, you were told it was a stupid question, and you shouldn't have asked it. And you were just sort of expected to know everything.
- 20:40And I think that people, you know, young people coming into that meeting that kind of toxicity on their first day, they could be discouraged from ever trying it seriously. So I think it's important to have a community where you're welcome with open arms, where like, we encourage stupid questions, and hold your hand through them, right?
- 20:58Yeah, and that's one of the things you said you're really trying to curate there at Python Discord is having a welcoming place for beginners, right?
- 21:05Yes, we've curated that with, I should say, extreme prejudice. So like, we've been extremely harsh in getting rid of any kind of toxic element, and just like rooting out anything that didn't fit into our idea of the culture.
- 21:19So the culture is wholesomeness, like full blast wholesomeness. And we just want to be the nicest little community on the internet, where nobody's allowed to say anything mean or disrespectful, because that's just doesn't have any place in like, your first impressions of learning to code.
- 21:36I think that should be a nice and warm experience. It's harder now that we're so big. But like, back then, it was easy, I could read every single message that was posted into the community, I could personally moderate everything that happened. And I did for a long while. But then as we grew bigger, we had to sort of build a set of staff members who agreed with, with our cultural values, our core values.
- 21:57And so and we started really growing because we were, it was important to us to reach out to more people, I guess. And we really believed in what we were doing. So we were doing creative stuff, like we looked for partnerships with other types of communities.
- 22:09We even found a different Python community that were roughly the same size as us. And then I had a meeting with them and convinced them to merge with us, which isn't really a feature in discord. So what we actually did was we just mothballed the other community, removed every channel left a link to ours, tried to like funnel all of their users into our community.
- 22:28All right, right. If you come here and you find it empty. Yeah, where everyone's gone. Yeah.
- 22:32And then we took their staff members and invited them into our staff. Some of them are still there. Some of them are fantastic. Actually, the one of the owners, Sebastian came from there. And then yeah, so so we've done that we partnered with the subreddit, our Python quite early, got in touch with Andrew Phoenix over there, who runs the show, and got involved there. And I think we got a lot of traffic via Reddit. We had some pretty good SEO, search engine optimization.
- 22:56Reddit is really interesting, right? There's a lot of cool stuff happening with Python on Reddit, but also Reddit can be a little bit harsh, like the people there can be a little bit rough. Yeah, for various reasons. So it's a bit of a mixed bag. You got to be careful, right?
- 23:07You do. But I think the thing that happens, though, when we were when people found us through really through just googling us, but they would Google not specifically for us, they would Google Python discord, thinking, hey, what's you know, like, is there a discord for Python? But we decided, hey, you know, what would be good is if we just double down on that.
- 23:26And use that as our name, get the domain Python discord.com, put it everywhere. Like if we are Python discord, then that's the thing people Google, they're going to find us. And that really worked, I think was a sort of a creative way to get our names out there. So yeah, we started really attracting people. And then we just kept partnering up with people. We got listed on Python.org slash community.
- 23:47There's a couple of people out in the live stream comments on the community thing. So Robert Robynson says the community is the best thing for beginners to advanced developers. Yeah, 3OS says there's no room for toxicity. I think that really is great. Robert also not as harsh as Stack Overflow, which is interesting. But how much do you think that the culture of Python itself matched with the programmer community that you guys are running?
- 24:09Say like if it was Java or C++, they have slightly different backgrounds, right?
- 24:14Yeah. So I think it makes a difference.
- 24:15It does, because these are the people that we attract, right? Like the staff members, they come from, from a place of, of understanding that Python has this kind of culture. And I think that we would have attracted a different set of staff members.
- 24:28So by Python establishing, they've been amazing at building a really strong culture for Python, I think. And inclusivity has been like a really strong fighting point for them, I think.
- 24:42So that means that when we find these advanced Python users who are already renowned in their own way, they're, you know, like full-time Python developers, they're speakers at conferences, they're library maintainers. They're really nice people, generally. Like most of the people I meet in this community, they're already on board with what we're trying to do.
- 25:01So there's this synergy between the Python culture and our culture that's really played in our favor, I think.
- 25:08Yeah, I would think so as well. I mean, there's the Brett Cannon quote, like, I came for the language, stayed for the community type of thing.
- 25:14Yeah, exactly.
- 25:14Yeah. What have you done to try to keep that zen of that community as you've grown to over 100,000 participants?
- 25:22So the main thing that, because now that we're getting so big, we have a big staff and running a big staff of 100 people is work. We had to start treating it almost like a startup. So being a staff member at Python Discord is a job. Like, it's real work.
- 25:38We have meetings, we have several meetings a week, we have meetings with the admins, with the leads, we have an all hands meeting, we have project meetings for certain projects that we're pursuing, we have a roadmap that we follow very carefully and plan out with the admins.
- 25:51Many of the admins have a domain that they look after. So like, this guy is responsible for moderation and one person on maybe events. And that means that there's a bit of ownership. And through the entire staff, we've been like really actively perpetuating this focus on culture, right?
- 26:09And they all really agree with it anyway. So it's not like a hard sell. But by motivating our staff to follow that sort of ethos, it bleeds out to the rest of the community naturally in everything that we do there.
- 26:21Like, I can't personally follow up all the stuff that we do. But it naturally happens through, I guess, a form of leadership.
- 26:26Yeah, yeah, fantastic. So three through us, as I joined Python Discord for a question, I'm still here for almost a year later. Don't regret a single day. That's, that's awesome.
- 26:35It's really nice to hear stuff like this.
- 26:36Yeah, it sounds like a super cool community. People can go in there and talk about different topics, I imagine, right? Like, we're gonna talk about Flask. There's a Flask section you want to talk about getting started. There's probably something for that.
- 26:47Yeah. So we've organized it so that there's a topical channel for a bunch of different topics that are basically domains. So we have like an async channel, we have web development, where you can ask, sure, Flask. Even if you have a JavaScript question, you're welcome to ask it there.
- 27:02We've got, you know, a place for game development, frameworks, that kind of stuff. And there's also some general channels where you can talk about just about anything. And then beyond that, for people who just are looking for help, we built a system on top of Discord that's kind of unique to deliver help channels, almost like a ticketing system.
- 27:19You come in and you claim a channel of your own, a help channel, and then in that channel, you can ask anything you want. And then you will be assigned sort of as the owner of that channel and people will come and help you.
- 27:30Yeah. And you said that with this many people, you have to do like sort of a load balancing type thing to make sure that people can have some help, but that doesn't get overwhelmed and sort of partition it. You want to talk about that a little bit?
- 27:41It's been challenging. We used to have just like, oh, they're generic help. That was a channel.
- 27:46Now it's just streaming by like tailing a log. Yeah.
- 27:49Suddenly it was like three channels because there were so many people at the same time and you couldn't, nobody could ask anything. And then it grew to, I think, eight that it's most. And we were just like, we can't keep scaling like this.
- 27:59We need to figure out a better solution. So we came up with this rotating channel claiming system. It's all run on the thing I mentioned earlier, discord.py.
- 28:07We wrote all the code for this. Members of the community volunteered, you know, like there are tens of thousands of lines of code in our bot that's directly responsible for running the community,
- 28:17running all these systems on top of the vanilla setup that discord gives us.
- 28:22It's a really powerful thing. You know, when you run a community full of programmers that uniquely you can then put them to work doing all this stuff that other types of communities would never be able to do because they just don't have that amount.
- 28:33Yeah.
- 28:34Right. So many creative and wonderful people are willing to invest their free time to make something awesome for that.
- 28:41I really, I'm lucky to be surrounded by so many active contributors. I mean, we've got dozens of people help build us.
- 28:47Yeah. I do think that having this programming skill, it's, it's almost like being a magician, right? You can think of this idea and you're like, you know, I can make that happen.
- 28:54Yeah.
- 28:55I just, I got to think about it a little bit more and then it'll exist. And there's not many other things like that.
- 29:00No, you're right.
- 29:00So much of the creative stuff, actually, you've got to, eventually the rubber meets the road. You've got to create a thing, right? Like if you're a chemist or you're an engineer, like you can create, you can imagine things, but eventually they got to get built.
- 29:12But for programmers, it's just sort of more thinking until it exists. And it's, it's a really cool to see like communities putting that to you. So like, Oh, I have this idea. What if the bot could do this? Well, you know, here's the source code.
- 29:23Right. You could do that. Yeah. It's like a superpower. I think one person who knows how to code in a community, it can be like a wizard who, who makes stuff happen. And I have a hundred wizards. So like I can do whatever I want. Pretty much. It's amazing. It really makes the difference. I think that makes that's that little extra cherry on top that makes this community really shine.
- 29:42Yeah. Well, and the fact that discord has an API and doesn't try to like lock it off and make it impossible to sort of do extra stuff. Right.
- 29:50Right. I mean, it's not by any means trivial, but there are good packages out there that abstract all the pain away and most of the pain anyway.
- 29:57Yeah, absolutely. Yeah. Super cool. So one of the things that you all have been doing is you've been running different kinds of events.
- 30:04Yes.
- 30:04You want to tell us about some of the events and things you got, you've done and maybe we'll do in the future.
- 30:08Absolutely. So I think a lot of people come to us with a question or to find some help or some guidance, but then we want them to stay.
- 30:15And one of the ways that we try to do that is to always have something going on. And the events is our way of like having an activity always happening in the community.
- 30:24So we started with we created a second bot that was just for fun. And then we had like monthly events like a Valentine's event or Halloween event where we would invite people to solve these simple problems.
- 30:37So for the Halloween event, we would say, OK, I want you to write a spooky movie recommender.
- 30:42That's just a function. Right. And so we provide the bot and the infrastructure for the bot to run on.
- 30:47You just write a command for the bot. It's really just a function that returns a spooky movie. Right.
- 30:53That's fairly easy for people to do. And so we get people willing to take on the task.
- 30:58And then we filled up the spot with all of these things. So every month we would have a theme and then we would get more people involved in that.
- 31:04But here's the tricky part is we would force them to commit it to GitHub.
- 31:09It would go through reviews. We were kind of harsh reviewers.
- 31:12Sometimes we will give a proper review, but we do it in a very educational way, I think, where we explain very clearly why something needs to change.
- 31:21If it needs to change, we have continuous integration systems and continuous deployment set up on all of these things so that, you know, the code has to lint properly, has to get through, has to match the PEP 8, basically, and run tests and all this stuff.
- 31:36So it sounds easy when you start off. Yeah, you're just writing a simple function to return a spooky movie.
- 31:42But then actually we're stealth educating these people on how to work on like an open source framework.
- 31:49Right. Like inside of a context.
- 31:51Right. You're teaching them all the engineering workflow stuff.
- 31:54Uh-huh. The soft skills.
- 31:55Linting, CI, yeah, GitHub.
- 31:58Precisely.
- 31:58All that kind of stuff.
- 31:59And I think that that stuff is amazing to know if you want to go out there and work in the field.
- 32:04You have to know these things, but there aren't that many places online that will try to teach you those places.
- 32:08Yeah. Well, it's also all the difference between is this a real programmer or someone who just has like learned a little bit about the language, right?
- 32:15Like whenever I was doing interviews, you could always sort of tell, is this person really in the community?
- 32:20Do they kind of know the moving part?
- 32:23You know what I mean?
- 32:24Like, because I would interview people and they would sometimes just make up stuff that they know.
- 32:27I'm like, you don't actually know this, do you?
- 32:29I could tell that this is not a thing, right?
- 32:31And I think having those skills depends how you get into programming.
- 32:34But a lot of people come into Python.
- 32:36They don't come through the, I went to Carnegie Mellon for four years.
- 32:39They come through the, I got inspired.
- 32:41I got a book or I got some kind of thing where I started learning programming.
- 32:45And I've been mostly on my own, but I'm trying to get into the world of programming.
- 32:49And, you know, no one tells you you need to learn about continuous integration.
- 32:52Right. Exactly.
- 32:53Or unit testing frameworks or what have you.
- 32:56Talk Python To Me is partially supported by our training courses.
- 33:01Have you tried to learn Python but got stuck or lost focus?
- 33:04We know how it feels to try and jam fact after fact, loop construct after turn hair expression into your head.
- 33:12At best, it's boring at worst, it can turn you off programming altogether.
- 33:16That's why we built our course Python jumpstart by building 10 apps.
- 33:20This course guides you through carefully planned applications.
- 33:23It starts simple, but progresses to quite real apps.
- 33:27Best of all, you won't be learning dry facts.
- 33:30You'll be learning like the pros do by building real applications and learning in context.
- 33:34If you want to start building with Python, just visit talkpython.fm/course to get started.
- 33:40Actually, we do the same thing when we interview for my job.
- 33:45We often focus on the soft skills.
- 33:47We try to like, you know, if we can determine whether someone writes a good commit message,
- 33:52that tells you a lot about them, even though it's not strictly, you know, the thing that we're actually looking for.
- 33:57We're looking for like talented programmers, but the two things are slightly linked in a way.
- 34:03Often one indicates the other.
- 34:04But yeah, so that was our first sort of our first step into events.
- 34:08And then it grew from there.
- 34:09I had this idea.
- 34:10I started a code jam and I wanted it to be a unique thing because again, we're a lot of people do code jams and they're mostly like game jams.
- 34:18Give us a quick, what's the elevator pitch?
- 34:20What's a code jam?
- 34:21So a Python discord code jam or just a code jam in general?
- 34:23In general.
- 34:24In general, it's you have a week, you have to solve a problem.
- 34:28You don't necessarily know what the problem is before you start solving it.
- 34:31Maybe you have to solve it within a specific context.
- 34:34So like a framework or a language, something like that.
- 34:37Like use React to build a game, 2D scroller game in a week, something like that maybe.
- 34:42Something like that.
- 34:43And so we wanted to do a spin on this to activate our users to do something fun for a week.
- 34:47But again, I'm trying to like do something that nobody else is doing.
- 34:51So my spin was you have to do it with a team of strangers, not on your own, not with some people, you know, you have to get out of that safety net, out of your comfort zone and solve a problem in a setting that you might see in an open source project or in a job.
- 35:06Right.
- 35:07Yeah.
- 35:07Because one of the challenges can be, there might be these people who've done this before, right?
- 35:11Like these groups of people, we all go to college together.
- 35:13We were roommates.
- 35:14Now we just go do these events because they're fun and we still do them together.
- 35:17But if there's like a tight knit group of four people that say, okay, you do the database, I'll do the UI, you do it back in, go, right?
- 35:23That's not the same thing as, you know, a couple of people.
- 35:26I want to be part of it too.
- 35:28Like we'll find some random folks to meet up, right?
- 35:30So you're kind of trying to equalize that a little.
- 35:32Yeah.
- 35:32They would come in and annihilate everyone.
- 35:34And I want people to be uncomfortable.
- 35:37I want them to do something hard and to come out of it, having learned how to overcome.
- 35:41Those challenges, right?
- 35:42Yeah.
- 35:43So that's the pitch is, is that we team you up with some people you've never met.
- 35:47We give you a framework.
- 35:49Let's say you have to write a Django app.
- 35:51And then on the day you start, we tell you, oh, and by the way, it has to be thematic of climate change.
- 35:57Or we had one where we said that the theme was this app hates you.
- 36:01And so we asked people to make apps that hated the users.
- 36:04I think I've used some of those.
- 36:05Super fun.
- 36:06My favorite, I remember there was this one team, they made like a paint clone similar to MS Paint,
- 36:12but all of the different tools were terrible in their own way.
- 36:16So like you would use the paintbrush, but it would like drip paint on top of the canvas.
- 36:20And the pencil would, the tip would break and it would like, you'd have to constantly be like, oh, yeah.
- 36:27So each, each tool uniquely terrible, really fun.
- 36:30Now, recently we had one where the theme was early internet.
- 36:34And we had a team that created sort of a Windows 98 or Windows 95 clone in Django.
- 36:40And I was like, yeah, this is cool.
- 36:42And it looked fairly, you know, nostalgic.
- 36:45But then the actual thing inside of that Windows clone was that there was a working browser.
- 36:50And when you use the browser, they would intercept the HTML and like modify it to look like early internet.
- 36:58They would pixelate the images or, you know, like add filters and stuff to make it look old and kind of broken.
- 37:04It's really, really genuinely interesting.
- 37:07And you could go to any page on the web.
- 37:08So people do these amazing things within the limitations we set for them.
- 37:13It's really inspiring to watch some of the stuff.
- 37:16We actually, we make some videos on our YouTube.
- 37:18There are highlights videos.
- 37:19Yeah, here's, that's nostalgic.
- 37:21There are highlight videos on our YouTube that show off some of the projects that people come up with.
- 37:26We're going to release another one within a month or two for the one, the Code Jam that was last summer.
- 37:31So yeah, that's really cool.
- 37:32Yeah, we should link to those.
- 37:33Yeah, I think back to the early internet.
- 37:36Gosh, if you had modern tools in the modern tool chain, you could just blow people's minds.
- 37:41I mean, it was so bad.
- 37:43It was so incredibly bad, right?
- 37:45Yes.
- 37:47The Amazon ones are the absolute worst.
- 37:50You should all go and like look up what Amazon looked like in its first iteration.
- 37:54Hilariously bad.
- 37:55Yeah, it's, oh my gosh.
- 37:57Yeah, so these are some of the types of things you do, right?
- 37:59These events.
- 38:00Do you have any coming up?
- 38:01Oh, that's another one.
- 38:02We've been in, we've invited Pi Week, which is actually a 15 year old Python event.
- 38:07One of the oldest, probably the longest running game jam in the entire ecosystem.
- 38:11We basically offered to take it into our fold and help them advertise it, market it, and
- 38:18to put it together because they were stretched a little thin, maybe.
- 38:21And Daniel Pope, who runs it currently, Maeve, Lord Maeve, he's just become a father, I think.
- 38:28Busy with things.
- 38:30And that changes your perspective on free time.
- 38:33Yeah.
- 38:33Or changes your free time.
- 38:34He's a wonderful guy.
- 38:36I really enjoyed working with him on the previous Pi Week we ran last autumn.
- 38:40And now we're probably going to help him put one together.
- 38:43He's still running the show, but we help out in every way we can.
- 38:46So there's a Pi Week coming up sometime this spring.
- 38:49I don't know if a date has been announced yet.
- 38:50Then we have a code jam this summer.
- 38:52And in October, we run the Hacktoberfest events.
- 38:56December, we run Advent of Code together with the Advent of Code staff.
- 38:59There's basically something happening every couple months.
- 39:02What do people do to participate?
- 39:03How do they participate?
- 39:04If you're a member of the community, if you type exclamation mark, subscribe in the Bot Commands
- 39:12channel, you will be subscribed to announcements.
- 39:15We will basically will ping you every time something big is happening.
- 39:19So we will always let you know.
- 39:20There's also an event page on our website.
- 39:23You can usually see upcoming major upcoming events on the front page.
- 39:26There's an event sub page there that has everything listed.
- 39:29So it's fairly hard to miss if you're a member of the community.
- 39:32But yeah, the subscribe command for our bot, that will make sure that you will definitely
- 39:37be let know.
- 39:38Yeah.
- 39:38That's how we keep people informed.
- 39:39Yeah.
- 39:40Very cool.
- 39:40Sounds like a lot of fun for people to participate in these things.
- 39:43Another thing that you did recently that was noteworthy is you all hosted the core developer
- 39:50sprints.
- 39:51Yeah.
- 39:51That was interesting.
- 39:52We, I mean, we obviously, we love the PSF, the Python Software Foundation, and we have
- 39:57a core developer on the staff as well.
- 40:00Kyle Stanley, he's a core developer who works on AsyncIO.
- 40:04He's great.
- 40:05He's one of our moderators.
- 40:06And so he got in touch with me and told me that, well, because PyCon was canceled and usually
- 40:11they have this core dev sprint at PyCon, they sit together for a week and they just work
- 40:16on like CPython stuff together.
- 40:18I think a lot of people don't realize that when PyCon fell victim to the pandemic, like
- 40:24everything has, there's so much of that that happens.
- 40:27You know, in open source, you could work for years and never actually face-to-face have a
- 40:32conversation with someone you're working with, right?
- 40:34So a lot of those sprints, both for core developers and Python, but also for like Flask and Django
- 40:40and other groups would have these get togethers where people could come and contribute.
- 40:44And yeah, that kind of fell by the wayside, right?
- 40:46Yeah.
- 40:46I think that was a big, a lot of people took it quite poorly.
- 40:50I mean, that's like the highlight of their year.
- 40:52Many of them, if you're a core developer, the PSF will pay your ticket to come and hang out
- 40:56with them and do the course sprint.
- 40:58And it's like this big event.
- 41:00I would love to do that myself, sit down with some of these like the smartest people.
- 41:03I know.
- 41:04It'd be amazing.
- 41:05I always consider PyCon my geek holiday.
- 41:07It's like my chance to get away and just enjoy time with my friends who I only see at conferences,
- 41:12go to God, have dinner and beer with them afterwards.
- 41:14And yeah, I've never been because, you know, I had to cross the Atlantic to get there.
- 41:18So, but hopefully one day.
- 41:20Yeah.
- 41:20Someday soon.
- 41:21Hopefully.
- 41:22Right.
- 41:22So they canceled that.
- 41:23And so they were looking for an alternative way because they needed to do the core dev sprint,
- 41:27but obviously they had to do it remotely.
- 41:28They were looking into how they would host that.
- 41:31And I just suggested to Kyle that like, if you guys are interested, EuroPython did it on
- 41:37discord recently and we could host you.
- 41:40We could set up everything you need, all the channels, take care of like moderation.
- 41:45If you want to reach out to the community or something, we could put together a call or
- 41:49something like that.
- 41:50And they were interested.
- 41:51And eventually they voted in favor of doing that.
- 41:54So we had all the core developers, 40 of them at least, hanging out with us.
- 41:58We left them.
- 41:58I mean, they had their own sort of gated off area of the community where they did this.
- 42:04And we've done that for some of the other events, like FOSDEM mostly recently, we hosted
- 42:08their organizers and their talk, their speakers so that they have an area to be in without
- 42:13having to go through the hassle of like setting up their own community and managing and administrating
- 42:18all of that.
- 42:18So what's that look like in practice?
- 42:20They have their own channel.
- 42:22Yeah.
- 42:22Then they do like screen share for the presentations.
- 42:25Yeah.
- 42:25We just set it up so that all they got to do is just join.
- 42:28And then right at the top of the channel list is just all the stuff that's relevant to
- 42:32them.
- 42:33Nobody else can see it.
- 42:34Just the organizers and the members of that event.
- 42:37So for them, it almost looks like we've just set up a whole server just for them.
- 42:40And then at the bottom, if they want to, they can go and explore our public channels and talk
- 42:44to the community.
- 42:45And some of them did.
- 42:46And there was a lot of really good interaction with the other members of the community.
- 42:49But if they want to, and if they want privacy, which many of them did, they can just stay
- 42:55in their own like gated off area.
- 42:56So that's been one way that we've been able to sort of give back to the ecosystem a little
- 43:01bit and help out.
- 43:02And of course, they also chose to have a Q&A that they collected the questions from the
- 43:08community and they wanted to do a stream.
- 43:10And we put together the stream on YouTube for them.
- 43:12It's available both on the PSF's own YouTube and on ours.
- 43:17A full length, hour long, I think, core developer Q&A from questions from the community.
- 43:22Really, really interesting.
- 43:23I highly recommend it.
- 43:24That's fantastic.
- 43:25Yeah, it was really fun.
- 43:26We really love the PSF.
- 43:27We work with them on other stuff.
- 43:28Like they're looking for, you know, help get their announcements out there.
- 43:33We have quite a bit of reach by now.
- 43:35In part due to like our announcement channel.
- 43:37Sure, it reaches our 150,000 members.
- 43:40But there's also a feature where you can subscribe to, you can put our announcements into your community.
- 43:46And there's 2000 communities right now that sort of relay all of the announcements we make.
- 43:51So then that reaches an additional, I don't even know how many people.
- 43:55And then we've got Twitter and we've got this and that.
- 43:57Does that push notifications out to other Discord communities or some other types of communities?
- 44:03Is it like Discord to Discord?
- 44:05Oh, right.
- 44:06No, it's only Discord.
- 44:07Yeah.
- 44:07So there's 2000 Discord communities.
- 44:09Probably most of them are small, you know, 10 people who are friends or whatever kind of communities.
- 44:14But there are some that are rather big.
- 44:16Yeah.
- 44:17Yeah, yeah.
- 44:17That's very cool.
- 44:18So.
- 44:18Yeah, it seems like the community, like the core devs and the advanced channel.
- 44:22Yeah.
- 44:23Very nice.
- 44:23Yeah.
- 44:23Awesome.
- 44:24Quite cool.
- 44:25I guess one other thing that we could talk about that you guys are doing is you have some open source stuff.
- 44:29Like your bot, for example, is open source and so on.
- 44:33You want to talk a little bit about some of the code?
- 44:35Yeah.
- 44:35I mean, we have a lot of open source repositories and we try.
- 44:40So this is about Python Discord has to be a great place for beginners to discover programming and to get help and so on.
- 44:46But it also needs to be a place that's engaging for more advanced users.
- 44:49And one of the ways that we're doing that is to try to provide learning opportunities, even for people who have years of experience with Python.
- 44:56And one of the ways that you can improve your hone your skills and get better is to work on exciting projects that help the community.
- 45:03So we've open sourced everything.
- 45:05We're very transparent about how everything works.
- 45:07And there's a whole bunch of projects from the bots.
- 45:10There are three, four bots by now, I think.
- 45:12No, three.
- 45:13We've got the website, of course, and some microservices that interact with the website.
- 45:19Snekbox is an interesting one.
- 45:21That's a completely sandboxed Python evaluation tool.
- 45:25That's right.
- 45:25Yeah.
- 45:26So that we can have a command on the server where people can run actual raw Python code without them being able to like destroy all our servers.
- 45:35Because there's, of course, a risk associated with people running arbitrary code.
- 45:39Yeah.
- 45:39That's the danger of, hey, you want to test this code out?
- 45:42Click here.
- 45:42Oh, wait.
- 45:43The code I'm trying to test is, you know, sub process, launch, such and such.
- 45:47Yeah.
- 45:48Or whatever.
- 45:49Yeah.
- 45:49So we have like several layers of sandboxing.
- 45:52Like if it takes too long or if it uses specific parts of the standard library that might be used in a malicious way, then it just doesn't do it at all.
- 46:01But even if it does do it, it's inside of one sandbox that's inside another sandbox.
- 46:05And it's very, very safe.
- 46:06And this is open source.
- 46:07You can take this tool, Snekbox, and you can use it in your bot or in your website or whatever service you want if you want to be able to like safely evaluate Python code.
- 46:17So what are some examples like how this gets used in Discord?
- 46:21The Snekbox?
- 46:21We actually only use it for the bot so that people can evaluate code.
- 46:26But that function is very valuable because in help sessions, sometimes our helpers or people who are trying to explain something, they want to execute some code and show what the result is to sort of explain a concept.
- 46:37So someone's stuck on like, how does this work?
- 46:40Well, then they can just show them with a code example and it evaluates it right there.
- 46:44It's a very nice teaching aid, essentially.
- 46:46Yeah, that's quite cool.
- 46:48Yeah.
- 46:48Nice.
- 46:49Any other projects you want to highlight?
- 46:50Yeah, for sure.
- 46:51We try to do projects that aren't strictly just code as well.
- 46:55For instance, in our staff, we have some people who are involved in the DevOps side of Python Discord.
- 47:01We have a very modern DevOps architecture using Kubernetes cluster.
- 47:05Everything's its own containerized service.
- 47:08And some of us are like really learning how to do advanced, I think, industry standard DevOps by doing it here at Python Discord.
- 47:17We have media projects and branding projects of people who have graphic design skills.
- 47:22They come in and help us.
- 47:23They like say, say we have a Halloween event.
- 47:26Oh, you can come in and make like a spooky banner or something that we might put somewhere, right?
- 47:30Try to get people involved like that.
- 47:32Now we're making a lot of YouTube content like the Pep 8 song.
- 47:34That means we need editors.
- 47:36We need people who are good at animation, maybe people who can do sound music, all of these kinds of skill sets.
- 47:42We try to provide an avenue for them to involve themselves.
- 47:45And if you've got a unique skill set that I didn't mention or I couldn't even think of, then, you know, if you come and advertise to us, maybe we'll be able to find some creative way where we can put that to use.
- 47:55Yeah.
- 47:56Oh, that's a really interesting way to leverage the community.
- 47:58Not just the core programming skills, but the other stuff as well.
- 48:01Yeah.
- 48:02And I think it's really essential that we have this kind of approach because I think the thing that's difficult about running a community of volunteers is that if you run a business, well, I can like buy productivity.
- 48:15I pay you, you make me something, right?
- 48:17But when I have a community of volunteers, I can't pay you.
- 48:20I don't have any money to pay you with.
- 48:22So the only way I can get you to do something is to motivate you.
- 48:25And there's some intrinsic motivation in being part of something good and wholesome like this.
- 48:32I think the culture helps bring people in and like from an altruistic point of view, like they just want to help out.
- 48:38They want to be a good force in the universe.
- 48:41But ultimately, if you really want strong, directed initiative and motivation, I think you have to find like a synergy, a sort of a thing where your personal goals align with the goals of the community, right?
- 48:55So you want to do something for us that's good for you, but it's also good for us.
- 49:00That's the perfect way to motivate people.
- 49:02So by providing as many ways as possible for people to get involved like that, it means that people can come in and actually like build their skill set.
- 49:10Maybe they make something impressive and they can put it on their resume.
- 49:13They can go out and get a job.
- 49:14And we're very good at like trying to give people credit and help people out.
- 49:19I've personally been like a job reference for many of the staff members.
- 49:23I've written letters of recommendation, you know, stuff like that, because we really want people to come in.
- 49:28And if they invest themselves into our community and invest hours of work, I want them to get something out of it, like personally, because that's the best way that I can motivate them to keep working.
- 49:38Yeah.
- 49:38Does it cost money?
- 49:39Is it expensive to run the community?
- 49:42Like servers and bandwidth and all that?
- 49:44We've been lucky enough to be sponsored by everyone we needed to be sponsored by.
- 49:48So we have Linode as a sponsor.
- 49:50We've got Notion providing free documentation stuff for us.
- 49:55So with a bunch of different partners we've worked with and sponsors for prizes for the events like Adafruit, we've worked with DigitalOcean.
- 50:05JetBrains has been giving us licenses we can give away for a long time.
- 50:08Sentry is another sponsor that give us Sentry monitoring.
- 50:12So that covers our essentials.
- 50:14We don't pay for hosting because Linode is providing all the hosting for free.
- 50:19But we do have some expenses associated with the events.
- 50:22T-shirts that's sent out as prizes, this sort of thing.
- 50:25And some of that comes in via our Patreon.
- 50:30I'm really happy with this animated explainer video that we send to everyone who joins the community called Welcome to Python Discord.
- 50:37In that one, we went out and found some voice talent to do a voiceover for us so that we could get like that Kurzgesagt style voiceover.
- 50:45I specifically asked the guy, can you do a Kurzgesagt voice?
- 50:49And he was like, yeah, I can do that.
- 50:50Oh, nice.
- 50:52And I was so happy with the results.
- 50:53But that's an example of where we might have put in a little bit of money.
- 50:57Not that it was super expensive.
- 50:59He was very generous.
- 51:00Right.
- 51:00Yeah, that's cool.
- 51:01But it's not like super expensive to say like PyPI is really expensive to run if it weren't for the sponsors and the donations, right?
- 51:08Like $40,000 a month with bandwidth and stuff like that.
- 51:11Yeah, no, because like the majority of that bandwidth is, I guess, Discord is paying that.
- 51:15Right.
- 51:16And we're not paying, you know, like it's free to run a community on Discord no matter how big it gets.
- 51:20Yeah, that's cool.
- 51:21So essentially, no, it's fairly cheap to make ends meet here.
- 51:25And we try to put all the money that we get in straight back out to the community as prices or in giveaways or whatever we can.
- 51:32Because we're not trying to like make money.
- 51:35We're just trying to provide the best possible experience that we can for our users.
- 51:39Yeah, super cool.
- 51:40One thing that we talked about a little bit before we hit record that I think is interesting is you'd mentioned how some of the infrastructure and some of the ideas you get to apply and experiment with.
- 51:50Here are things that you can actually bring back to your day job, right?
- 51:55Where you wouldn't get a chance to say, oh, let's, you know, try this thing with Kubernetes or whatever it is you're doing.
- 51:59But you can try it here.
- 52:00And then if it works, like, oh, yeah, we tried this.
- 52:02Here's how it's working.
- 52:03I think there's this interesting interplay between like work, work, your main professional experience.
- 52:09And then these kind of more freeform places where you have more control to do whatever you want.
- 52:13Yeah, we try to encourage that kind of thing.
- 52:15Like we were now we're thinking about doing a rewriter for our API into FastAPI.
- 52:19It's currently a Django RESTful API.
- 52:22And the primary motivation for that is because one of the owners needs to learn FastAPI for work.
- 52:27Yeah, sure.
- 52:28That's a really good reason to do it.
- 52:30And of course, it gives us an extra benefit because it could use a rewrite.
- 52:34But probably we wouldn't have done it unless we had someone who was sort of personally motivated.
- 52:39So yeah, in a way, I think especially at the top of like the executive leadership, we try to use Python Discord as sort of a sandbox to experiment with stuff and learn skills that we can take with us to work.
- 52:52Yeah, it gives a lot of people experience with things that they otherwise might not get to touch because that API that they work on at work, it's been Django REST framework for five years.
- 53:01And there's no reason to change it.
- 53:02And they're not changing it because it works.
- 53:04Don't touch it.
- 53:04Yeah, exactly.
- 53:05I learned Kubernetes from Python Discord myself.
- 53:08And now I'm bringing it to work with me because we don't have that kind of sophistication there quite yet.
- 53:13And that's just one example.
- 53:14I've learned half of everything I know, I think, at Python Discord because, of course, I'm in a unique position of being able to do pretty much whatever I want there.
- 53:20Yeah, exactly.
- 53:21I think that's the secret to being on the cutting edge is you find these places where you can try things out.
- 53:28And then you have that experience maybe to bring back to more conservative type of environments.
- 53:33I think that this kind of way of using the community has been mostly available to the owners until we grew to this size.
- 53:40And now I'm trying to sort of expand that to the rest of the staff and anyone who wants to get involved.
- 53:44Like, please come and use us as a way for you to learn that next thing that you're thinking about learning.
- 53:50Like, maybe we can provide you an opportunity to, and you're really looking to get into making a great sounding audio.
- 53:57Maybe we have an opportunity for you to, like, hone your craft and practice.
- 54:01Yeah.
- 54:01Yeah.
- 54:02Very cool.
- 54:02All right.
- 54:03Well, I think that's about it for time that we have to talk about Python Discord.
- 54:06But congratulations on such a cool community, you and everyone else.
- 54:09I know it isn't just you.
- 54:10You're the figurehead for the community, right?
- 54:13Maybe in a way because I have a freakishly large beard and there's a small cult of personality around my lemon nickname.
- 54:22We have a whole set of emojis with lemons.
- 54:25Oh, nice.
- 54:27So it's sort of, but yeah, I don't know.
- 54:29We have a lot of really notable members of the community once you get to know them.
- 54:33There's so many great people involved.
- 54:34So it's just a wonderful place to be.
- 54:37Yeah.
- 54:37Fantastic.
- 54:38All right.
- 54:39Final two questions before I let you out of here.
- 54:41Yes.
- 54:41You're going to write some Python code.
- 54:42What editor are you using these days?
- 54:44So I use PyCharm and I use a little bit of VS Code on the side when I need to do something really simple or whenever I want to do this code collab thing.
- 54:54So PyCharm has code with me and there's the live sync thing on VS Code where you can actually like live collaborate on files.
- 55:01I've been getting into that.
- 55:02It's really cool to work like two people live editing some code together.
- 55:07And PyCharm's been really good to me from day one.
- 55:10I just really fell in love with it since I started using it.
- 55:13It has so many features that I need, especially as a full stack developer who is into a lot of web stuff.
- 55:18And I work on JavaScript and HTML and I interact with databases a lot.
- 55:23So once you're thinking about writing, PyCharm has native support for Django and Flask and can really make sense of a lot of these files in ways that the other editors would need plugins and stuff to do.
- 55:36You just get so much out of the box.
- 55:37Yeah.
- 55:38It's 100% agree with you.
- 55:39Absolutely.
- 55:40Yeah.
- 55:40Very, very cool one.
- 55:41All right.
- 55:41And then notable PyPI packages.
- 55:43What do you want to give a shout out to there?
- 55:45We've mentioned a couple of the stuff that we've made here at Python Discord.
- 55:50I want to also mention that.
- 55:52So maybe that's a little narcissistic of me to talk about my own packages when you ask me this.
- 55:57There's a lot of packages I really love out there.
- 55:59But you may not have heard of stuff like we have async Redis cache, which is this.
- 56:04We found out that working with Redis from an asynchronous context can be a little complicated sometimes.
- 56:10So we made this PyPI package that makes it extremely trivial to work with Redis from, for instance, a Discord bot.
- 56:16That's where we use it so that if all you need to do is just cache some data in Redis so that you can access it later and, you know, like use it as a cache the way most people do.
- 56:26This is a godsend for working with it in an asynchronous way.
- 56:29Then I also have a personal project that I've been working on a lot lately called Blackbox.
- 56:35And it's in reference to the black box inside of a plane.
- 56:39Okay.
- 56:39So like the idea is if there's a disaster, you get the black box and has the stuff that you need to like figure out what happened and get back on track.
- 56:47And so black box is a backup system.
- 56:49It's designed to be extremely easy to work with, like abstract away all the painful stuff.
- 56:54And it's also designed to be really easy to contribute to.
- 56:57I've been like working on trying to make the most contributor friendly thing I can do.
- 57:03Big fat read me.
- 57:04Everything's like abstract classes.
- 57:06So if you want to contribute, you usually only have to touch a single file to write like a single interface basically for the thing.
- 57:13So what it does is you make a config file.
- 57:15You put connection strings into that config file.
- 57:18So say you want to do a backup of Postgres.
- 57:20Well, you write a single string that's like Postgres colon slash slash the username, the password.
- 57:25And then you put that in there.
- 57:27And now it knows how to talk to Postgres.
- 57:29It does all of that stuff for you.
- 57:30So now you've told it a couple of databases, say Postgres, Redis, MongoDB, whatever you've got.
- 57:36Then you tell it, where do you want to store that backup?
- 57:38Maybe you want to store it in an S3.
- 57:40Maybe you want to store it on Dropbox or something free like that.
- 57:43Well, then you just put in another connection string that describes how to talk to that service.
- 57:47And then lastly, maybe you want to be let know when that backup has been done.
- 57:52So then you can put in a Slack or a Discord connection string.
- 57:56And it'll send you a message and say, oh, I'm done with my backup.
- 57:59So the goal is for people to just install it off of PyPI and they can put it in a cron job or run it manually.
- 58:05And it'll just do the backup, store it somewhere in the cloud and let you know when it's done.
- 58:09I love it.
- 58:10That's really cool.
- 58:10And it looks like something maybe I could even make use of.
- 58:13I mean, I got MongoDB and I have backups for it.
- 58:15But this sort of fully automatic stuff would be cool.
- 58:18I've already got a Slack channel where I get notifications for like deploys and whatnot.
- 58:23It could just throw in like, hey, we did a backup next to that, you know?
- 58:25Well, it's really easy to get started with.
- 58:27So if, you know, like some people have like expensive paid backup services,
- 58:31and they'll obviously be much better.
- 58:33Like saving a complete snapshot of the entire database server is going to be better than this.
- 58:39But if you're just looking for something quick and easy,
- 58:41maybe you just want to store it in Dropbox or something.
- 58:44This is a great way to have like offsite backups for free.
- 58:47And you can set it up in 10 minutes.
- 58:49Very cool.
- 58:49All right.
- 58:50Well, that's quite neat now.
- 58:51Thanks for letting us know about that one.
- 58:53Yeah.
- 58:53Yeah.
- 58:53All right.
- 58:54Well, the live chat is blowing up with lemons and bot commands about your beard and things like that.
- 59:01So thanks everyone.
- 59:04But mostly just appreciation from the community, I think.
- 59:07So very cool.
- 59:08So final call to action.
- 59:09People are interested in being part of your community.
- 59:11What do they do?
- 59:12Right.
- 59:12So they can go to python discord.com or .org.
- 59:15And from there, you get all the information you need in order to join us.
- 59:19If there's also just discord.gg slash Python, that's us.
- 59:23Or you can even find it in the Python subreddit.
- 59:27So once you get into the community, you just ask around and we'll help you get started with whatever
- 59:31it is you want.
- 59:32You need help.
- 59:33There's help channels to ask.
- 59:34You join an event.
- 59:35There's lots of cool stuff going to happen in the next couple months.
- 59:39Get involved in Pi Week.
- 59:40It's really fun.
- 59:41You write a game.
- 59:42Get involved in the Code Jam.
- 59:43It's a unique experience.
- 59:45Yeah.
- 59:45And yeah, just come hang out with us.
- 59:47It's really, it's a lovely place.
- 59:49That's cool.
- 59:49It sounds like some of these programming examples and opportunities might be like more low key,
- 59:55more silly and fun rather than, you know, forms over data.
- 59:58Yeah.
- 59:58Yeah, exactly.
- 59:59Yeah.
- 59:59Cool.
- 1:00:00All right.
- 1:00:00Well, thanks for coming on and sharing what you guys are up to over there and it's been
- 1:00:03great to chat with you.
- 1:00:04Oh, it's been my pleasure.
- 1:00:05Yeah.
- 1:00:05See you later.
- 1:00:06All right.
- 1:00:06Bye, Michael.
- 1:00:07This has been another episode of Talk Python To Me.
- 1:00:10Our guest on this episode was Leon Sandøy and it's been brought to you by Linode and us
- 1:00:15over at Talk Python Training.
- 1:00:17Simplify your infrastructure and cut your cloud bills in half with Linode's Linux virtual machines.
- 1:00:21Develop, deploy, and scale your modern applications faster and easier.
- 1:00:25Visit talkpython.fm/Linode and click the create free account button to get started.
- 1:00:30Want to level up your Python?
- 1:00:31We have one of the largest catalogs of Python video courses over at Talk Python.
- 1:00:35Our content ranges from true beginners to deeply advanced topics like memory and async.
- 1:00:41And best of all, there's not a subscription in sight.
- 1:00:43Check it out for yourself at training.talkpython.fm.
- 1:00:46Be sure to subscribe to the show, open your favorite podcast app, and search for Python.
- 1:00:51We should be right at the top.
- 1:00:52You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:00:58and the direct RSS feed at /rss on talkpython.fm.
- 1:01:02We're live streaming most of our recordings these days.
- 1:01:05If you want to be part of the show and have your comments featured on the air,
- 1:01:09be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:01:13This is your host, Michael Kennedy.
- 1:01:15Thanks so much for listening.
- 1:01:16I really appreciate it.
- 1:01:17Now get out there and write some Python code.
- 1:01:19I really appreciate it.