Latest / Talk Python To Me / #15: Python at Spotify, PSF, and PyLadies
Transcript
- 0:00A strong community is one of Python's superpowers, and that's what this episode of Talk Python To Me is all about.
- 0:05It's PyLadies and Python Software Foundation with Lynn Root.
- 0:09Episode number 15, recorded Thursday, June 6, 2015.
- 0:14Hello, and welcome to Talk Python To Me,
- 0:43a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.
- 0:48This is your host, Michael Kennedy.
- 0:50Follow me on Twitter, where I'm @mkennedy,
- 0:52and keep up with the show and listen to past episodes at talkpythontome.com.
- 0:57This episode, we'll be talking to Lynn Root about PyLadies, Python Software Foundation,
- 1:02Python at Spotify, and the Python community at large.
- 1:06I'm really fortunate to have CodeChip and Hired sponsoring the show.
- 1:11Let me take just a few seconds to tell you about them.
- 1:13CodeChip is a platform for continuous integration and continuous delivery as a service.
- 1:19They encourage you to always keep shipping.
- 1:21Please take a moment and check them out at codeChip.com,
- 1:25or follow them on Twitter where they're at CodeChip.
- 1:28Hired wants to help you find your dream job.
- 1:30Hired is built specifically for developers looking for new opportunities.
- 1:34Check them out and get a very special offer at hired.com slash talkpythontome.
- 1:39And you'll find them on Twitter where they're at hired underscore HQ.
- 1:43Before we get to the show, I have a quick piece of news for you.
- 1:47Thanks to everyone who backed my Talk Python To Me t-shirt Kickstarter.
- 1:51This week is the last week to join and get your shirt and promotional slot.
- 1:55Check it out at bit.ly slash python shirt.
- 1:58Now, let's get right on to the interview with Lynn.
- 2:02Let me introduce Lynn.
- 2:03Lynn Root is an insomniatic software engineer for Spotify,
- 2:07the founder of the San Francisco chapter of PyLadies,
- 2:10a board member of the Python Software Foundation,
- 2:14and a member of the Django Software Foundation.
- 2:16Lynn, welcome to the show.
- 2:18Oh, thank you so much.
- 2:20Yeah, we have a lot to talk about today, a bunch of different topics.
- 2:23And, you know, I've read a little bit of what you've written online
- 2:26and checked out some of your talks.
- 2:28And you have a lot of interesting things going on.
- 2:30Yeah, I feel like I'm juggling a lot.
- 2:32But thank you.
- 2:33Yeah, the context switching is hard sometimes, isn't it?
- 2:36It really is.
- 2:37Yeah, but I think in the end, it's worth it to be part of a lot of exciting things.
- 2:41So let me be one of the first podcasts to say congratulations.
- 2:47I'm being reelected to the Python Software Foundation board.
- 2:51That happened just a couple days ago, right?
- 2:53Right, right.
- 2:53Thank you so much.
- 2:54Yeah.
- 2:55Yeah, you must be excited.
- 2:56How long have you been on the board?
- 2:58This will be my third year.
- 3:00So I've been on for the previous two years.
- 3:02Okay.
- 3:03Oh, very cool.
- 3:03Very cool.
- 3:04So I want to talk about that more.
- 3:07But let's start at the beginning.
- 3:08You've written a couple really cool articles about sort of your path into engineering
- 3:15and into programming and into Python.
- 3:18You know, you're doing a lot of work to help other people walk that path and take that journey
- 3:23in their own way.
- 3:24And I think it's really interesting to maybe cover some of that or talk a little bit about
- 3:28it.
- 3:28Can you maybe tell us how you got here?
- 3:30Sure, certainly.
- 3:32So yeah, I actually have a business degree.
- 3:35I went to Babson College in Massachusetts.
- 3:39And I graduated with like econ finance.
- 3:42But I don't know if you remember, but in like 2008, the economy kind of sucked.
- 3:48And that's the year I graduated in.
- 3:50So it was really, really kind of difficult to get a decent job in finance.
- 3:57But in terms of decent like paying.
- 4:01So I actually I started working as an analyst for a small bank for a few years.
- 4:07The economy is still crappy, but I wanted to get my master's degree in financial engineering.
- 4:15And Berkeley here in California actually has a really good program, like a one year master's
- 4:23of engineering or financial engineering.
- 4:25And but in order to apply, you kind of had to like know how to code.
- 4:30And me being a sort of a fresh graduate and like thinking, oh, I could still like learn
- 4:38how to study.
- 4:39Right.
- 4:39I just how hard can it be?
- 4:41Come on.
- 4:42Right.
- 4:42Yeah, exactly.
- 4:43I decided to enroll in like a Harvard's extension program, just like their intro to CS class.
- 4:50And so that was like the fall of 2011.
- 4:54And let me tell you, C is really hard.
- 4:58And I really sucked.
- 4:59Like I failed like a lot, all the midterms.
- 5:03I was crying a lot during the weekly homeworks.
- 5:07And it was just it was really tough.
- 5:10Were you wondering what you had gotten yourself into?
- 5:13Yeah, seriously.
- 5:14It was just like I literally just like was hoping to get a passing grade just to like get this
- 5:18over and done with.
- 5:20Yeah.
- 5:21Yeah.
- 5:21But like I couldn't who would subject themselves to this kind of thing.
- 5:24And but but oddly enough, towards the end of the semester, I saw some Python code and coming
- 5:34from C to Python.
- 5:36I was just like, wow, I like actually understand what's being written.
- 5:40I actually understand the logic.
- 5:41Like I can see what's going on here.
- 5:44So I actually decided to do my final project for the course in Python.
- 5:49I made a little Django website app that looking back now is really crappy code.
- 5:54But it worked.
- 5:56And somehow I got like an A minus in the course, even though I failed both midterms.
- 6:02That's amazing.
- 6:04The professor must have thought, well, she's come a long way.
- 6:07Look what she built.
- 6:07You know, let's just forget about about those bad midterms.
- 6:10Right.
- 6:11Exactly.
- 6:12I wonder if they ever questioned like the legitimacy of that code.
- 6:16Like, how could she come from this to that kind of thing?
- 6:19But like I really wrote it like I also wrote that crappy code.
- 6:22But anyways, I found it a lot more satisfying to like stay up at like 3 a.m.
- 6:28trying to like debug like this Django app than like looking at Excel spreadsheets,
- 6:34you know, like eight hours a day, five days a week.
- 6:37So I basically decided that I wanted to continue to learn but not pay Harvard another $2,000 for a course.
- 6:46So at the time I was in San Francisco.
- 6:49I still am in San Francisco.
- 6:51But at the time I kind of approached Women Who Code, the local meetup group here,
- 6:57and see who else could like would be interested in learning Python with me.
- 7:02So I started like a study group with other women and kind of led projects.
- 7:10Basically, I would do the project the week before and then sort of present it and we'd work through it together.
- 7:16That's really cool.
- 7:16And I think I recall from your article, there were quite a few people there, right?
- 7:20It was like 40 women or something like that?
- 7:22Yeah, exactly.
- 7:23That's awesome.
- 7:24Yeah.
- 7:24To be honest, I don't know if they came for like the free food at Dropbox or if they really wanted to know Python.
- 7:30But it was awesome to see them there.
- 7:33And there's a lot of great interest in continuing on because I had only planned like eight weeks once a week.
- 7:41And so that actually turned into like two PyLadies of San Francisco.
- 7:46I sort of stole those women.
- 7:48Not really steal, but like they helped me build sort of PyLadies of San Francisco.
- 7:54From there, I was able to subject other people to wanting to learn how to code with me.
- 8:00And I guess the rest is history.
- 8:03I sort of just kind of started talking about what I was doing.
- 8:07Kind of from the point of view of me being sort of selfish and like wanting to learn how to code with others with me.
- 8:15But it sort of morphed into like getting women involved in coding and me speaking about that.
- 8:21And that really helped me like land my first engineering job.
- 8:25That's really cool.
- 8:26You know, I do a lot of training for my job as well.
- 8:29And I think this pressure to put together a presentation, to learn it well enough to like present it to others, is a super powerful way to learn for yourself, actually.
- 8:38Right.
- 8:39Yeah.
- 8:39You better have the answer to the questions that you don't even think of right now, right?
- 8:42Exactly.
- 8:43Yeah.
- 8:44Yeah.
- 8:45Yeah.
- 8:46So you think that really helped you sort of gain the skills you needed?
- 8:49It definitely did.
- 8:51At least like helped me like understand what was going on rather than just copying, pasting code, which is like not a really good way to learn how to code.
- 9:00Sure.
- 9:01I think that happens more in this industry than people really want to admit, to be honest.
- 9:04I agree.
- 9:05I mean, I fully admit that there are some like Stack Overflow posts that I just copied and pasted.
- 9:11And it just happened to work and went on from there.
- 9:14So yeah, I believe it happens a lot.
- 9:16Yeah, I think so.
- 9:31CodeChip is a hosted continuous delivery service focused on speed, security, and customizability.
- 9:38You can set up continuous integration in a matter of seconds and automatically deploy when your tests have passed.
- 9:43CodeChip supports your GitHub and Bitbucket projects.
- 9:46You can get started with CodeChip's free plan today.
- 9:49Should you decide to go with a premium plan, Talk Python listeners can save 20% off any plan for the next three months by using the code TALKPython.
- 9:58All caps, no spaces.
- 9:59Check them out at CodeChip.com and tell them thanks for sponsoring the show on Twitter where they're at CodeChip.
- 10:12When you're doing C++ or C, it was just really frustrating.
- 10:16And just the simplicity of Python really resonated, huh?
- 10:20Definitely.
- 10:21Yeah.
- 10:21It's just like, oh, I can actually understand that you're defining a function and trying to do it, like, mangle the data in this way and return this.
- 10:28Like, I actually got that in me to be able to, like, a couple months later, I sort of finally understood, like, inheritance when I was digging through, like, Django, like, source code.
- 10:39And I was like, well, this actually makes sense to me than, like, programming, like, a Sudoku board in C where I just have no idea what I'm doing.
- 10:48Yeah.
- 10:49And pointers to pointers to a raise.
- 10:50Like, yikes.
- 10:51Uh-huh.
- 10:52Right.
- 10:53Let's maybe talk a little bit about PSF.
- 10:57Sure.
- 10:59I kind of know the mission statement of PSF.
- 11:03And I know that there's a board.
- 11:06But can you maybe tell all the listeners kind of what is the Python Software Foundation and what kinds of things do they do to help all of us?
- 11:15Sure.
- 11:16Yeah.
- 11:16So this question happens a lot, actually.
- 11:19And maybe it's a telling sign that we need to do better PR about who we are.
- 11:24But the PSF, the legalese or, like, what we are about in formal sense is both protecting the trademark of the Python language and kind of, like, owning that and stuff like that, as well as furthering, like, the language of, like, becoming more widespread.
- 11:44And that's essentially what it boils down to.
- 11:47And the PSF has, like, has the board with 11 directors and then has, like, a membership model.
- 11:55And there's a few different ways to be a member.
- 11:58But basically, the purpose of the PSF is to, like, make sure Python as a language can, like, remain a popular widely used language and kind of get it everywhere.
- 12:11And as a PSF board, we do a lot of both kind of just, like, answering simple questions, like, can I use Python here?
- 12:19Can I represent the logo here?
- 12:20Like, simple questions like that.
- 12:21We get a lot of, like, requests for, like, funding.
- 12:25Like, can you help with these, like, food costs for this, like, Python sprint or something like that.
- 12:34We help a lot of workshops, especially, like, the, like, young coder workshops that Katie and Barbara have been doing since 2012, I guess.
- 12:46And that is mostly based on, like, help getting, like, Raspberry Pis so that teenagers and young kids can, like, learn how to, like, program in Python and actually take home what they're doing.
- 12:59PSF sort of supports Python in that sort of way.
- 13:03And I guess that's as best off the top of my head of describing the PSF.
- 13:09Yeah.
- 13:09That's really cool.
- 13:11And I think it's just good to raise everyone's awareness about that.
- 13:14It's nice to have a single organization or group that is kind of can answer, like, public questions and make decisions and stuff like that around the publicity of Python and whatnot.
- 13:27I also heard that they were doing a lot to help promote the usage of Python 3.
- 13:32I feel like the PSF is usually, like, throwing, like, the money at it.
- 13:35Like, if someone requests, like, funding to help porting stuff, we're definitely 100% behind that.
- 13:41I feel like the louder voices of supporting Python 3 is more like Guido himself and some other core devs.
- 13:48We personally, the PSF doesn't really outwardly, like, back, like, public statements.
- 13:53But we're definitely, like, since, like, Python 3 is the future, we often get requests to help, like, funding, like, the porting of something from 2 to 3.
- 14:04Like, a really, like, established, like, library, like, mailman or something like that.
- 14:09Right.
- 14:09Of course, I had Chris McDonough on the show.
- 14:12I think that was show 3.
- 14:14Mm-hmm.
- 14:14And he talked about that story with Pyramid.
- 14:18Oh, yeah.
- 14:19The Pyramid web framework.
- 14:20Yeah.
- 14:21Apparently, he said, I'm dragging my feet on converting it to Python or, you know, supporting Python 3.
- 14:26And the PSF came along and helped out and said, can we give you a nudge to make you go do this?
- 14:30And he did.
- 14:31Yeah.
- 14:32That's awesome.
- 14:33Yeah.
- 14:34That's really cool.
- 14:35That's really cool.
- 14:35So, as a board member, what do you do there?
- 14:39The board member, being a board member is, it varies on how much work you want to put in.
- 14:49And, like, we have monthly meetings or somewhat monthly meetings, regular meetings.
- 14:55And we vote on stuff like, should we give money to these people or those folks?
- 15:01That's actually a lot of our conversation is deciding who to help out.
- 15:07As well as, like, let's see, like, sponsors.
- 15:11Like, who can we invite to be a sponsor?
- 15:13Who is applying to be a sponsor?
- 15:15Things like PyCon and so on?
- 15:18Well, so, that's actually, PyCon is, like, the only conference that is, like, directly supported by us.
- 15:24But we just sort of have, like, a PyCon officer that's supposed to be, like, the liaison between the two, like, organizations.
- 15:33And we definitely, like, a lot of the money comes out of the PSF and the sponsors of both the PSF and PyCon.
- 15:41But we definitely stay out of, like, the day-to-day logistics, the planning and stuff like that.
- 15:47Sure.
- 15:47More high level.
- 15:47That's cool.
- 15:48Yeah.
- 15:48Yeah.
- 15:50And just trying to think of other things.
- 15:52I just, like, it seems like every meeting we're voting on, like, five, like, new funding requests.
- 15:57But it's definitely, like, just to, like, help kind of guide, like, the PSF.
- 16:04Like, we recently started, somewhat recently, like, past year or so, started this, like, working group model where it kind of helps, like, people who want to get involved in the PSF and aren't, like, board members themselves can still, like, really contribute to the PSF.
- 16:19Like, we have a working group around, like, elections and, like, how to better, like, the process of elections.
- 16:26And the PSF's job is to sort of, like, recognize that working group and help provide the tools so that they can be successful.
- 16:34That's great.
- 16:36So if somebody out there is listening and they want to get involved, what kinds of things can they do and how do they go about that?
- 16:42Good question.
- 16:44So just to be a member, it's actually quite simple.
- 16:49It's just, like, python.org slash PSF slash membership.
- 16:55And there's, like, different membership classes.
- 16:57The most basic, the lowest tier one is called Basic Members where anyone can sign up.
- 17:02However, in order to be able to, like, vote and stuff, you'll either have to, like, be, like, a contributor in terms of, like, code or, like, sort of contributor in terms of, like, community, like a meetup organizer, like PyLadies organizer or something like that.
- 17:19Or you can, like, give money either as an individual or as a company yourself.
- 17:23And that's, like, how you can, like, vote in terms of, like, the board and, like, who to accept as company sponsors, stuff like that.
- 17:34And if you wanted to get, like, if someone wanted to get involved beyond that, at least become a Basic Member and, like, join all the mailing lists that I can't even remember off the top of my head that are interesting to them.
- 17:46And somewhere on our wiki, the wiki.python.org, is a list of all of our working groups.
- 17:57And I'm sorry, I don't have the link up right now.
- 18:00That's fine.
- 18:01We'll put it in the show notes.
- 18:02Oh, great.
- 18:03And that way they can, like, ping individual people of, like, who they want to, like, help out, like, maybe, like, outreach and education or, like, sprint, like, committee or the elections working group or something like that.
- 18:18And you can get involved in that way.
- 18:20Just participate in the discussion as much or as little as one wants.
- 18:25And then, yeah, we have a pretty active PSF members list.
- 18:30And that's also a good place to kind of have your ear to the ground and know what's going on.
- 18:35Okay.
- 18:35Yeah, that sounds really great.
- 18:37Basically, the starting points, go become a Basic Member and then go from there, which is just a matter of creating an account, more or less, right?
- 18:44Right.
- 18:44Yeah.
- 18:45We have, like, there's information, like, everywhere.
- 18:48And I'll be the first one to say or, like, to agree that it's really poorly laid out, like, where to find what information and, like, what could you be interested in?
- 18:58Like, I don't even know kind of thing.
- 19:00Is it, like, a new member or something like that?
- 19:01So it's definitely really hard to kind of, like, figure out where to go and stuff.
- 19:06But becoming a Basic Member and joining, like, the PSF members list is definitely, like, step one.
- 19:11And then you can ask as many questions as you want from there.
- 19:14Okay.
- 19:15Yeah, that's really helpful.
- 19:15Thanks.
- 19:16This episode is brought to you by Hired.
- 19:30Hired is a two-sided, curated marketplace that connects the world's knowledge workers to the best opportunities.
- 19:36Each offer you receive has salary and equity presented right up front, and you can view the offers to accept or reject them before you even talk to the company.
- 19:46Typically, candidates receive five or more offers in just the first week, and there are no obligations.
- 19:51Ever.
- 19:52Sounds pretty awesome, doesn't it?
- 19:54Well, did I mention there's a signing bonus?
- 19:56Everyone who accepts a job from Hired gets a $2,000 signing bonus.
- 20:00And as Talk Python listeners, it gets way sweeter.
- 20:04Use the link Hired.com slash Talk Python To Me, and Hired will double the signing bonus to $4,000.
- 20:12Opportunity's knocking.
- 20:13Visit Hired.com slash Talk Python To Me and answer the call.
- 20:17Another thing I wanted to talk to you about is PyLadies.
- 20:30And it sounds like PyLadies is sort of what became of your study group that you started.
- 20:35Right.
- 20:36Yeah.
- 20:36And I'm really surprised.
- 20:38You said that it didn't exist in San Francisco, but it did in L.A.
- 20:42And you're like, why is this thing not in San Francisco, right?
- 20:44Exactly.
- 20:45Yeah.
- 20:46Yeah.
- 20:48I mean, that's the whole reason I have this podcast.
- 20:49I went looking for a Python podcast.
- 20:51I'm like, why is there no Python podcast?
- 20:53What happened to them all?
- 20:54Well, I guess if you really want something, you might have to make it yourself sometimes,
- 20:58right?
- 20:58Exactly.
- 20:59Yeah.
- 21:00So you started PyLadies.
- 21:01That's awesome.
- 21:01How long has that been going on, actually?
- 21:03So the San Francisco PyLadies has been around since April 2012.
- 21:08So a little over three years, I guess, if my math is correct.
- 21:11And the first PyLadies in L.A. started sometime in the fall of 2011.
- 21:18I don't know exactly when.
- 21:19So it's pretty established in terms of communities.
- 21:23And yeah.
- 21:25Sure.
- 21:26It's a little regional because this is an international show.
- 21:29But for those listeners in San Francisco, where do you guys meet?
- 21:32Oh, it varies.
- 21:34I mean, tonight we have a meetup and we're going to the Uber office downtown.
- 21:40But we have a lot of weekly meetups, like study groups that go to the LinkedIn offices down
- 21:47in South Bay or Rackspace slash Geekdom up here in San Francisco area.
- 21:53But I mean, we have so many locations worldwide.
- 21:59And a lot of times it's just like regular meetups at a local coffee shop or something like that.
- 22:04Yeah.
- 22:04So if I wanted to see if my local city, like I live in Portland, Oregon, I want to know,
- 22:10hey, is there one in Portland?
- 22:10I think there is actually.
- 22:11There definitely is.
- 22:13Yeah.
- 22:13How would I find out about it?
- 22:14Certainly.
- 22:15Yeah.
- 22:15If you just go to like PyLadies.com, we have like a locations page.
- 22:19And we have a list of all like locations.
- 22:23There's some that aren't up there because in order to like have like your location up there,
- 22:29you have to do like a pull request on GitHub.
- 22:31And sometimes it's just too much for people to like do or too little of like a task item to
- 22:37like remember.
- 22:38So like that's not a complete list.
- 22:40But it's definitely a very good place to start.
- 22:44Now, if you find out that there is no PyLadies like locally, you're more than welcome to start
- 22:52one kind of like how I did myself and how you did your podcast.
- 22:56There's a nice little jumping off point, kit.pyladies.com.
- 23:00Oh, nice.
- 23:01Yeah.
- 23:02That's our like starter kit of like how to bring PyLadies to like your location if you want it.
- 23:07Cool.
- 23:08Yeah.
- 23:08We'll put that in the show notes.
- 23:09Yeah.
- 23:10I think it's really great that you're promoting more diversity in general and specifically about
- 23:16women in programming.
- 23:17You know, I have three daughters and, you know, I would like to see a world where they are excited
- 23:25about these kinds of things and feel like it's a welcoming place.
- 23:29Definitely.
- 23:30I don't know what it is about Python, but it seems like it has a better story in terms of
- 23:36diversity compared to other languages.
- 23:38I would agree with that.
- 23:39Yes.
- 23:40Go ahead.
- 23:42Yeah.
- 23:42I was going to say, I have no idea why this is the case, but I do a lot of training and I'll
- 23:45do training with like classes like MongoDB or C# or other things, JavaScript and so
- 23:52on in Python, of course.
- 23:53And it seems like the Python classes just have a whole, a whole different population that
- 23:59just seems to represent society more correctly than, than the other stuff, which, which is
- 24:04really nice, but I don't really know why.
- 24:06Right.
- 24:07I mean, I started to hypothesize this myself, at least comparing with like other like communities,
- 24:15not necessarily like C, but like, like Ruby or Java or Node, whatever.
- 24:20It really helps to have like sort of leadership of the community kind of really like buy in.
- 24:26But it really helps us that like Guido himself is really passionate.
- 24:31He was actually the first, one of the first speakers that I had at like my Women Who Code
- 24:37Study group.
- 24:37Oh, wow.
- 24:38That's excellent.
- 24:38Yeah, I know.
- 24:39So he's like 100% behind this, these sorts of efforts.
- 24:42And it's very convenient that he lives in the Bay Area for me, right?
- 24:46Yeah, that's cool.
- 24:47He had a really nice presentation that sort of touched on this at PyCon 2015 as well.
- 24:53Right.
- 24:54Yeah.
- 24:54He, he asked, or he wants, he wants basically like women as core developers, because currently
- 25:01there are none.
- 25:01And I think he was like, he's like, I'll help mentor folks or help mentor women to be a core
- 25:07developer.
- 25:07And, you know, I think that's like really awesome.
- 25:10And I'm, I'm actually, I have like a pretty good idea for a meetup here locally, since he,
- 25:16since he's like down the street, practically.
- 25:18So that's sort of help kind of get involved in committing to, to see Python.
- 25:23But yeah, it really, it definitely helps when like leadership like him and the PSF organization
- 25:28itself kind of set the tone of why it's important and, and people sort of just follow.
- 25:34Of course, you know, there's always descending voices in any community in any stance, but it
- 25:40really helps to see that like when leadership says that this is important, people will feel
- 25:46more, more willing to like help out or to like just be proactive about something.
- 25:52So I think that that's the difference between like the Python community and other communities.
- 25:56I agree.
- 25:57You know, there's probably a lot of people on these types of issues that are like sort
- 26:01of just sitting on the couch, like, I'd like to do something about it, but whatever.
- 26:05You know, those little nudges might be enough to actually make a change.
- 26:08Right.
- 26:09Exactly.
- 26:09Another thing I'd like to talk about is a project that you're involved with called New Coder
- 26:14at newcoder.io.
- 26:15Right.
- 26:16Yes.
- 26:17What's the story with that?
- 26:18That looks cool.
- 26:19Thank you.
- 26:20yeah.
- 26:21So this was, so I wrote this a couple of years ago, 2012, I believe is when I first
- 26:27released it.
- 26:27and it's basically, taking, no, it was 2013, I think.
- 26:31I'm basically taking all these sort of projects that I subjected to the people that came to my
- 26:36study group and, and made it in like written form.
- 26:39So like, not just like San Francisco piloties can use them, but like everyone who
- 26:43want, who's willing to learn Python and wanting to learn how to code can, can reach.
- 26:47So, the premise of this is like, say you, you know, did learn Python the hard
- 26:53way or dive into Python or some other sort of work book, like, like sort of goes through
- 26:58the syntax and a little bit of like logic of Python.
- 27:02And you're like, all right, what next?
- 27:04What can, like, I'm not going to get hired right now.
- 27:06So, what can I actually do?
- 27:09So, with new coder is, is there, it's five different, tutorials and, it sort
- 27:16of, it definitely graduates in sort of, difficulty.
- 27:20but, there's no real order.
- 27:23You can like choose whatever order that you want, but, it, the, it's meant to teach the
- 27:29new coder, like various things at various points in time with certain noob friendly language.
- 27:35and like asides, like you might not know this term.
- 27:39Like, or you might not understand what a class is or inheritance is.
- 27:43So here's where you can read more information or, or here's a little blurb that you can just
- 27:46go ahead and skip.
- 27:47If you actually do understand this kind of thing.
- 27:49Right.
- 27:50That's really cool.
- 27:51And I think one of the challenges people have, especially when you're a beginner is to put
- 27:56meaning behind the thing you're struggling with.
- 27:59So for example, if, if you're like having a really hard time with a for loop, foreign loop,
- 28:05or you're having a hard time with like if statements or functions, those are all so small building
- 28:10blocks that they're not interesting in and of themselves.
- 28:14But if, but if you can see like, okay, if I force myself to learn these little kind of
- 28:18trivial, not trivial, but you know, sort of fact based things that I have to just memorize
- 28:23or understand, I can do something awesome on the other side of that.
- 28:26And I think these projects are the key to like making that shortening that cycle, I guess.
- 28:32Yeah.
- 28:32Thank you.
- 28:33Yeah.
- 28:33That's definitely something I was trying to go for with that.
- 28:36But yeah, I've got, I've gotten a lot of good feedback from people just like sending emails
- 28:41saying, you know, like this is exactly what folks needed.
- 28:45And like, I find that when I lead workshops explaining these sorts of things in the way
- 28:50that I've written down a new coder, it helps people kind of like, like have those light bulb
- 28:55moments, which are really needed, especially when you're a new coder, because there are a lot
- 29:00of frustrating moments.
- 29:01And to have like a little light bulb moment is really reassuring.
- 29:04And then to have, and then to have something at the end of the tutorial that you can show
- 29:08off to someone else, that's also rewarding rather than like some simple exercise from like
- 29:13when Python the hard way, like, yay, I did a for loop.
- 29:16Look at that.
- 29:17Yeah, exactly.
- 29:18Yeah.
- 29:19If you have a tutorial with like, you know, data visualization, like from, map plotlib or
- 29:25something, it can actually show that to someone.
- 29:26Yeah.
- 29:28I think that that serves a lot of purposes.
- 29:30You know, I read somewhere, somebody had studied a bunch of entrepreneurs and people
- 29:35in Silicon Valley that, that became successful.
- 29:38And they said, it seems like by studying these people, we've, it's not necessarily the case
- 29:42that the people who succeed versus the people who fail are the ones who are the smartest.
- 29:46It seems like the most important skill is persistence.
- 29:50The ones who just keep trying until they find their way through these, these types of things
- 29:54that you have to power through when you're, you're getting started on stuff and, you know,
- 29:58more complex as you start companies and so on.
- 30:00It seems to be the most important skill.
- 30:02Right.
- 30:03Right.
- 30:03Yes, definitely.
- 30:04And I think tutorials and like concrete examples and stuff make it easier to be persistent because
- 30:09you see what's down the tunnel.
- 30:11You're not like, oh, I hate programming.
- 30:13It's all these little facts.
- 30:14It's like, it's kind of like learning math in the early days when, when nobody connects
- 30:18any dots for you.
- 30:19Right.
- 30:20Exactly.
- 30:20Yeah.
- 30:21Cool.
- 30:22So you have five tutorials up there now.
- 30:24You've got data visualization, APIs, networks, web scraping, and GUI stuff, right?
- 30:30Right.
- 30:31Yes.
- 30:31Yeah.
- 30:33So those are fun.
- 30:34And people, if they're, they're getting started or they want something more practical
- 30:37than just language stuff to play around with, or they need to recommend a resource for someone
- 30:43else, more likely if they're listening to this podcast, then, you know, check out newcoder.io and,
- 30:47you know, pass it around.
- 30:48Thanks for the plug.
- 30:50Yeah.
- 30:50Yeah.
- 30:51You bet.
- 30:51No problem.
- 30:52That's really cool.
- 30:53You also have some open source projects that you're working on connected to your work at
- 30:58Spotify, right?
- 30:59Right.
- 31:00Yes.
- 31:00Do you want to talk a little bit about those?
- 31:02Yeah.
- 31:03I'd love to.
- 31:04So conveniently, actually, this week right now is our hack week.
- 31:10About twice a year, Spotify holds hack weeks to just kind of hack on what you want, not
- 31:15necessarily like Spotify, but it could be Spotify related.
- 31:18And a year ago, I actually hacked together a prototype as a Flask app that was, it's like
- 31:28a playground for APIs.
- 31:29If you go to developer.spotify.com slash web dash API, there's a console linked there.
- 31:37And you can actually play with our APIs via the console to kind of figure out what goes
- 31:42on, what kind of responses you'll get, what kind of queries that we accept, that kind of
- 31:46stuff.
- 31:46I mean, it was pretty awesome because like it came out of a hack week.
- 31:50Everyone sort of like understood why it was important because I hated answering sort of the
- 31:55same questions over and over again.
- 31:57How do I use your API?
- 31:58So I built this.
- 31:59And I guess like a lot of people loved it that we just sort of put it out there and it's been
- 32:04really successful.
- 32:05And from that, I've, I'm open sourcing the technology behind that.
- 32:10And the first thing that I open source, which was just a couple weeks ago, is a RAML parser.
- 32:15And the actual library name is called RAMLifications.
- 32:18Good name.
- 32:20Yeah.
- 32:20I love punny names.
- 32:21But RAML is like, it stands for REST API markup language.
- 32:27And it's like YAML.
- 32:30And it's basically a way for you to kind of define how an API is.
- 32:35Like we have a Spotify API defined in RAML.
- 32:40And you can see the title is like web API and like the base URL, the version, like the endpoints,
- 32:46if it accepts like OAuth or, or something else, that kind of stuff.
- 32:50So it's a really like great, like source, like end all be all source for a web API.
- 32:55And so the RAMLifications, like it parses that into like Python, like objects.
- 33:00And then this week I'm taking that and writing like a static documentation generator.
- 33:09Just making like HTML files that you can like, like host anywhere that creates documentation off of RAML.
- 33:16So if you have your API, your REST API defined in RAML, and like you've written like all the docs in there kind of thing,
- 33:25you can just, you know, run it through this new project that hopefully will be open source soon.
- 33:30And you'll have some nice HTML files.
- 33:32And then from there, this is like the in-between step, I'll actually like open source the console itself.
- 33:38So that, so folks can make their own sort of web site for how to interact with, with their own API.
- 33:46Yeah, that's really neat.
- 33:49I think those are a cool set of projects that all kind of work together.
- 33:52A lot of times you'll end up with these, you know, just basically static documentation around, around people's APIs.
- 33:59And then, you know, if it doesn't quite work, like the way you're interpreting what they have written, or, you know, if, if it changes and the API documentation comes, becomes out of date, it's super frustrating.
- 34:11Right.
- 34:11And you end up writing these little, little apps to just like call the API and spit it out to go, okay, this is what I'm actually getting.
- 34:17What does it look like?
- 34:18And, and your, your web API console is just like, let's skip that.
- 34:22And you can just check it right here.
- 34:23Right, exactly.
- 34:24And some people are just more visual or more interactive rather than reading through documentation.
- 34:29So, yeah.
- 34:30Yeah.
- 34:31It's never really like inspiring to read through documentation.
- 34:34I think it kind of goes back to that persistence thing.
- 34:37Like, am I willing to power through this so I can have a cool app that uses Spotify or, or am I going to stop because the documentation is, is too much.
- 34:44Right.
- 34:45But luckily you're solving that problem.
- 34:46Have you noticed any change in like the adoption of the API or how long has it been out?
- 34:53It's not.
- 34:53I think it's been out at least six months or so.
- 34:57Okay.
- 34:57So maybe that it could possibly have some sort of effect you could see.
- 35:00Right.
- 35:01I'm going to be honest that I don't pay attention to our usage, web API usage.
- 35:06But I do know that like the site that the console itself gets maybe like low tens of thousands of views a month.
- 35:15So it is being used.
- 35:17And yeah, it's definitely an internal favorite too.
- 35:20Yeah.
- 35:20I'm sure.
- 35:21I'm like, oh, I want to test our own API.
- 35:24Let me go have a look.
- 35:24I forgot what this does.
- 35:25Right.
- 35:25I'm sure this happens.
- 35:27Or hey, you're new here.
- 35:28Go here first.
- 35:29Go check this out.
- 35:30Right.
- 35:30Yeah.
- 35:32Nice.
- 35:33So it sounds like these projects are really closely tied to what you're doing at Spotify.
- 35:36And they're all in Python.
- 35:38What's the story with Python at Spotify?
- 35:39Can you talk about that?
- 35:40Sure.
- 35:42It's actually kind of a sad story.
- 35:45So my team and what I do, I'm back an engineer with five other developers.
- 35:53And we do like strategic integrations.
- 35:56We're based in San Francisco.
- 35:58So like a lot of the integration projects is with other local San Francisco like companies.
- 36:04For instance, the recent Spotify and Uber integration where you can like listen to music during your ride through the car speakers.
- 36:14Like that was like us.
- 36:16That was our team that did that.
- 36:18That's pretty awesome.
- 36:18Yeah.
- 36:19So it was really awesome.
- 36:21Really fun.
- 36:21And so we do stuff like that.
- 36:25And in some cases stuff is written in Python, but more often than not it's now being like written in Java.
- 36:31The reason is we kind of like we kind of had this like corporate like mandate maybe about a year ago that we're kind of writing new services that have end user like facing like capabilities or like whatever.
- 36:47They have to be like written in Java.
- 36:50And it's because that I know a lot of people will say, well, wait, Spotify is like IO bound, not CPU bound.
- 36:58Why the move?
- 36:59And it's true that we are IO bound.
- 37:01And however, there's a lot of issues when trying to run like, I don't know, like 23 like processes of the same service on one machine trying to connect to the same Postgres database and memcache and stuff like that.
- 37:18So there's a lot of orchestration that gets complicated when you have multiple like Python processes running on one server.
- 37:24So believe me, I've tried, I've had many arguments.
- 37:28I've like sat down with our senior architect and really try to like go for Python and maybe PyPy or something like that.
- 37:35But in the end, I kind of like lost the argument.
- 37:39And so a lot of our end user facing stuff like the web API is written in Java.
- 37:46However, there's a lot of other stuff written in Python.
- 37:50For instance, let's see, all of our analytics stuff is in Python.
- 37:56We have Hadoop and we can run stuff with Java, but a lot of the actual jobs are written in Python.
- 38:04And then we have, let's see, like our DNS sort of service discovery systems written in Python.
- 38:12However, I think that's starting to move to our payment system in Python.
- 38:17Content management where like the labels that actually give us the music, that they'll dump a lot of metadata and songs itself to us, like FTP or something like that.
- 38:31And we process all of that in Python because it's like not really end user or speed.
- 38:37Yeah, you're not concerned about shaving that 5% performance off or whatever, right?
- 38:42Right, exactly.
- 38:44So there is a lot of Python within Spotify.
- 38:48It's just like not what...
- 38:50It's not at the center.
- 38:52Yeah, yeah, exactly.
- 38:53Yeah, okay.
- 38:54Well, that sounds really interesting.
- 38:56You were saying like some of the thoughts about like running a bunch of processes on this machine and on the treble.
- 39:02You know, maybe you guys could try some tricks with Docker.
- 39:07This could be a possibility.
- 39:08We actually...
- 39:09Have you tried that?
- 39:10We're actually using Docker.
- 39:11We're migrating towards Docker.
- 39:13We have open source Helios, which is our Docker manager or something like that.
- 39:18And that will also...
- 39:20That supposedly, in a lot of Pythonistas' eyes, will allow us to be okay with like running our services in Python.
- 39:27But it's still in the very early stages of like what Docker and Helios can do.
- 39:31Okay, that's really excellent.
- 39:32That's at github.com/Spotify slash Helios.
- 39:35I'll put that in the show notes as well.
- 39:37Very nice.
- 39:37Yeah.
- 39:39And then have you guys thought about Jython?
- 39:41Like if you're so into Java?
- 39:43Yeah.
- 39:45I actually don't know what our senior architect feels about that.
- 39:50I don't...
- 39:51Like I've actually never played with like within Jython.
- 39:53But it's definitely something to go the direction to look into.
- 39:58Sure.
- 39:59I know some of the other major companies around there are using it.
- 40:02But I probably shouldn't talk about it since I'm not sure if I'm supposed to.
- 40:05If I'm allowed to.
- 40:06But yeah, there's definitely some large like high-end web companies out there doing cool stuff with Jython.
- 40:13For a while, I thought it was dead.
- 40:15It seemed like it hadn't been updated in a long time.
- 40:17It was like supported like Python 2.5 or something.
- 40:20And finally, I think it now supports 2.7, but it still doesn't support 3 as far as I know.
- 40:25Mm-hmm.
- 40:26Right.
- 40:26A couple of years or maybe like a year and a half ago, we had one of the core developers of Jython come speak up, high ladies.
- 40:34And he was like, we just released 2.7 and now we can start 3.
- 40:38So there is energy and people behind it.
- 40:40It's just like not enough people.
- 40:42I'm sure it's a massive project.
- 40:44And if it doesn't have a lot of support, it's really hard to keep up.
- 40:47Definitely.
- 40:47But yeah, I'm glad to see it going because I know it enables some people to do cool stuff, which is all good.
- 40:53Mm-hmm.
- 40:54Right.
- 40:55So another thing that you like to do is speak in at conferences and user groups and meetups and stuff, right?
- 41:01Right.
- 41:01Yeah.
- 41:02And I saw you have a page with a whole bunch of sessions, like, I don't know, just a quick scroll count.
- 41:08It's like 15 or something, but quite a few at rogueland.com slash talks.
- 41:12Mm-hmm.
- 41:14Are there some of your favorites up there that you want to, like, point out to people, maybe have videos or something?
- 41:18Right.
- 41:20As an aside note, I literally just, like, over the weekend redid my site.
- 41:25And I only redid it for, like, the words part, like, the blog part.
- 41:28So I apologize if, like, people are going to, like, rogueland.com slash talks and be like, ew, this looks ugly.
- 41:34Like, whatever.
- 41:35Like, I'll get there.
- 41:36Let's say it looks minimalist, huh?
- 41:37Yeah.
- 41:38Yeah.
- 41:38Yeah, definitely.
- 41:39But yeah.
- 41:41So, like, actually, one of my favorite talks to give is how to spy with Python.
- 41:46And it's basically, like, working with Scapee, the project Scapee, to basically sniff, like, wireless traffic.
- 41:55It's a Python wrapper around TCP dump.
- 41:58And it's really fun to show people what you can do because that's basically what the NSA is doing.
- 42:04And, like, it's a tongue-in-cheek way to, like, show people, like, what's going on in, like, an international global level of, like, privacy issues.
- 42:13But Scapee is a lot of fun to play with.
- 42:15And it's one of my favorite talks to give.
- 42:17Yeah, that sounds really cool.
- 42:19Yeah.
- 42:19I recommend people check it out.
- 42:21And some of these are on YouTube and other places, Vimeo, whatever, right?
- 42:24Right, yeah.
- 42:26I try to link to everything.
- 42:27I should probably update some of this stuff, too.
- 42:30Well, if the page is in for a refresh, maybe, huh?
- 42:33Yeah, right.
- 42:34Cool.
- 42:36I'll put some of those in the show notes as well, and I'll link to that, of course.
- 42:39I think that just about covers all the stuff that I wanted to talk to you about.
- 42:44And I think it's a whole bunch of interesting paths.
- 42:49Like you said, it's a little scattered, but they're all super interesting.
- 42:52And so if people are out there with, like, meetups or user groups, can they, you know,
- 42:56do you recommend they go to New Coder and try some of your tutorials,
- 43:00maybe make those, like, workshops or sessions or something there?
- 43:04Yes, definitely.
- 43:05I have a couple of them.
- 43:08If you go to New Coder, I think it's just slash workshops,
- 43:11that there's, like, PDF versions of everything.
- 43:15They do need to be updated since my last site refresh.
- 43:18But everything's also on GitHub.
- 43:20And please feel free to, like, take them, adapt them however you want,
- 43:25and teach off them.
- 43:26A lot of PyLadies leaders actually take a couple of tutorials to lead their own workshops.
- 43:32So by all means.
- 43:34You know, I've done some stuff with Hour of Code and so on,
- 43:37and it seems really daunting to lead those types of groups
- 43:40and put something together for people to really appreciate.
- 43:43But if you can grab a resource like that, or, you know, in the case of Hour of Code,
- 43:47some of the little tutorials and stuff they have online,
- 43:50it makes it so much easier to get involved and help out in the community.
- 43:53Right, definitely.
- 43:54There's one more thing for people to, let's say it this way,
- 43:58there's one fewer excuse for people to use.
- 44:02Right, yeah.
- 44:02All right.
- 44:04Anything else you want to talk about while you're here?
- 44:08Let people know about?
- 44:09Well, I'll be at EuroPython.
- 44:11So if anyone else is going to EuroPython, come to say hi.
- 44:14I'm giving a couple talks there.
- 44:16That'll be excellent.
- 44:17What are the talks?
- 44:18One is one that I actually just gave this weekend.
- 44:21It's about how my team is doing metrics and how we're, like, it's metrics-driven development,
- 44:26how we're powering sort of the data that we are newly collecting behind, like,
- 44:30the sort of decisions that we're making.
- 44:32And the talk is about kind of taking what we learned and, like,
- 44:38you don't need to necessarily measure everything, but, like,
- 44:40what do you need to measure and how do you decide that?
- 44:43And then the other talk that I'll be giving is basically kind of sort of like a status update
- 44:50slash what we still need to do about, like, diversity in Python.
- 44:53We've come a long way, but there's still a long way to go to really sort of create a welcoming environment for everyone.
- 45:02And since Python community is a leader, we should, in that sort of thing,
- 45:06we should definitely continue to be a leader in being very diverse and welcoming.
- 45:11Yeah, I totally agree.
- 45:12And it seems like that's still a really positive thing going on there.
- 45:16It's just not done.
- 45:18Right, right, yeah.
- 45:19All right, so one of the questions I like to ask my guests before we wrap up a show is,
- 45:25what's your favorite PyPI package or thing out there that you'd like to tell everyone,
- 45:29hey, check this out, it's really cool?
- 45:31Ramifications, of course.
- 45:32Right, yeah.
- 45:34But besides something else that I've written,
- 45:39one of my favorite packages that kind of was released a few weeks ago was attrs, A-T-T-R-S.
- 45:47And it's basically a package that allows you to, like, not have to write a bunch of boilerplate code.
- 45:54Like what? Give us an example.
- 45:55So actually, I use it in ramifications.
- 45:59Adders allows you to kind of, like, make a nice class and, like, set some attributes of, like,
- 46:08this should be in the init method or should be in the repr method.
- 46:12And allows you to do, like, some, like, comparisons, like a complete set of comparisons.
- 46:19It just, it makes, like, writing code even easier, even more simpler.
- 46:24Yeah.
- 46:24Yeah, that's cool.
- 46:25Very cool.
- 46:26Like default values and things like that.
- 46:28Right.
- 46:28Yeah.
- 46:29Okay.
- 46:29Exactly.
- 46:29Very nice.
- 46:30Yeah, I'll put that in the show notes.
- 46:31And they've got some good documentation as well.
- 46:34Yes, definitely.
- 46:35And, yeah, ramifications definitely uses it.
- 46:37And, like, so much more code would have been written without it.
- 46:40Really nice.
- 46:41Really nice.
- 46:42All right, final question before you go.
- 46:44What editor are you using these days?
- 46:46I use Sublime.
- 46:48Sublime.
- 46:48Oh, yeah.
- 46:49Yeah.
- 46:49I like Sublime as well.
- 46:51I do, too.
- 46:53My coworker's trying to get me to use, like, PyCharm or IntelliJ.
- 46:56But, I mean, every time I try, I just get sad.
- 46:58So, I just move back to Sublime.
- 47:00Yeah, that's really interesting.
- 47:01I use Sublime for a lot of things.
- 47:03I'm a big fan of PyCharm myself as well.
- 47:06But I certainly, you know, a close second is Sublime for many things.
- 47:11It's definitely nice.
- 47:12Right.
- 47:13All right, Lynn.
- 47:15Thank you for being on the show.
- 47:16It's been super interesting to touch on all these topics.
- 47:19Yes, thanks for having me.
- 47:20It's been a lot of fun.
- 47:21Yeah.
- 47:21Great.
- 47:22And we'll put links to, like, your website and your Twitter and everything in the show notes
- 47:25so people can just go to the website and find you that way.
- 47:27That's fantastic.
- 47:28Thank you so much.
- 47:29Thanks.
- 47:30Bye.
- 47:30This has been another episode of Talk Python To Me.
- 47:34Today's guest was Lynn Root.
- 47:35And this episode has been sponsored by Codeship and Hired.
- 47:39Thanks, guys, for supporting the show.
- 47:41Check out Codeship at Codeship.com and thank them on Twitter via at Codeship.
- 47:46Don't forget the discount code for listeners.
- 47:48It's easy.
- 47:49Talk Python.
- 47:50All caps.
- 47:50No spaces.
- 47:51Hired wants to help you find your next big thing.
- 47:54Visit Hired.com slash Talk Python To Me to get five or more offers with a salary and equity
- 48:01presented right up front.
- 48:02You'll also get a special listener signing bonus of $4,000.
- 48:05There are just two more days to get the Talk Python To Me t-shirt.
- 48:09Quick, go to bit.ly slash python shirt and reserve yours before the Kickstarter closes on Thursday.
- 48:14You can find the links from the show at Talk Python To Me.com slash episodes slash show slash 15.
- 48:22And before you go, be sure to subscribe to the show.
- 48:25Open your favorite podcatcher and search for Python.
- 48:27We should be right at the top.
- 48:29You can also find the iTunes and direct RSS feeds in the footer on the website.
- 48:33This is your host, Michael Kennedy.
- 48:35Thanks for listening.
- 48:36Smix, take us out of here.
- 48:38I'm first to follow.