Latest / Talk Python To Me / #132: Contributing to open source
Transcript
- 0:00Are you new to open source? Maybe you've been using it for a long time and never got around
- 0:04to contributing to it? Wondering how to get started? In this episode, you'll meet Anthony
- 0:08Shaw, Dan Bader, and Ronald Maravanica. All of these guys have been successful open source
- 0:13developers. I speak with them about how to find a welcoming project and what you need to know to
- 0:18get started. We also cover what open source project maintainers can do to help attract
- 0:23new and experienced contributors. This is Talk Python To Me, episode 132, recorded July 27th, 2017.
- 0:31Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem,
- 0:50and the personalities. This is your host, Michael Kennedy. Follow me on Twitter where I'm at
- 0:55mkennedy. Keep up with the show and listen to past episodes at talkpython.fm and follow the show on
- 1:01Twitter via at Talk Python. This episode is brought to you by Linode and Talk Python Training. Be sure to
- 1:07check out what the offers are for both of these segments. It really helps support the show.
- 1:11Hey, everyone. Before we get to the interview, I just want to share a little bit of the backstory
- 1:15with you real quick here. So right before the show started, something happened in Zimbabwe that made
- 1:21this really difficult for Ronald to be on the show. There was a citywide power outage where he lives.
- 1:27Unfortunately, that's something that happens every now and then. And right before we started recording,
- 1:32he had to scramble to find a place where he could just get in touch with us and get online. His audio
- 1:39might not be as good as he had planned. And I just want to let you know so you don't think,
- 1:43know, he didn't set up for this. Like he made heroic efforts to get onto the show. And I just want to say
- 1:48thank you, a special thank you to Ronald for that. And also, if you're thinking about the challenges of
- 1:53being a software developer sitting in the US or Europe or somewhere like that, where the power is on 99.99%
- 1:59of the time, and it's all a matter of just the code, think about battling things like power outages just
- 2:05to contribute to open source. Once again, Ronald, thanks for being on the show along with Dan and Anthony.
- 2:11And I want to make sure you guys got the backstory because we lose Ronald for a moment as he has to
- 2:16work around to find this some way to be on the show. Dan, Anthony, Ronald, welcome to Talk Python.
- 2:22Thanks. Thank you so much.
- 2:24Hi, Mike.
- 2:25Hey, everyone. It's great to have you here. It's going to be an adventure. We have, you know,
- 2:30three of you on the call. So we'll try to do our best to not step on each other's toes. But I'm really
- 2:35looking forward to our conversation about contributing to open source. And we want to take this
- 2:41from basically two perspectives. We're going to spend the first half of the show on how do you get started
- 2:46as a new person or a relatively new person to open source? How do you, how do you find a project? How do you
- 2:54just what are the steps of getting started at all? All right, when are you ready? Things like that. And the second
- 2:59half is about running an open source project and getting contributors and welcoming new people to your project.
- 3:05So that's sort of the roadmap for our project. But let's start with your story. Anthony, we'll go with you first. How do you get into programming in Python?
- 3:15Yeah, programming was probably pretty early on. I think I was 13 when I started coding for the first time. Python was definitely a lot more recently. It's three years ago now. I think it was.
- 3:25And I was actually working on an open source project called Lib Cloud. And I've been working on that ever since. And I wanted to make a contribution to the project, realized it was in a language that I didn't know how to write. So I sat down over what was a long weekend and basically took a few courses and learned Python, which was a great experience, really easy to learn.
- 3:45That has taken it to a whole nother level. Like I want to contribute to this project. I don't know this technology.
- 3:49I wouldn't I wouldn't I wouldn't generally recommend that path.
- 3:53That's awesome. It works well for you. OK, Ronald, how about you?
- 3:57Titan for me started is something which was very new. At that point, I was an intern and engineering intern at one of the international companies here called Unilever.
- 4:10When I was there, there was a project of people having problems with capturing downtime and stuff like that.
- 4:18So when I looked around, the only language that could fix that was Python.
- 4:24And it meant that I had to be involved in programming.
- 4:29So I looked around and then there was a scholarship where people were being taught Python for free by Equinite Wireless, which is a mobile company.
- 4:41Yeah. And six months later, I joined in the program.
- 4:47And that's how I started coding with Python since then.
- 4:51Right now, I'm a bit mixing the two, the engineering aspect and the developer aspect.
- 4:59But yeah, pretty much that's how I started with Python.
- 5:03Oh, yeah, that sounds sounds really cool.
- 5:05So doing networking type stuff, you're like, I got to talk to these devices.
- 5:09Maybe something more than bash is required or something.
- 5:12Cool. Dan, how about you?
- 5:15Hey, so I got into Python on a ski trip.
- 5:19I was going to university for computer science at the time.
- 5:22And a group of friends were going on the ski trip.
- 5:26And obviously, we were all a bunch of nerds.
- 5:28We didn't have any computers with us.
- 5:29But one of my friends, he brought this tiny little book like Learn Python in 20 days or something.
- 5:35Those ones that make all these promises that never really work out.
- 5:38Learn Python on your ski vacation.
- 5:41Yeah, exactly.
- 5:43And I just, you know, I've been programming for a while.
- 5:46And I just fell in love with this language.
- 5:49And funny enough, you know, the same friend also later on introduced me to who is now my wife.
- 5:55So, you know, this is quite the impact.
- 5:58It was a heck of a trip.
- 6:00Not on the same trip, though.
- 6:01But, you know, Python and got married.
- 6:03So, yeah.
- 6:03Got a lot of mileage out of that.
- 6:05Yeah, yeah.
- 6:05That's very cool.
- 6:06All right, guys.
- 6:07So, let's start on the very beginning.
- 6:10Just how do we get started contributing to open source?
- 6:14So, let's maybe start at a high level.
- 6:17Start from why maybe do you want to get involved in open source at all?
- 6:22Anthony, you want to take that to the first one?
- 6:24Yeah, yeah, sure.
- 6:25So, I guess how many of you out there actually use open source software?
- 6:30Well, everybody, I'd hope.
- 6:32I mean, Python itself is open source.
- 6:34All the packages that you use day-to-day are open source.
- 6:37And someone's got to maintain those projects.
- 6:39So, I don't think it's an obligation.
- 6:42But I think everyone really should think about the software that they're using, the software
- 6:47that they use every day, and actually think about giving something back.
- 6:51So, you know, maybe that's contributing a bug fix or doing some documentation.
- 6:55There's various different ways you can contribute to open source projects.
- 6:59But most of the projects on PyPI, for example, are all open source.
- 7:04So, yeah, I really think people should get into it as a way of helping improve the whole Python
- 7:09ecosystem.
- 7:10It's an interesting thought that you really, you don't exactly owe it, but you almost do.
- 7:16Like, you owe it to yourself to be a little more committed to the tools that run your life
- 7:22as a developer, right?
- 7:24Or someone in software.
- 7:25Like, if you were that involved to work with software every single day, a particular piece
- 7:29of software, maybe you should help a little.
- 7:32Just so much so that you, like, actually learn a little bit how it works and have a little
- 7:37bit more control over it.
- 7:39Yeah.
- 7:39And if you use a project in particular to a sort of very advanced level, I think at some
- 7:44point you're going to be frustrated with things which are missing or don't work properly.
- 7:48And contributing back to the project is a great way to fix it.
- 7:51Yeah, for sure.
- 7:52Ronald, how about you?
- 7:53What do you think some of the benefits of getting involved in open source are?
- 7:56Taking from, I would say, the African side of things.
- 8:01Yeah, just so everyone knows, you're in Zimbabwe, right?
- 8:03Yeah, I'm in Zimbabwe.
- 8:05Okay, great.
- 8:06So, I'd love to hear that perspective.
- 8:08Yeah.
- 8:08Yeah.
- 8:09So, most of the software that we use on this side, they come from other countries like
- 8:17India and the UK.
- 8:21So, what happens is companies pay a lot of money to use those softwares every month.
- 8:30And in here, we got experienced developers that can actually build those softwares.
- 8:36But there's this notion here that foreign is always best.
- 8:40So, to me, I got into open source trying to, like, show these guys that these softwares that
- 8:50you're buying, we are contributing to those softwares.
- 8:53So, that way, people can now try to look at you with the other eye that, wow, this guy
- 9:01is actually serious.
- 9:02Because the notion has been there for a long time that foreign is always best.
- 9:08But I believe that software should be meant for Africans, by Africans, if you know what I
- 9:18mean.
- 9:19So, basically, at the African side, the Zimbabwean side, that's why people should contribute into
- 9:27open source.
- 9:27I think that's a really interesting point.
- 9:29I think open source has this ability to basically make this software something that everybody can
- 9:37use.
- 9:37It's not, like, half a million dollar Oracle installation.
- 9:40It's something that you can go to the internet and you can get and you can get the source code
- 9:46and adapt it to whatever you need.
- 9:47And so, I think it's really interesting to think about how that works in places like Africa
- 9:53where it's not a little bit of money to buy some software.
- 9:58Like, because of the currency, this other software is extremely expensive.
- 10:02And this is also a way to, like, empower people there to say, like, we are building this software
- 10:07and if we need to or want to, we can fork it and make it our own, right?
- 10:11Yeah, that's exactly it.
- 10:12Get to that stage where we can build off software that can be, as Africans, build software that
- 10:19can be used worldwide and people are comfortable with them.
- 10:24So, there's a big push for tech startups in Africa.
- 10:49How do you think open source is affecting that?
- 10:52Do you think this is pretty much uniformly used within the tech startups around there and it
- 10:57makes it more possible for that whole thing to work?
- 10:59Okay.
- 11:00So, here the situation is different because, like I said before, the economic situation here is very harsh
- 11:08and people literally don't have time to do something that is not feeding their families, you know.
- 11:18So, for someone to contribute into open source and they are not being paid for anything for it, to them it's like they'll be wasting time.
- 11:31Of which, that's not the case.
- 11:35So, for tech startups, I think open source is helpful to, like, getting the experience and trying to get that quality that will meet the global standards.
- 11:54So, this is how open source now is affecting the tech startups.
- 11:59And now I have a little bit of some guys who I have joined into the open source community.
- 12:06And you can see from their project that things are moving forward.
- 12:11Because when you are in open source, you definitely need a lot of help from a lot of people, right?
- 12:19So, along the way, you get the experience and you get where you are messing things up, you know.
- 12:25So, to me, I think that's how open source can contribute to tech startups.
- 12:32Sure.
- 12:33Okay.
- 12:33Very cool.
- 12:34Let's see.
- 12:35Dan, I'll ask this question to you.
- 12:38I think one of the biggest challenges for people getting started in programming, or maybe they've been programming for a while,
- 12:45but in a more constrained environment, you know, standard corporate America, or something like this.
- 12:52They don't necessarily feel like they're open source developers, right?
- 12:56This imposter syndrome is a pretty real thing, especially for people learning a new technology or learning a programming language for the first time.
- 13:05What do you think about this imposter stuff?
- 13:07Well, first of all, I think it exists.
- 13:09And I think you're touching on a really important problem that's holding people back from contributing to open source.
- 13:16And, you know, either because they want to give back to society or because they just want to work on something cool.
- 13:22And, well, I guess the idea of this imposter syndrome, or what imposter syndrome is, is that, well, like you said, you don't feel worthy.
- 13:30And you're scared to put yourself out there.
- 13:33And this is exactly how I felt when I published my first open source project, you know, that I started and pushed it to GitHub and then actually posted the link to Reddit and Hacker News.
- 13:46And I was just sitting there, you know, I remember going to bed because I was in a different time zone.
- 13:52I remember going to bed and just like almost like lying there and shaking and like just in anticipation what would happen, you know.
- 13:58And I got up the next morning, checked my email.
- 14:01And it was almost like, you know, at the time I perceived it as my worst case scenario.
- 14:06You know, I had some like really experienced people shoot me down.
- 14:10And someone said, you know, this should have never been written.
- 14:13And like, who would use something like that?
- 14:15And I was like, oh, my God, like, sorry, guys.
- 14:18Like, what did I do here?
- 14:19And, you know, now looking back, I obviously have a way different experience or like a way different perspective.
- 14:25And I'm glad that I went through this.
- 14:27But, you know, the struggle is real.
- 14:28Like, absolutely.
- 14:29Yeah.
- 14:30Well, I also feel like part of the problem is when people are new, they look at the things that they know that are major.
- 14:37And you probably start using Django or Python or, you know, something really big and mature that there's no like low hanging fruit left.
- 14:49It is like all hard work.
- 14:51And like every little change has to be considered over all these use cases.
- 14:54And so it looks really, really hard.
- 14:57But there's thousands of projects out there that could use a little help, even with things like documentation or something.
- 15:01Right.
- 15:02Yeah.
- 15:02Yeah.
- 15:02No, I totally agree.
- 15:03I mean, what we're seeing there is like the equivalent of, you know, Elon Musk building his rocket ship.
- 15:09Or, you know, like we're seeing like the super fancy like cruise ship or the latest like BMW car and whatnot.
- 15:15And of course, like you can't compete with that because that stuff, you know, the Linux kernel was built on probably like millions of hours of work by hundreds of thousands of different people.
- 15:26It's highly polished.
- 15:27Yeah.
- 15:27And it's highly polished, you know, and it's the barrier to entry there is so high.
- 15:31But really what you should be aiming for is like the equivalent of building your own bicycle.
- 15:36Right.
- 15:36And then riding that around town.
- 15:38And like maybe you get like one or two other people are like, oh, yeah, that's a nice bike.
- 15:42Can I ride that?
- 15:43That's a good point.
- 15:43Oh, I saw your bike had a flat.
- 15:45So I fixed its flat tire.
- 15:46Yeah.
- 15:47Yeah.
- 15:47Yeah.
- 15:49Awesome.
- 15:49Yeah.
- 15:49So I'll put in the show notes something by Adriana Friend.
- 15:53She put a has a basically an imposter syndrome disclaimer, which is a markdown file you can include in your GitHub project that says, no, no, I really want you even if you're new.
- 16:03And here's the way in which I can help you.
- 16:04And we're going to switch to that just a second.
- 16:07But Anthony, let me ask you, what do you do you think you need to know Git or like how you talked about learning technology?
- 16:14Like maybe you have to learn how to do Git.
- 16:15Maybe you have to learn Git flow.
- 16:16You have to learn what GitHub is like.
- 16:18How do you get started in all that?
- 16:19Yeah, there's some great videos out there already.
- 16:21There's one that Scott Hanselman put together about getting involved in open source that talks about the workflow to create an account on GitHub, for example, how to raise a pull request and kind of some of the basics, the basic steps you would take.
- 16:36I'd say that you definitely need to know a basic level of Git because most of the projects, pretty much all of the projects that you'll come across will be based on Git for their source control.
- 16:47So I think if you don't know that already, I would go and learn a very basic level.
- 16:51Don't get into any of the advanced features and functionality of Git yet.
- 16:55That's definitely a minefield.
- 16:56But once you've kind of learned that, then, yeah, pick something simple.
- 17:00And the other thing I recommend people do is create a sandbox project first.
- 17:03So once you've created a GitHub account, then just create a project that's got nothing useful in it.
- 17:08You know, just add some files, make some changes, do some commits and use it kind of like as a bit of a sandbox to learn how to use Git and be familiar with it.
- 17:16And also raise a pull request against your own project, which you can do.
- 17:19And that gives you a good place to practice, I guess, and experiment with things without having to do it in your life.
- 17:27Yeah.
- 17:27Or make that part of your contribution, which then you have two different things you're trying to learn at the same time.
- 17:32Yeah.
- 17:33And there's a bunch of nice GUIs as well.
- 17:35Like, it doesn't have to be all CLI, command line driven stuff.
- 17:38It could be, you know, source tree or the GitHub tools or things like that.
- 17:43So that's nice.
- 17:44Yeah.
- 17:45There's maybe one great tool to throw in the mixture.
- 17:47It's called GitUp.
- 17:48GitUp.
- 17:49Personally, I feel like it doesn't get the recognition at this source.
- 17:52I think it's a great UI.
- 17:53It's a free open source tool.
- 17:55I think it's available for Windows and Mac.
- 17:58Maybe just Mac.
- 17:58But still a great tool.
- 18:00Yeah.
- 18:00Nice.
- 18:00Awesome.
- 18:01All right, Ronald.
- 18:02You talked about contributing to open source and some of the challenges people in Africa are facing.
- 18:09This kind of gives you a chance to equally show up in the international tech world, if you will.
- 18:16If you have a popular project or you make a big contribution, that can really make a big difference.
- 18:21How do you see, do you think contributing to open source will help you get a job there?
- 18:25Or is it just better for learning and then you've got to do something else?
- 18:28What do you see from your perspective?
- 18:29Okay.
- 18:30So one of the people that really encouraged me to get into open source is Mike Place.
- 18:38He works for SoftTech.
- 18:41And SoftTech, their business model is around open source software.
- 18:49So when he came here for our mentorship week, December 5th, mentorship week, we were just talking to each other.
- 18:57And he showed me all these emails of companies asking him if he wants a job.
- 19:05And these were like huge companies, you know, like Amazon, really huge companies.
- 19:11And what they would say is that they saw his GitHub account and they liked what he did.
- 19:19So despite the fact that open source, you can do it to get your skills to that level.
- 19:29I'm also doing it so that in the near future, I can get a good job.
- 19:35Honestly, I don't believe in moving in from the continent, going to other continents.
- 19:44Personal life, it's not fair for the people that live in that country.
- 19:48So open source is a way that you can stay in your country, but still do your project.
- 19:53And most of the time, the job you get, it will be a remote job.
- 19:57You don't require to relocate or stuff like that.
- 20:01Yeah.
- 20:01Open source definitely leads to more remote work.
- 20:04Just the nature of it.
- 20:06People are more willing to accept that rather than a standard developer job or something.
- 20:10Yeah.
- 20:10Yeah.
- 20:10Yeah, definitely.
- 20:11So to me, it's about getting the experience and also trying to get noticed out there.
- 20:18Okay.
- 20:19That makes a lot of sense.
- 20:20This portion of Talk Python To Me is brought to you by Linode.
- 20:24Are you looking for bulletproof hosting that's fast, simple, and incredibly affordable?
- 20:28Look past that bookstore and check out Linode at talkpython.fm/Linode, L-I-N-O-D-E.
- 20:34Plans start at just $5 a month for a dedicated server with a gig of RAM.
- 20:39They have 10 data centers across the globe.
- 20:41So no matter where you are, there's a data center near you.
- 20:43Whether you want to run your Python web app, host a private Git server, or a file server,
- 20:48you'll get native SSDs on all machines, a newly upgraded 200 gigabit network,
- 20:53and 24-7 friendly support, even on holidays, and a seven-day money-back guarantee.
- 20:57Want a dedicated server for free for the next four months?
- 21:00Use the coupon code python17 at talkpython.fm/Linode.
- 21:05Dan, I know you're asked frequently through your Pythonista cafe, through other things
- 21:11that you're doing, how do I get started in Python?
- 21:14How do I make my first big step so that I can get noticed and get a job?
- 21:18And you and I both answer these questions fairly often.
- 21:21What do you think?
- 21:21In my last position, the last job that I had, I spent time every week reviewing resumes and
- 21:27doing phone screenings and just interviewing engineers.
- 21:30And I would say that having a solid open source portfolio or just anything up there, it's
- 21:37definitely a credibility indicator.
- 21:39But I don't think it will ever fully tip the scales.
- 21:44I think rarely will people get hired purely based on their open source contributions.
- 21:50I mean, I'm sure you're always going to have the top 1% of people.
- 21:54If Linus Torwells is looking for a new job, well, I'm sure he's not going to have to look
- 22:00for a long time.
- 22:02But the average person...
- 22:04Yeah, I think it's similar.
- 22:04If you create something major like Django, Flask, or I mean, if there are like SQLAlchemy,
- 22:12for example, like Michael Bay, Bayer doesn't probably need to go and look for a job if
- 22:17he doesn't want to, right?
- 22:18You could lever those types of things.
- 22:20But, you know, fixing, adding a minor feature to even a popular project is not enough alone,
- 22:26probably, right?
- 22:27But it's one of the building blocks, maybe.
- 22:29Yeah, exactly.
- 22:29Like, it's not going to be enough alone, but it's still going to be helpful.
- 22:33And it's going to be...
- 22:34It's more of a long-term play, I think.
- 22:37You know, I get...
- 22:38Almost every week, I get a question of like, okay, how can I get more stars or likes on
- 22:42my GitHub project?
- 22:43And how can I do...
- 22:45Like, how can I promote this so that it will lead to me getting a job?
- 22:49And I think that is probably not the optimal way to go about it.
- 22:54I think, you know, what's probably vastly going to increase your chances is just to apply to
- 22:58like five jobs every day.
- 23:00You know, like, I would rather spend my time with like almost this prospecting work and reaching
- 23:04out to people and building relationships and meeting people for coffee.
- 23:07rather than thinking like, oh, how can I get 50 more likes on my open source project?
- 23:11But I can totally see where that motivation comes from, right?
- 23:15Because I feel like when you're from the outside looking in, it can seem like, oh, you know,
- 23:19obviously, this person got a job because they have a well-liked or popular open source project.
- 23:24But I would see it as a decent signal, but it's not going to be the only thing that's going
- 23:31to make you successful.
- 23:33Sure.
- 23:33Like social proof.
- 23:34Like, I applied to a job.
- 23:35And when they go to look at my resume and think about what I've done, like, here is proof that
- 23:41I actually have done the things I said I've done.
- 23:43You can check out the quality and so on.
- 23:45Yeah.
- 23:45Yeah.
- 23:45And it can also backfire, right?
- 23:47Like, if you, you know, I've reviewed a bunch of resumes where people, they just had
- 23:51forked another project and then put their name in as the author.
- 23:55And you could actually see that in the commit history.
- 23:58And so that is not a positive signal that you want to give off, right?
- 24:02And so, yeah.
- 24:04So you've got to balance it with that.
- 24:05But in general, I would say, yeah, it's, you know, it's great work.
- 24:08It's very rewarding.
- 24:09And it can help you find the job of your dreams for sure.
- 24:12It's definitely a way that you can get experience in some part of technology where you can't
- 24:17immediately find a job.
- 24:18But then after you can say, yes, I have experience in this thing.
- 24:21So, Anthony, you are in a place where you maybe review some resumes and think about giving
- 24:27people jobs.
- 24:27What do you think about this kind of briefly?
- 24:29Yeah, I've probably interviewed about 300 developers in my lifetime.
- 24:33Yeah, I'd say if they include a GitHub profile on their CV, then I'll definitely have a look
- 24:39at it.
- 24:39And I'll see what kind of projects they work on.
- 24:42And look at some of their code styles and stuff like that.
- 24:44But that's not a requirement.
- 24:46I mean, that will come up in developer interviews anyway.
- 24:49We'll talk about, you know, how you break down problems and how you address things.
- 24:53But it is good to see people actually, what it tells me more is not that they contribute
- 25:00to projects.
- 25:00It's that they have a passion outside of their work.
- 25:04Yeah.
- 25:04So if someone really cares about, I mean, I was interviewing C# developers.
- 25:09If someone's really passionate about C#.net or the technology that they work in, they
- 25:14will probably have lots of pet projects on the side or maybe just one or two.
- 25:19And they probably have other things they want to tinker with.
- 25:21And that tells me more about what they're going to be like at work, because if they really care
- 25:26about their profession, then they're going to be a great developer.
- 25:29Right.
- 25:29So I think that's more about what it's about for me.
- 25:32Yeah.
- 25:32And it's like a signal that this person is something of a self-starter, self-learner and passionate.
- 25:36I think that's a huge signal.
- 25:38Maybe this is a good point to talk about the website you shared with us a little bit ago.
- 25:41Firstpr.me.
- 25:42Yeah.
- 25:44Yeah.
- 25:45Yeah.
- 25:45Sure.
- 25:45So I found this one.
- 25:46Yeah.
- 25:47This is a part of First Timers website.
- 25:50So there's a couple of really cool links you can look at.
- 25:52One is firstpr.me.
- 25:54And you can type in someone's GitHub username and it will show you the first pull request
- 25:58that they raised.
- 25:59So yeah, we had a look.
- 26:00Mike, yours was in C#.
- 26:02It was.
- 26:03Yeah.
- 26:03Something with MongoDB.
- 26:05Yeah.
- 26:06Yeah.
- 26:06MongoDB link queries.
- 26:07Dan, I was pretty impressed.
- 26:09Yours was Python 3 support for a project called PipRot.
- 26:13And yeah, mine was the learning Python over a long weekend contribution.
- 26:21Yeah, that's really cool.
- 26:23And yeah, you can actually, you put in a name there and then there's a link to say,
- 26:26show me every pull request that this person has ever made in GitHub, which is a pretty
- 26:31good research if you're looking to work with someone.
- 26:34Yeah, definitely.
- 26:34Yeah.
- 26:35There's some other great ways as well to do some background research on people and look
- 26:39at what their contributions are.
- 26:41It's not just about code commits.
- 26:42It's a lot more than that.
- 26:43For sure.
- 26:43All right.
- 26:44So that's a ton of information on like why getting started is good, what it can give you,
- 26:49maybe what it won't give you.
- 26:51Things like that.
- 26:52Now, Dan, I know you've done a lot of work trying to help people basically evaluate open
- 26:59source projects.
- 27:00And you did some of this around the concept of like packages.
- 27:04Like so at PyPI, we have, gosh, I haven't looked for a while, well over 100,000 packages.
- 27:09Virtually every one of those is open source and is a thing you could contribute to.
- 27:13But, you know, how do I go to find something like that would be good for me if I was looking
- 27:20for this, especially if I was somewhat new.
- 27:21Yeah.
- 27:22That's a huge problem, right?
- 27:23Because there's so much stuff.
- 27:25It's like a whole forest of packages.
- 27:27How do you find the one tree that is just perfect for you?
- 27:31It's not too tall and too hard, but it's also not like a weed.
- 27:34You want to make your bed out of or whatever.
- 27:39And because it's a big liability issue as well, right?
- 27:43If you pick the wrong project there, potentially if you're working for a company and that becomes
- 27:49part of the code base you're working on, you may have to support this for several years in
- 27:54the worst case.
- 27:55So, yeah.
- 27:56So I've just, you know, just been thinking about the process that I used, that I used,
- 28:01that I evolved over time, how to go from, you know, I have a need for like some problem
- 28:07that I'm facing.
- 28:08Let's say I'm working on, you know, a Django app and I want to add, you know, some special
- 28:13form validation or whatever.
- 28:14How do I go from having identified this problem to actually finding a good package that I could
- 28:21pull in and it would solve my problem?
- 28:22I don't have to write it myself.
- 28:24I don't have to reinvent the wheel.
- 28:25And I think it comes down, you know, from a high level perspective, it comes down to coming
- 28:30up with a pool of candidates there, like candidate packages that sort of kind of do what would
- 28:35help you, what you're looking for.
- 28:36Before you go on, I think one of the things that you touched on there that's interesting is
- 28:40it will do what you need to do.
- 28:42Like, so I wouldn't necessarily think just randomly hunting GitHub for projects and then
- 28:48trying to contribute to them necessarily makes sense.
- 28:49But if it's something that you can use, that you can basically, because you need that experience
- 28:56of consuming and using the software to even be reasonably able to contribute to it, I think.
- 29:01Yeah, absolutely.
- 29:01I think it's not, like open source isn't a silver bullet, right?
- 29:05Where you can just go in and it's like going to a candy store and like whatever you get
- 29:11there will be great for you.
- 29:13I mean, it's, well, not even in a candy store.
- 29:15It's like that, right?
- 29:15It feels great.
- 29:16But then, you know, a day later, you're going to pay the price for that.
- 29:20Oh my God, all these horrible analogies.
- 29:23But yeah, no, it really, I think it really, it really comes down, like really identifying
- 29:27this need and also having the knowledge to know what you're really looking for, because
- 29:31otherwise it's just impossible to find a good solution.
- 29:34Yeah, for sure.
- 29:36Okay.
- 29:36So you talked about checking the package popularity as one of the things.
- 29:41Yeah.
- 29:41Yeah.
- 29:42And I think it all comes, for me, all comes down to these, having these heuristics because
- 29:46there's so many packages there.
- 29:47You got to have some heuristics to just cut that list down to size so that you can ideally
- 29:53select something that works for you.
- 29:55And I think there's a good way to do that is, for example, to go through a curated list.
- 29:58For example, there's awesome, awesome Python at awesome-python.com.
- 30:03Yeah.
- 30:04And they have a curated list of packages and that's also an open source project where
- 30:08people can add new projects that they liked.
- 30:11And it's sort of a filtered view of everything that's out there.
- 30:14But obviously it's not going to cover everything.
- 30:17So this is also not a panacea, right?
- 30:18So you got to do some legwork and look at Stack Overflow and maybe see if you can find some
- 30:23Reddit comments on a particular package just to get a feel for the quality of it.
- 30:28Yep, absolutely.
- 30:29I think the project homepage and the readme, those kind of play similar roles.
- 30:34Those give big indicators of does the person who created this project really care about it?
- 30:41So is it worth my time to contribute?
- 30:45You only want to contribute to a project where the maintainer actually cares about the thing.
- 30:49Yeah.
- 30:49Or where you're confident actually becoming the maintainer yourself, right?
- 30:53Yeah.
- 30:54That's why I always want to spot check the source code and think about it.
- 30:58Would I feel comfortable making changes to this project myself?
- 31:01Would my team feel comfortable making changes to this project?
- 31:04Because otherwise you have, it's almost like you're pulling in this binary blob that no one really
- 31:10understands, right?
- 31:11And it is Python source code.
- 31:12But if it's a really complicated project, then that could really derail things.
- 31:17And you might be better off going with a different solution or coming up with a custom solution.
- 31:22So I think it's always, it's all about these trade-offs and really scrutinizing what you're
- 31:27bringing in into your system there.
- 31:29Sure.
- 31:30Absolutely.
- 31:31Ronald, what do you use as a way to find projects that you can contribute to?
- 31:37It was really hard to get into open source.
- 31:40I asked around on social media because I just wanted to get involved in open source.
- 31:46Most people recommended OpenShift as one of the projects.
- 31:50So I went there and to be honest with you, I understood nothing about everything.
- 31:59Yeah, that's a big project, right?
- 32:01Yeah.
- 32:02Yeah.
- 32:03Yeah.
- 32:03Yeah.
- 32:04And people were saying this is the easiest project to start on and stuff like that.
- 32:08So I backed up a little bit and tried to start with local projects.
- 32:16So for example, I started with contributing for the Taikon Zimbabwe website and the Thai ladies
- 32:27website, stuff like that, the symbol stuff.
- 32:30Yeah.
- 32:31So that makes a lot of sense to start there.
- 32:32Yeah.
- 32:33So still now I'm trying to get into bigger projects, but the choices like how to choose
- 32:41the best project, which is too young, which is not too deep.
- 32:46It's a little bit hard.
- 32:48It's still very hard for me to find out that.
- 32:52Yeah.
- 32:52It is a challenge.
- 32:53One thing I'll throw in there is I mentioned Adriana Lowe's imposter syndrome disclaimer.
- 32:59I went and I took just that text, like a piece of text, the title of that, and I threw it into
- 33:06GitHub and I searched for projects that had adopted that disclaimer, which is like, hey,
- 33:11you're welcome to get started.
- 33:12So I thought that's, I found 23 projects so far that have that in there.
- 33:17So those are places where newcomers are welcome, I guess.
- 33:20Anthony, it's not just writing code necessarily that people can help with.
- 33:26There's documentation, there's examples, there's evaluating issues and PRs, like a first pass
- 33:32to see if they make sense, things like that, right?
- 33:33Yeah, yeah, sure.
- 33:34So I think the kind of case that you're talking about is quite typical.
- 33:38It's the sort of Goldilocks and the GitHub projects.
- 33:41Like you're trying to find one that's not too big and too complicated, that's not too small
- 33:45and doesn't get maintained and maybe find something in the middle.
- 33:48And I think people have this expectation that their first open source contribution would be
- 33:54like this killer PR where they like, you know, improve.
- 33:58Oh, I fixed this bug or, you know, I've added 20% performance improvement.
- 34:03And it's, and really as a project maintainer as well, whilst I would love those pull requests,
- 34:08there's a lot of other stuff that we do need.
- 34:10And it's contributions to an open source project and not just about code.
- 34:15So this is simple stuff like code reviews.
- 34:18Like you don't have to be a maintainer of the project to do code reviews.
- 34:22So if you see a fairly popular open source project and, you know, you're pretty good at
- 34:27reviewing, reviewing other people's code, maybe you do that as part of your job, then
- 34:31there's nothing stopping you going in someone else's project and doing code reviews.
- 34:35Obviously you have to understand their style guidelines, you know, what the rules are for
- 34:40that particular project and what their preference is.
- 34:42But, you know, code reviews, I'd love more people to, to do code reviews on projects that
- 34:47I work on.
- 34:49Documentation is also a really popular one.
- 34:50So quite recently I contributed some to the Beware project.
- 34:55Russell Keith-Magee, he's been a guest in a past episode.
- 34:59Yeah.
- 34:59And he's very welcoming.
- 35:00That project is very welcoming to newcomers as well, by the way.
- 35:03Yeah, definitely.
- 35:04And my first contribution was to write a blog article about how to use it.
- 35:07And then whilst doing that, I think I learned more about the project and how it worked.
- 35:11And then my other contributions were all documentation because that was kind of the gap that I saw
- 35:17at the time was that, you know, for me to get up and started with the project, there were
- 35:21a few things which weren't super clear.
- 35:22So taking that learning and sharing that back with the project.
- 35:26This is really about where you want to be an experienced user of the project in order to make valuable
- 35:34contributions.
- 35:35So to start off with, those contributions could be testing and documentation.
- 35:39And I don't think people should be making drastic code changes to a project if they can't at least
- 35:47document the thing they're changing or they can't write a test to prove that it already works.
- 35:51So, yeah, especially for big, complicated projects, you know, you might find that maintainers are
- 35:56not going to be very comfortable with someone coming in to a project and making some drastic
- 36:01changes because you've got, you don't know what other expectations there might be for the
- 36:05users.
- 36:06So, yeah, documentation and the tests are really great.
- 36:08And also contributions, more softer contributions.
- 36:11So this could just be presenting at your local Python meetup about a project.
- 36:16This could be, you know, blogging about it, tweeting about it, sharing it on social media,
- 36:20like as well as a maintainer of projects.
- 36:23Like I really value those contributions because those are people helping out with the whole
- 36:28community.
- 36:28They're not just helping out on the code base.
- 36:30And sometimes that's actually most of the work.
- 36:33This portion of Talk Python is brought to you by us.
- 36:37As many of you know, I have a growing set of courses to help you go from Python beginner
- 36:42to novice to Python expert.
- 36:43And there are many more courses in the works.
- 36:45So please consider Talk Python training for you and your team's training needs.
- 36:50If you're just getting started, I've built a course to teach you Python the way professional
- 36:54developers learn by building applications.
- 36:56Check out my Python jumpstart by building 10 apps at talkpython.fm/course.
- 37:01Are you looking to start adding services to your app?
- 37:04Try my brand new consuming HTTP services in Python.
- 37:07You'll learn to work with RESTful HTTP services as well as SOAP, JSON, and XML data formats.
- 37:13Do you want to launch an online business?
- 37:15Well, Matt Makai and I built an entrepreneur's playbook with Python for Entrepreneurs.
- 37:19This 16-hour course will teach you everything you need to launch your web-based business with
- 37:24Python.
- 37:24And finally, there's a couple of new course announcements coming really soon.
- 37:28So if you don't already have an account, be sure to create one at training.talkpython.fm
- 37:32to get notified.
- 37:34And for all of you who have bought my courses, thank you so much.
- 37:37It really, really helps support the show.
- 37:40One of the issues, I guess I didn't bring this up in the finding the right project, but one
- 37:44of the things that I look at, it's not a deal killer if it's in a bad state, but something
- 37:49I think is a really strong signal of the health of an open source project is how many open PRs
- 37:55are there and how many open issues are there, especially unaddressed?
- 38:00Like how many people have tried to contribute a feature to this and it wasn't even responded
- 38:04to?
- 38:05How many people have filed an issue and tried to ask for an improvement and it wasn't even
- 38:09responded to?
- 38:10I don't know.
- 38:11How do you feel about that?
- 38:12Yeah, there's a few projects that I work on where I've tried to fix things in the past
- 38:17and the maintainers have maybe written the project as part of their day jobs and then they've
- 38:23moved companies or they're just not interested in maintaining it.
- 38:26And the solution was actually to raise an issue saying, this is a notice for anyone else.
- 38:30I'm taking this party somewhere else.
- 38:32And then basically just maintaining a fork and publishing a separate package on PyPI.
- 38:37So that's actually kind of taking it on really and forking a project.
- 38:42And open source is, if you go and look at the Linux distro graph, it's a sort of history
- 38:48of Linux distributions.
- 38:50Now you can see how they've gone the same way in OSS.
- 38:54Yeah, it's pretty interesting.
- 38:55It's kind of like the nuclear option, but sometimes it has to be done if it really is abandoned.
- 39:01Yeah, give them a chance, give them an opportunity.
- 39:03But if you're still using software and you need things fixed and you need bugs updated or you
- 39:09need it to work with Python 3, for example, then absolutely I'd encourage building a fork,
- 39:14but then also maintaining a fork and publishing it as well so other people can access it.
- 39:18Yeah.
- 39:18Ronald, what advice do you have for like, are there things that you do that you found that
- 39:24like when you're filing a new issue or issuing a PR to an open source project that you do
- 39:29that make it more likely to be accepted or received well by the person running the project?
- 39:34One of the things that I do is I don't want people to suspect what my PR will solve.
- 39:44So on the comment, I will state exactly what the PR is doing.
- 39:50This way, it's easier for the maintainer to either accept or reject your pull request.
- 39:58It's actually a very easy way for dealing with small projects.
- 40:05When they get to bigger projects, maintainers may not read those comments, you know.
- 40:11So it just depends with the type of project that you're involved in.
- 40:16Yeah.
- 40:16I guess having a really clear, well thought out, well structured message or comment associated
- 40:23with the PR or the issue or whatever, it makes it seem like you're serious and it makes it
- 40:27easier to understand what's going on.
- 40:29Like some people just throw out like a sentence or some like very small thing and, you know,
- 40:34how serious do you want to take that work, right?
- 40:36Yeah.
- 40:37Yeah.
- 40:37That's it.
- 40:38Sure.
- 40:39Dan, how about you?
- 40:40When you're evaluating a PR or issues or things like that, what do you look for?
- 40:45I think for me, you know, when I became a maintainer of an open source project and I started getting
- 40:51PRs, for me, the key realization was at some point, hey, this is really more, this is a social
- 40:57project and not so much, not only a technical project, you know, where we're just looking for
- 41:05technical solutions for things.
- 41:06And I think it is really important, like whether you're running a project, an open source project,
- 41:12or whether you're contributing to one, or maybe you want to get the foot in the door there,
- 41:16just to be very careful around the social dynamics there and basically just, you know, being friendly,
- 41:22like introduce yourself and just say hi.
- 41:25And instead of, you know, maybe just instead of throwing a bunch of code over the wall,
- 41:30actually try and understand to see where, which direction this project is going.
- 41:35Right.
- 41:35That's a good point.
- 41:35We talked about before we hit record, like how we've all submitted PRs and actually we had
- 41:42solved a problem, but it was actually taking the project in a direction that wasn't part
- 41:47of the roadmap.
- 41:47They weren't interested in going that way.
- 41:49And so we did all this work and threw it at them and they're like, you know, this is really
- 41:52cool, but it's, we're not going to take it because it's just not where we're trying to
- 41:56go with this.
- 41:56Right.
- 41:57Yeah.
- 41:57Yeah.
- 41:57And it feels bad on both, both sides.
- 41:59Right.
- 42:00Like as a contributor, it feels not that great if you're putting in all that work and you feel
- 42:04rejected.
- 42:04And as a maintainer, you feel horrible because you have to reject someone's potentially very
- 42:09good work.
- 42:10You know, we can see they invested a lot of time into this, but it just takes the project
- 42:15into a different direction.
- 42:16And what's also important to realize is that as a maintainer, you have a lot of responsibility
- 42:21to actually be able to maintain the project.
- 42:24If there's a new feature that you don't fully understand yourself, maybe that hasn't been
- 42:29requested by other people before.
- 42:30I'm always leaning towards not bringing that feature in because I want to be very careful
- 42:36that I actually know what's going on with the project.
- 42:39It's very easy to get a mixture of different code styles and just a mixture, like just,
- 42:44you know, architecturally to have a quickly very unmaintainable project or very unmaintainable
- 42:51code base.
- 42:51And it's just so much harder to go back and rewind and then say, oh, you know what?
- 42:55Now we're going to spend like some time on rebuilding this thing.
- 42:58And I feel like that's harder to do than just being very careful about what contributions you
- 43:05take on in which direction you grow the project.
- 43:08Sure.
- 43:08How do you feel about things like continuous integration, you know, Travis CI and that
- 43:12kind of stuff that sort of evaluates from a correctness standard, the PRs initially?
- 43:18Yeah.
- 43:18Yeah.
- 43:19Oh, it's great that you're bringing that up.
- 43:21I think it's these days it's table stakes for any open source project, right?
- 43:25It's so easy to set that up.
- 43:27If you just have a circle CI or Travis CI, they all have free plans for open source projects.
- 43:33So they're like free build server farms where you can build your project and then you get,
- 43:38you know, you get a notification via email and a comment on your pull requests.
- 43:42And you can set it up so that it runs a PEP 8 check or a linter check on your project and
- 43:47runs all of the tests.
- 43:48And that's going to make it easier also for you as the maintainer and also for a contributor
- 43:52just to cut down on some of that back and forth.
- 43:55You know, we're not following the code style here.
- 43:57Like it just reduces the code review time.
- 43:59I think any open source project should take advantage of that, that kind of technology.
- 44:04Yeah, I totally agree.
- 44:05I think one of the interesting things is you mentioned this is a social experience.
- 44:09There were some studies done that said people are less frustrated by getting this nitpicky
- 44:17feedback from a machine rather than from another person.
- 44:22So let it, let it say, no, your indentation is wrong.
- 44:25No, this doesn't have a doc string.
- 44:27Whatever, as like before the thing is accepted, just like I'll, I'll review it once you pass
- 44:33the continuous integration.
- 44:34Right.
- 44:35That's really nice.
- 44:35Yeah.
- 44:36Yeah.
- 44:36And then I'm a very nitpicky code reviewer.
- 44:38And, you know, when I, when I became a team lead, like one of the things that I realized
- 44:42very quickly is that you got to absolutely pick your battles, right?
- 44:45Because you're just going to be upsetting people.
- 44:47Yeah.
- 44:48So having a linter in place on your CI infrastructure, continuous integration infrastructure, it should
- 44:53take, it just takes away some of those, those discussions.
- 44:57Yeah.
- 44:57Yeah.
- 44:57Everybody got to make the test green.
- 44:59It's not my fault.
- 45:00The machine says.
- 45:01I can't, sorry.
- 45:03I can't do that, Dave.
- 45:04That's right.
- 45:05Sorry, Dave.
- 45:06Anthony, you know, another thing that's worth talking about when we're talking about running
- 45:11a project is, is burnout.
- 45:13So it's one thing to, you know, I talked about the, like the unanswered PRs, the unanswered
- 45:17issues and stuff.
- 45:17But the other, the dark side of that, if you will, is people expect that you maintain your
- 45:25projects at like often really unreasonable levels, right?
- 45:30Like you have this project.
- 45:31I filed a PR.
- 45:32Why isn't it here yet?
- 45:34You know, and people have jobs, they have lives, they're busy.
- 45:36There's burnout as a real issue here as well.
- 45:38Right.
- 45:38Hmm.
- 45:39Yeah, definitely.
- 45:40And a lot of people that contribute to open source do so in their spare time as well.
- 45:45So I think the expectations people have for maintainers, for reviewers is, is pretty high.
- 45:52And sometimes a little bit unreasonable.
- 45:54I mean, as part of my day job, I think I manage 26 people.
- 45:59You know, I've got a lot of things to do during the day.
- 46:02I've also got three children, you know, so I've got a family and a house to also maintain.
- 46:06These things kind of add up and it's important for me.
- 46:10I think for me, I kind of make sure that I'm realistic about setting expectations with people
- 46:15about how much I'm going to work on a project and actually not feeling guilty to say, you
- 46:20know what, I'm going to step back for a bit because, you know, I've got other things to
- 46:24focus on.
- 46:25I think I'd found in the past, especially focusing on really unhealthy things like your GitHub
- 46:30contribution graph, like how many recurring days you've done was called the running streak
- 46:36was like how many days in a row you've contributed to open source.
- 46:40And GitHub actually took this feature out because it was really encouraging the wrong
- 46:44behavior.
- 46:45Like for my contribution graph, really, I make sure that I've got a good, healthy number of
- 46:51days where I'm not contributing anything because I'm spending time away, you know, I'm spending
- 46:55time with my kids and actually trying to get that separation.
- 46:58Otherwise, people kind of feel obliged to constantly, you know, almost be on call for a project and
- 47:05remembering that, you know, this is your time, this is your contribution and there's no
- 47:09obligation and actually try and invest some of that time into getting other people to
- 47:15help out and getting other people to contribute.
- 47:17Because, you know, if you advertise a project more, if you try and delegate work better, then
- 47:22those kind of skills that you'll learn from open source will absolutely help you in your
- 47:26day-to-day job.
- 47:26Like that's a really typical problem that developers have, I think, because they kind of work their
- 47:32way up the ranks is that they, you know, get to be the technical specialist for a particular
- 47:37project or the principal, for example, and everyone comes to them with queries day and
- 47:42night and they burn themselves out because they don't learn how to delegate work.
- 47:48So, you know, that's a really, really critical skill.
- 47:51I think people have to learn and you can do that open source.
- 47:54You can do that during your day job.
- 47:55But if you work in technology, you're going to have to figure that out at some point because
- 47:59otherwise you're going to be the go-to person for that piece of technology and you're going
- 48:05to be supporting it for the next 35 years.
- 48:08And do you really want to do that?
- 48:09Yeah, that's a really good point.
- 48:12So maybe that's a great way to segue to our last topic, which is if you're running an open
- 48:18source project, how do you make it attractive?
- 48:20Like how do you, how do you attract people to it?
- 48:23Because then you'll get help, right?
- 48:25You'll get people to come along and help with the code review, help adding new features, help
- 48:30write the documentation and so on.
- 48:32So, Ronald, let's start with you.
- 48:33What are some of the things you think people running projects can do to make their project
- 48:39attractive to folks like you who want to contribute to open source?
- 48:42Okay.
- 48:43So the first thing, it's little, but it's a big deal.
- 48:49The first thing for PRI did, it was accepted.
- 48:53But then I was new to open source, so I was not sure, was it accepted?
- 49:00Was it rejected?
- 49:01I wasn't sure where it was because I was trying to learn Git at the same time trying
- 49:09to contribute.
- 49:10So that small message just to say thank you or that small comment to say your code is okay
- 49:19but you have to fix your hand.
- 49:20It's really important.
- 49:22And that's one of the things that can attract people to your project because most of these
- 49:29projects, you get into them through referrals.
- 49:33Right?
- 49:34So if I enjoy the way I'm working with you on a project, definitely I'm going to reference
- 49:40the next person who's close.
- 49:42So I have this notion that the coding part of things is easy.
- 50:02But the project framework is the most hard part.
- 50:08So when you're trying to start your open source project, make sure there is a story behind
- 50:15your project.
- 50:16Like tell us your situation.
- 50:19Because countries are different.
- 50:20Cultures are different.
- 50:22Right?
- 50:22So try to explain your issue, what you're trying to solve.
- 50:25Then make clear frameworks of what you want things to be done.
- 50:33Right?
- 50:34And then from there, people can get there and they don't have to ask questions.
- 50:41Because when someone is getting into a new project, they are afraid of being embarrassed.
- 50:48So they don't want to ask questions.
- 50:51So try as much as possible to make sure that people don't ask questions, to make sure that
- 50:57people that want to contribute feel appreciated.
- 51:00Anthony said it a while ago that an open source contributor, you have put a lot of work into it.
- 51:08And it's hard to just know that your work has been rejected and there is no message for that thing.
- 51:18Something that's just sad.
- 51:20So firstly, for me, firstly, is that little message.
- 51:25Just communicate with your contributors, whether you accept or you don't accept their PRs.
- 51:33Yeah, I think this is important because, like I said, having the unaddressed issues, the empty PRs, that looks really bad for the project.
- 51:42Even if you have to reject them or close the issue, just having that communication there makes a big difference.
- 51:48Yeah, that's absolutely right.
- 51:50And then ensure that the frameworks are okay.
- 51:54Maybe it's just me, but to me, putting up those frameworks is the hard part.
- 52:00Right?
- 52:01So the coding part of it is really simple.
- 52:04Maybe you may differ in the direction that one person wants to go and the other wants to go.
- 52:09So if those things are clear and even putting a background information of your project, if it applies in that situation, it will be so helpful.
- 52:21So that's what I think people should do to attract more people on their project.
- 52:28Yeah, awesome.
- 52:28Certainly having that disclaimer I talked about before to say you're welcome or like the things like the Beware folks have, they have almost a mentorship program.
- 52:37So making it very clear that newcomers are welcome, I think, is a big deal.
- 52:40Dan, you spoke of continuous integration.
- 52:42That's probably another good signal that you care about your project.
- 52:47What else would you recommend there?
- 52:48So I think there are definitely some very actionable tactics that your listeners could apply.
- 52:54So I'm just going to throw out some of them.
- 52:57And this is not going to be, you know, this is going to not not going to solve everything and just make your project super popular.
- 53:04But I think it definitely helps.
- 53:05And so a couple of things you can do there is just having a really clear one sentence description of what your project is for, you know, what it what it does and for who.
- 53:14Like what's the benefit to your user?
- 53:17And you can actually put that on GitHub.
- 53:19You can put it in the they have like a I guess like a tagline or subheading setting all the way up there or put it like right on the readme.
- 53:26And I found that a lot of times that is missing.
- 53:28And sometimes, you know, I find something that I feel like this seems like it sort of relates what I'm trying to do.
- 53:33But what does it actually do?
- 53:35And I think that is really important.
- 53:37Just being very clear about it.
- 53:39And then maybe you want to have some code examples right below that so people can see how it works.
- 53:43You can put these little badges that you can integrate with your with your continuous integration setup.
- 53:50So, you know, you can show people what your test coverage is like, how the latest how is master building currently?
- 53:56You know, is it are all the test screen?
- 53:58Is there or is something failing there?
- 54:00What's the latest version on PyPI?
- 54:02And just sprinkle around some of these things that that make the project sound and seem appealing, look appealing.
- 54:10Yeah, that's all great advice.
- 54:11Anthony, how about you?
- 54:12Yeah.
- 54:13And if you don't know how to do some of those things, I really recommend using cookie cutter.
- 54:17And there's some great Python templates out there that kind of give you things like test coverage or the badges, like a nice readme file, some contribution templates and stuff like that.
- 54:29So, yeah, I normally use those as like to boilerplate my project.
- 54:33So at least for a new project, it looks like I've actually put time and effort into it.
- 54:38I think that's really important when people look at a project and they think where they want to contribute.
- 54:44It's they can see that you care about the project and the people who maintain it care about the project.
- 54:49So they think that their contribution is actually going to be valued because if it's just a whole bunch of code that you just dumped online and stuck in GitHub,
- 54:56then, you know, it's not as enticing because maybe it might get merged, maybe it won't.
- 55:02And everyone's pretty busy.
- 55:03So I think it's, yeah, dressing the project up nicely and actually putting the time and investment into right documentation,
- 55:11do proper test coverage, implement linters, stuff like that is really critical.
- 55:15That's a great recommendation with cookie cutter as well, because that's like it's already prepackaged the all that stuff.
- 55:21You got much of that stuff you got to do.
- 55:23Yeah, definitely.
- 55:24It takes takes ages otherwise.
- 55:25And but the thing I think the main thing for me is actually if you want people to contribute to your project,
- 55:30you users bring contributions.
- 55:33So it's actually the question you should ask first is, does my project have any users?
- 55:38And if the answer is no or not that many, then I would fix that first before you worry about why people aren't contributing to it.
- 55:46Because, you know, if no one's ever used it before, people don't just contribute code to something they've never used that typically they don't anyway.
- 55:53It's mostly going to be you're going to get some small subset of your users become contributors.
- 55:58Right.
- 55:59And so if you have a very small number at the top of that funnel, it's going to be really small at the bottom.
- 56:03Yeah, exactly.
- 56:04Unless it's been on Hacker News, in which case it's a different case.
- 56:07So, guys, did we just scare everyone off?
- 56:10I feel like we had this long list of like, oh, you got to do this and we got to do documentation and these badges.
- 56:15And I just wanted to say, you know, if you're interested at all in open source, just put something on GitHub.
- 56:21Anything.
- 56:22Even if it's like a script or something that you built where you think it adds value, please just do it.
- 56:28Because I think all of us, that's how we got started, right?
- 56:32Like we added and optimized this process over time and, you know, just get it out there.
- 56:36These are things you can add.
- 56:37These are things to enhance, not requirements to get started, right?
- 56:41Yeah.
- 56:41Yeah, definitely.
- 56:43So, yeah, in terms of getting users, I think it's – so if you've published your code to PyPI, if it's a package, I mean, if it's a web application or something, then maybe you don't want to do that.
- 56:55But, yeah, if it's a package you want to publish, then there's actually a Google BigQuery table where you can go and look at like analytics about your package, how many people have downloaded it, which versions they're using, and some like historic data from PyPI.
- 57:12So, like all the – I guess all the sort of back-end data they collect on pip downloads, you can actually go and query that, which is really cool.
- 57:19So, yeah, what I found with some of the projects I work on is focusing my efforts on projects that I know have a lot of users and then actually just trying to promote them a bit better and make sure that it's really obviously welcome for contributors.
- 57:33Yeah, that's definitely good advice.
- 57:34So, I don't remember who started this conversation, and I'm not entirely sure we should go down there, but I will.
- 57:42Dan, you said it.
- 57:43You should just throw your stuff on GitHub.
- 57:44What if I throw it on Bitbucket or somewhere else?
- 57:46What if I run my own Git server and I just throw it there?
- 57:49Or what if I like SVN?
- 57:51Are you ever thinking about bringing some of these companies on as sponsors?
- 57:54Go ahead, man.
- 57:56We're keeping it.
- 57:56The sponsors don't influence the content.
- 58:00No, just kidding.
- 58:01It's a really valid question, right?
- 58:03It's one that I've also received in the past.
- 58:05And there are different websites that kind of all follow the same, have the same purpose, like GitHub, Bitbucket, GitLab, where you can host your code and work with other people collaboratively, right?
- 58:16And I guess the question is, like, what is the best one or where should you put your code?
- 58:20I think, first of all, it's great that we have that choice.
- 58:24If I have to make that choice right now, I'm heavily invested into GitHub, just in terms of my code being there.
- 58:30And so I'm going to stick with GitHub.
- 58:33And it's probably what I would recommend to someone just starting out.
- 58:37But the other ones are great, too.
- 58:39I mean, in terms of the feature set, they're getting the job done.
- 58:42You know, so theoretically, you can go with whatever you like the best.
- 58:45I think GitHub will have an advantage in terms of that a lot of people are going to just go to GitHub and search for stuff.
- 58:52I think that is probably the biggest difference there.
- 58:54Sure.
- 58:55Anthony, what do you think?
- 58:56Yeah, I think if you're working on a project in the open, so an open source project, some of the code review features in both Bitbucket and GitLab are actually better than they have been at GitHub.
- 59:07So there's definitely some feature differences between the different platforms.
- 59:10But if you want to put a project out there and you just want it to be seen by as many people as possible and you want as many contributions as possible,
- 59:17I think you've really got to go with GitHub because that's where the vast majority of the users are.
- 59:22In the future, that might change.
- 59:24You know, and so it's important to make sure the skills that you're learning are portable, I guess, across different platforms.
- 59:30But for now, yeah, they've got most of the users.
- 59:32So it's just like social media tools.
- 59:34You know, this is, I guess, one of the reasons why some of them never took off.
- 59:38You know, if none of your friends are on there, then it's just you posting to them.
- 59:43You're posting to the database and it's not interesting.
- 59:45All right, Ronald, what do you think?
- 59:48You agree with this GitHub as a place to start?
- 59:50Yeah, I definitely think GitHub is a place to start.
- 59:55And especially here, for me, I knew GitHub through a Jungle Goals workshop.
- 1:00:02And these workshops have been running all of Africa and people are getting reach to GitHub.
- 1:00:13The other thing is that it's one of the most common personal tools.
- 1:00:19So it's easier for you to get help if you get stuck because there are a lot of people that are there who are willing to support you.
- 1:00:28But it has got a lot of commands and definitely to take time to learn.
- 1:00:36I've been using it for a while now, but I mean, again, I discover new things.
- 1:00:42Yeah, I'm still learning new stuff all the time.
- 1:00:44Yeah, yeah, yeah.
- 1:00:45So I think it's probably a good starting point.
- 1:00:49And also, you can go through it for the bigger project.
- 1:00:55For sure.
- 1:00:55Okay, excellent.
- 1:00:56Well, I think we should probably leave it there, guys.
- 1:01:01We're a little bit over time maybe, but I think we covered a lot of good stuff.
- 1:01:06So very, very quickly, I'm going to go around and ask you each two questions, but just super short answers.
- 1:01:11Favorite editor for writing Python code, Dan?
- 1:01:14Sublime Text.
- 1:01:15I think it's an awesome editor, super fast.
- 1:01:17Unfortunately, not open source, but I love it.
- 1:01:20Awesome.
- 1:01:20It's great.
- 1:01:20Yep.
- 1:01:21Ronald?
- 1:01:22Yeah.
- 1:01:23Sublime Text is good to me, and also not paid plus plus.
- 1:01:27It's also fine.
- 1:01:28For sure.
- 1:01:28Okay.
- 1:01:29Anthony?
- 1:01:29Yeah, recent change, but Visual Studio Code.
- 1:01:32Okay.
- 1:01:33You were doing Komodo or something before, right?
- 1:01:35Yeah, yeah.
- 1:01:36I've been on Komodo for a long time.
- 1:01:37Yeah, if anyone from Komodo wants to ask me why, then I'll happily give you a list of bugs
- 1:01:42that never got fixed.
- 1:01:43So, yeah, move to VS Code.
- 1:01:46Yeah, yeah.
- 1:01:46I use VS Code some as well.
- 1:01:48Cool.
- 1:01:48All right.
- 1:01:49Same rotation, PyPI package.
- 1:01:52Just give me the name, Dan.
- 1:01:53BPython.
- 1:01:54It's an alternative Python REPL, and it's just B, the letter B, plus Python.
- 1:01:59And it's awesome.
- 1:02:00I love it.
- 1:02:01Awesome.
- 1:02:01I'm all about the PT Python.
- 1:02:02Ronald?
- 1:02:03I like the mathematics part of things, so I'm saying probably NumPy or something like that.
- 1:02:09Sure.
- 1:02:09Okay, great.
- 1:02:10Anthony?
- 1:02:10Yeah, I'd have to be biased, but Apache Lib Cloud.
- 1:02:13So it's Apache Huff and Lib Cloud.
- 1:02:15Cloud, which is a cloud abstraction API for Python.
- 1:02:19All right.
- 1:02:19I hear they have some awesome contributors.
- 1:02:21That's cool.
- 1:02:22All right.
- 1:02:25Dan, do you want to give us the final call to action?
- 1:02:29People want to get started?
- 1:02:29What do they do?
- 1:02:30For sure.
- 1:02:30Okay, so if you want to get started, just put something on GitHub or one of these other wonderful
- 1:02:36sites that we talked about.
- 1:02:37And if you tweet your project at me, I'd be happy to share it on Twitter and help you promote it.
- 1:02:44Yeah, for us as well.
- 1:02:44I'm happy to retweet an announcement of projects or something like that.
- 1:02:48Yeah.
- 1:02:49All right.
- 1:02:49So just get out there.
- 1:02:50Create a project.
- 1:02:51Find something you care about and get started.
- 1:02:54Or if you're new to programming open source, go and find an existing project that you can
- 1:03:00contribute to.
- 1:03:00It'll be really rewarding.
- 1:03:02All right.
- 1:03:03Ronald, Anthony, Dan, thank you guys all for being on the show.
- 1:03:07It's been a lot of fun.
- 1:03:07Thanks, guys.
- 1:03:08Thanks for having us.
- 1:03:09Yeah, it was fun.
- 1:03:10Thank you so much for having us.
- 1:03:11Yep.
- 1:03:12You bet.
- 1:03:12Bye.
- 1:03:12Bye.
- 1:03:13This has been another episode of Talk Python To Me.
- 1:03:16Our guests today have been Anthony Shaw, Dan Bader, and Ronald Maravagnica.
- 1:03:21And this episode has been brought to you by Linode and us right here at Talk Python Training.
- 1:03:26Linode is bulletproof hosting for whatever you're building with Python.
- 1:03:30Get your four months free at talkpython.fm/Linode.
- 1:03:34Just use the code Python17.
- 1:03:37Are you or a colleague trying to learn Python?
- 1:03:40Have you tried books and videos that just left you bored by covering topics point by point?
- 1:03:45Well, check out my online course, Python Jumpstart by Building 10 Apps at talkpython.fm slash
- 1:03:50course to experience a more engaging way to learn Python.
- 1:03:54And if you're looking for something a little more advanced, try my WritePythonic code course
- 1:03:58at talkpython.fm/Pythonic.
- 1:04:00Be sure to subscribe to the show.
- 1:04:03Open your favorite podcatcher and search for Python.
- 1:04:05We should be right at the top.
- 1:04:07You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct
- 1:04:13RSS feed at /rss on talkpython.fm.
- 1:04:16This is your host, Michael Kennedy.
- 1:04:18Thanks so much for listening.
- 1:04:19I really appreciate it.
- 1:04:20Now get out there and write some Python code.
- 1:04:22Bye.
- 1:04:23I'll see you next time.