Latest / Talk Python To Me / #251: Building and UX Testing Azure's Python SDK
Transcript
- 0:00What does it take to build a Python library that will be used by a large number of developers?
- 0:04This happens all the time in open source.
- 0:06Projects take off and become wildly successful.
- 0:09What if you could sit down with the developers using your library and see how they take to it?
- 0:14Well, over on the Azure team, Kate Olsewska and Johan Stenberg do incredible user testing for Azure's Python SDK.
- 0:22Just to give you a taste, imagine a room with a computer, a couple of developers unfamiliar with the API,
- 0:28a one-way mirror, and lots of feedback.
- 0:31This is Talk Python To Me, episode 251, recorded Monday, January 27th, 2020.
- 0:38Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem,
- 0:57and the personalities.
- 0:58This is your host, Michael Kennedy.
- 1:00Follow me on Twitter, where I'm @mkennedy.
- 1:02Keep up with the show and listen to past episodes at talkpython.fm.
- 1:06And follow the show on Twitter via at Talk Python.
- 1:08This episode is brought to you by Springboard and Clubhouse.
- 1:12Please check out what they're offering during their segments.
- 1:14It really helps support the show.
- 1:16Kate, Johan, welcome to Talk Python To Me.
- 1:18Hi.
- 1:19Thank you.
- 1:20It's great to be here.
- 1:21Yeah, it's great to have you both on the show.
- 1:23I'm really excited to talk about creating Python APIs and how you communicate those and document
- 1:30them for Azure.
- 1:31Azure is so huge.
- 1:35And I haven't even done anything with Azure for a couple of weeks, probably.
- 1:38Maybe even a couple of months, counting some vacation time in there.
- 1:41And there's just so many things.
- 1:44So these libraries are super far reaching.
- 1:45So it's going to be fun to dig into all those, I think.
- 1:48Now, before we do, though, let's start with your stories.
- 1:51How do you all get into programming in Python?
- 1:53Kate, let's start with you first.
- 1:54Me first.
- 1:55Okay, sure.
- 1:56So my story is relatively short.
- 1:57I started with Python as the first language that I picked up in my first intro to programming
- 2:04class.
- 2:04And it kind of stuck with me throughout.
- 2:06Yeah, cool.
- 2:07And did you start out in computer science just planning to go down that path?
- 2:10Or did you study something else?
- 2:11I was initially studying economics.
- 2:13And kind of in a lot of data science that economists do, you know, there's a lot of existing
- 2:18software.
- 2:19But at some point, I figured there's more flexibility if you do some things on your own.
- 2:24And that's when I started to pick up more of data science through Python.
- 2:27And that's what led me into it.
- 2:28Yeah, I never really thought of economics as having this super strong data science side
- 2:34to it.
- 2:34But the more that I talk to data scientists, a lot of them come from economics background.
- 2:39It's pretty interesting.
- 2:40Yeah, there's a lot of analysis that's done on like really large scale.
- 2:44And there is a huge need.
- 2:46And mostly what happens is that a lot of economists just work with data scientists to help them provide
- 2:52the data and the analysis, while they just provide kind of contextual information.
- 2:58But in the end, it's most efficient if you can do some stuff on your own.
- 3:02Yeah, absolutely.
- 3:03It's definitely great if you can solve your own problems and not go asking for help, right?
- 3:07Yep.
- 3:07Johan, how about you?
- 3:08How do you get in programming in Python?
- 3:10Actually, I did not start until five years ago in Python specifically.
- 3:14At the time, we were looking at rebuilding the client libraries.
- 3:18And specifically in that case, the command line interface for communicating with Azure.
- 3:24We had one that was written in JavaScript.
- 3:27And we decided that that needed some overhaul.
- 3:31So we looked into doing that in Python.
- 3:33So that's how I got started with Python.
- 3:35Right.
- 3:35And what you're talking about, this is not just the libraries that maybe Python people
- 3:39might use.
- 3:40This is the command line interface for working with Azure as a Java developer or as whatever,
- 3:45right?
- 3:46It doesn't matter what language you are.
- 3:47Like, this is the language you guys decided to implement it in or move to, at least.
- 3:52Correct.
- 3:52So it gave me my first introduction to both Python, the language, but also the client libraries
- 3:57that we had to use in order to implement the CLI.
- 4:00But you're absolutely correct.
- 4:01That was an application that we wrote in Python.
- 4:04Right, right.
- 4:05Where were you coming from before then?
- 4:07What language?
- 4:08Not surprising.
- 4:10A lot of people at Microsoft write code in C#, in C++, although I haven't done much
- 4:17C++ in the last decade or so.
- 4:19But I've also written code in Visual Basic.
- 4:21I'm probably one of the few people that have written Visual Basic.net code that ships as
- 4:27part of Visual Studio.
- 4:28So, but C# primarily.
- 4:30Yeah, yeah.
- 4:31What's the story of Visual Basic.net these days?
- 4:33Is that still a thing?
- 4:34I mean, I know technically it's supported, but it feels like the main story that Microsoft's
- 4:39telling around their own internal languages is C#.
- 4:41Most users, I'm actually not up to speed.
- 4:45I haven't been on the Visual Basic.net team.
- 4:47I left that in 2005 or something like that.
- 4:50So I've kind of lost contact with my friends over in VB.net land.
- 4:54Sure.
- 4:55No, no worries.
- 4:56How'd you get into programming in the first place?
- 4:58I'm from Sweden originally.
- 4:59We had a toy store in Stockholm, the capital of Sweden, and they had a wall full of home
- 5:06computers is what they were called at the time.
- 5:08Commodore 64, Svick 20.
- 5:09As opposed to the machine sized ones?
- 5:12As opposed to the PCs that became popular later on and all of that.
- 5:17And there was always something fascinating about being able to tell a machine what to do.
- 5:23Although a kind of archaic way that you have to tell it what to do would wrote things in
- 5:28basic at the time.
- 5:28But just having playing with it and getting it to print your name over and over again.
- 5:33I think that was my first program as it wasn't Hello World at the time.
- 5:37It was your one was here.
- 5:39It was Hello, Johan.
- 5:40But yes.
- 5:42I don't know.
- 5:43From that point on, I realized that that's what I'm going to do when I grow up.
- 5:46That's what I did when I grew up.
- 5:47Yeah, that's super cool.
- 5:49Well, both of those are really great ways to get into programming and cool stories.
- 5:53I guess another follow up question before we move off this intro bit here.
- 5:58So Johan, you had said that your first exposure to Python was when you guys rewrote the CLI
- 6:06in Python, which is good.
- 6:08But then you also, to implement that, had to use all the Python libraries that other people
- 6:16who wanted to automate Azure or talk to parts of Azure with Python had to use as well.
- 6:20What was that experience like?
- 6:21Was it like, oh, these are great libraries.
- 6:23They're really well put together.
- 6:25It was like, wait a minute.
- 6:26This seems different than all the other stuff I see online.
- 6:29It looks more like C# in Python.py files.
- 6:33I have no idea.
- 6:34I'm asking.
- 6:35What was it like?
- 6:36It was a little bit all over the place.
- 6:39One thing that we do here at Microsoft is quite a few of what we consider to be the control
- 6:45plane.
- 6:45That is how you create resources in Azure.
- 6:48Those are auto-generated from Swagger or OpenAPI, which means that they are auto-generated libraries
- 6:54with all of the good and bad that comes with that.
- 6:57Other libraries were what we consider to be the data plane that is actually using the service
- 7:03software provision that, uploading blobs, things like that.
- 7:06They were hand-authored.
- 7:07So there was a wide variety of how, what the client libraries looked like, what patterns
- 7:14they used in there.
- 7:16So it was a little bit all over the place.
- 7:18Yeah.
- 7:18So maybe just define Swagger and OpenAPI for folks listening.
- 7:21Not everyone's API developer.
- 7:23Ah, sorry.
- 7:24Sometimes I forget.
- 7:25That's part of my life as well is reviewing REST APIs.
- 7:28So...
- 7:29Yeah, no worries.
- 7:29You're deep in it.
- 7:30Yes.
- 7:31Deep in it.
- 7:32It's a way of describing a REST API.
- 7:34So basically, OpenAPI is an open standard that allows you to describe your endpoints, what
- 7:42kind of data that they can accept and what kind of data that they will return if you call
- 7:47them.
- 7:47So it's something like you guys have maybe implemented your endpoints, your REST endpoints
- 7:52and, I don't know, ASP.NET Web API or whatever you guys chose.
- 7:56And then you added Swagger to it.
- 7:58And then everyone else is like, hey, we need libraries for these.
- 8:00We can auto-generate some Python libraries or JavaScript libraries or whatever it is you
- 8:06can auto-generate off of Swagger.
- 8:08Is that sort of how it went?
- 8:09Yes.
- 8:09So it's both that.
- 8:10And we still do that.
- 8:11We have, there's a requirement for all Azure services to describe their REST APIs using
- 8:17OpenAPI.
- 8:18And it has a tool chain both to generate libraries as well as documentation, reference documentation
- 8:24and tooling for trying to ensure consistency among the REST APIs.
- 8:28Yeah.
- 8:29Oh, that sounds really fun.
- 8:30Now, next thing related to this, I want to ask you what you do day to day.
- 8:35And we got a sense of what you do quite a bit there, Johan.
- 8:39But maybe give us the quick flyover and then Kate can tell us what she's up to as well.
- 8:44Yeah.
- 8:45So the two main areas of responsibility that I have is I'm the architect for the Azure client
- 8:52libraries for Python.
- 8:53So I'm responsible for the overall design guidelines that we have that are publicly available.
- 8:58I'm trying to help the people on my team figure out what the common patterns should be, what
- 9:04their handling should look like, what authentication should look like.
- 9:07So that's one half of my job.
- 9:09The other half of the job is to look at Azure's service APIs and try and ensure that we have
- 9:15as much consistency as we can on that side as well.
- 9:18Is it across different services or across different languages for a given service?
- 9:23It's across different services for on the service API side of things.
- 9:27The cross languages is a really interesting question because we have, I'm the architect
- 9:32for Python.
- 9:33We have, I have counterparts for JavaScript, TypeScript, Java for C#.net, obviously.
- 9:39So what we are looking at is we're looking at these guidelines.
- 9:42The capabilities have to be roughly the same for all languages.
- 9:45If a service exposes a feature, all languages need to be able to expose that feature.
- 9:50If a service has some specific failure modes or some quirks to it, everybody has to deal
- 9:56with that.
- 9:56So we're having discussions both how to best implement it in Python, but also making sure
- 10:00that for all languages that we provide client libraries, that they all have the same capabilities
- 10:05as well.
- 10:06Right, right.
- 10:06Yeah.
- 10:07That's got to be an interesting intention.
- 10:08Kate, how about you?
- 10:10What do you do today?
- 10:11I'm a program manager on the same team, but on my side of things, we like to call ourselves
- 10:17just Azure developer experience, because one aspect of having that great experience with
- 10:22the libraries is having great libraries.
- 10:25But another is also making sure that the experience you get when you come to Azure as a developer
- 10:31is that everything is straightforward.
- 10:32If you go to the portal, we find the information that you need to get started and everything else.
- 10:37So we like to work with other teams across Microsoft and across Azure to ensure that we bring that
- 10:43consistency in other places as well.
- 10:45My main job is to bring the voice of the developers using Azure into the designs that we have in
- 10:52all of these places.
- 10:53Cool.
- 10:53That sounds really fun.
- 10:54And you guys have some really neat stuff that we're going to dig into that you're using over
- 11:00there.
- 11:00The scale of Azure, kind of like I was saying before, it's a little bit, I mean, I guess if
- 11:06people use AWS, they probably have a similar feeling.
- 11:08Although I feel like Azure is even more so these days.
- 11:11You just go there and it's like, you know, this huge menu of so many different choices.
- 11:17It's a lot to keep track of and help people discover, right?
- 11:21Yeah.
- 11:21That's actually one of the main issues that we see for people who are just trying to, you
- 11:25know, play around with these platforms.
- 11:27And I think that applies across, you know, both Azure and AWS and everywhere else.
- 11:32There's just so many different services to begin with that it might be kind of overwhelming
- 11:36to know where you need to go.
- 11:38So I think eventually our goal is to make sure that that choice becomes easier over time.
- 11:43Have you guys thought of things like a beginner view or something, you know, for lack of a
- 11:50better word, something that hides a lot of the stuff and just says, I'm a web developer
- 11:55in this language.
- 11:55Just show me the 10 things that I might care about.
- 11:59Yeah.
- 11:59I think we're trying to create some sort of tracks based on what we believe people might
- 12:03be developing in our documentation so that it's easier to consume.
- 12:07But I think, you know, maybe that's a good idea.
- 12:09Just have a very simple beginner view.
- 12:11Yeah.
- 12:12Like show me everything.
- 12:13I don't know.
- 12:13It just, my experiences there has been, it's like, wow, I'm on a bit of a treasure hunt,
- 12:19you know, to go through things here.
- 12:21Yeah.
- 12:21Very cool.
- 12:22Now, you guys are also, Kate, you're also involved in some of the documentation and
- 12:26tutorials and things like that.
- 12:28Johan, are you as well?
- 12:29Yes.
- 12:30Yes, I am.
- 12:31Yeah.
- 12:31Actually, in our team, we were trying hard to have a greater push for creating better documentation
- 12:38overall.
- 12:39I think one of the problems with the auto-generated libraries is that that sometimes ends up being
- 12:44not the best documented library in the end.
- 12:46And that's why all of our developers really focus and spend time on writing better comments
- 12:53and including more instructions for people to get started with.
- 12:56Yeah.
- 12:56Some of those auto-generated documentation things, it can be really tricky because it could
- 13:01say like, you know, the function could be log in.
- 13:04The documentation might be logs in user or upload uploads file, right?
- 13:10It's just like one or two words or it just takes the name with a function and breaks it
- 13:14out into like English-like words instead of compound words or whatever.
- 13:17And it's just like, yeah, you can tell that, okay, this documentation, this is not going to
- 13:21be helpful for me, right?
- 13:23So it's good to have something really, you know, custom there, right?
- 13:26Yeah, exactly.
- 13:27Yeah.
- 13:27One of the challenges, I guess, let me ask you, Kate, how much are you focused on Python
- 13:32specifically and how much are you focused sort of cross-language working on this stuff?
- 13:36I am focused on all languages to an extent because, you know, if we're creating some standards
- 13:41for documentation that should apply across all of them, Python shouldn't be getting some
- 13:45extra treatment just because it's Python.
- 13:47I don't see why not.
- 13:49Maybe that's just me.
- 13:51Sure.
- 13:52Let's document just Python, nothing else.
- 13:54I was more asking, like, are you specifically on like the team that does the Python parts
- 13:58and there's other people doing the same thing for JavaScript or are you like overseeing it
- 14:03for all the languages?
- 14:03Our split in terms of who cares about what is pretty complex on the PM team.
- 14:09My focus was for Python in a sense of helping with user studies and helping with some telemetry
- 14:15searches.
- 14:16But in terms of all of these kind of overarching themes, I work with all of the languages.
- 14:21Okay.
- 14:21Yeah.
- 14:22Yeah.
- 14:22Cool.
- 14:22This portion of Talk Python To Me is brought to you by Springboard.
- 14:28Springboard offers online data science and machine learning education through their Machine
- 14:33Learning Education Career Track program.
- 14:35This is similar to an online machine learning boot camp with the difference that this career
- 14:40track follows a project-based learning methodology where students work towards creating their own
- 14:45portfolio of machine learning models.
- 14:47And every student is paired with a machine learning expert who provides unlimited one-on-one mentorship
- 14:52throughout the program via video conferencing.
- 14:55This program was built for software engineers.
- 14:58So to be eligible, you must have at least one year of experience.
- 15:01You'll get a machine learning job guaranteed.
- 15:03Springboard is the first company and still the only company in the U.S. to offer a machine learning
- 15:09engineer career guarantee for students interested in changing careers.
- 15:13That means either you get a job in the industry or your tuition is reimbursed.
- 15:17So to get started today, just visit talkpython.fm/springboard or click the link in your
- 15:23podcast player.
- 15:26One of the challenges I can see here right away and your joke, Johan, sort of touches on it a little
- 15:33bit.
- 15:33I mean, I know you're joking, but you've got some endpoints, some cloud stuff that you want
- 15:39to control and do things.
- 15:41And every language has its own idiomatic way of working, right?
- 15:47You know, Python has Pythonic code.
- 15:49Other languages have, you know, whatever, whatever they call it.
- 15:54Right.
- 15:54But there's always an idiomatic way of doing things.
- 15:56And sometimes that really lends itself to doing something quite different than other languages.
- 16:02How do you trade off trying to make it so that somebody who's a C# developer working
- 16:08with a Python developer, it's not like two different worlds, but also it doesn't feel like somebody
- 16:13put C# or JavaScript into a .py file.
- 16:17Yeah, you're absolutely right.
- 16:18that's a constant tension.
- 16:20And we've had plenty of discussions among the architects for the various languages here
- 16:24on how to accomplish exactly that.
- 16:27And the way that you iterate through things is different a little bit in Python than it
- 16:33is in C#.
- 16:35For Java, we have builder patterns for things.
- 16:38A lot of interfaces, a lot of builders, a lot of patterns over in the Java world, for sure.
- 16:42Yes.
- 16:42So it is a challenge.
- 16:44We're trying to make sure that we can talk when we talk about the abstract concepts, for
- 16:49the most part that you can understand.
- 16:51You can basically say if you talk about a specific thing, a specific noun, be that the blob or something
- 16:56like that in one language, that you can map it down to what that means.
- 17:00If I look at code in a different language, exactly what it looks like is going to be slightly
- 17:04different because otherwise you're stuck with something that is going to be looking like
- 17:09a specific programming language.
- 17:11We certainly had that problem when I started here that we had some jokes.
- 17:15Some of the usability studies that we had, the participants were arguing about what language
- 17:20the original library was written in or the developer, what language they preferred.
- 17:25Could they see the abstraction leaking through and go, I know, I think I know what this is.
- 17:30Yes.
- 17:30There was one of the early Python library usability studies that we had where they argued whether
- 17:35or not it was a C# or Java developer that had written the Python library.
- 17:39And it made me feel sad.
- 17:41Neither of those are the right answer.
- 17:44I don't know what the answer is, but that's not right.
- 17:46Right.
- 17:47Right.
- 17:48Yeah.
- 17:49Kate, you're back there laughing.
- 17:51Do you have some stories like that that you experienced as well?
- 17:54Yeah.
- 17:54I mean, as Johan mentioned, being kind of blamed of over C#ying all of our libraries
- 18:00was one of the, I think, initial kind of triggers that also made us want to explore the space
- 18:06we're in and launch our team to begin with to make sure, you know, people no longer have
- 18:11these doubts anymore.
- 18:12You know, it's interesting, right?
- 18:14Like, I'd like to hear what the user testing sort of uncovered for this.
- 18:19But to me, when I use a library, I'm trying to write some program and then I'm like, oh,
- 18:24I'm going to bring this library into the program.
- 18:26And it's clearly not following the idioms of the language.
- 18:29You can just tell.
- 18:30You're just like, ah, there is something.
- 18:32This, you just get this feeling like this wasn't really made for me.
- 18:36It was kind of thrown together so I could still work with it.
- 18:40But it's not for me.
- 18:41You know what I mean?
- 18:42As a whatever developer, right?
- 18:44If you're Python and you're consuming something that looks like C# or you're a C#
- 18:50developer, you're consuming something that looks like C++ or whatever it is.
- 18:53It's not a great feeling like, oh, this is a this is the place they want me to be, right?
- 18:58Yeah, no, absolutely.
- 19:00I do think so.
- 19:01Something that I've learned working with the other architects for the different languages
- 19:05that each programming language community has its own personality as well.
- 19:09And I found the Python users are generally extremely pragmatic, which is something that I very much
- 19:16appreciate.
- 19:17Yeah, I would say that's a pretty good classification, right?
- 19:21They don't bring all these design patterns and these extra structures and whatnot in just
- 19:26for the sake of saying it's well designed or well factored.
- 19:28It's like, we'll do that if we need to.
- 19:30But let's just put a function in a file and try that first.
- 19:33Something like that, right?
- 19:34Yep.
- 19:35So, yeah, there are lots of other other discussions on what is the best way of doing React in some
- 19:42of the other language communities.
- 19:43I have not seen too many of those things show up in Python discussions.
- 19:48Yeah, that's a tough challenge.
- 19:49How do you guys, either of you or both of you handle this?
- 19:53Because, yeah, every language has its culture and its community, but you can only immerse yourself
- 19:58so deeply in so many different cultures, right?
- 20:01And really get the zen of it.
- 20:04So, how do you keep track of the other ones?
- 20:06Or is that just you work with the other folks that are more those language experts or whatever?
- 20:11The way our team is structured is that we have four separate teams with each of them has an
- 20:16assigned PM, an assigned architect, and an engineering lead in the entire engineering kind of team.
- 20:22We're really trying to become experts in that particular language.
- 20:26So, it becomes easier to track this as, you know, we have kind of separate entities that are caring about each language.
- 20:33Yeah, they have that expertise or whatever, right?
- 20:35And they can just express that, sort of speak for their community at the meetings.
- 20:40Yep.
- 20:40That is my role on the architect board that we have for the Azure SDKs.
- 20:45I try to bring the Python voice into the discussion and telling them where we are going to do something different
- 20:52and what the reason for that is.
- 20:54Yeah, for example, not from the Python universe of things, but from JavaScript, we were wondering what would be the best way to present, you know, JavaScript documentation.
- 21:03Should it be Node?
- 21:04Should it be JavaScript?
- 21:06So, we just brought in.
- 21:08I have no idea about anything JavaScript related.
- 21:10So, I just brought in our engineering lead and our architect and kind of let them let me know better about what the community thinks about that particular space.
- 21:19Yeah, interesting.
- 21:20Well, there's just, you know, so many APIs and then you have to, you know, sort of cross product that with how many different languages are consuming those APIs.
- 21:30It's really interesting.
- 21:32So, one of the things I think would be fun to talk about is the test setup that you guys have, Kate, for user studies and observations.
- 21:41Basically, the way we just approach trying to create a library to begin with is, you know, we have to learn better about the service itself.
- 21:49And we start out by, you know, writing initial preview versions of the library with guidance from the architects, as well as closer work with the service team.
- 21:58Once we have some sort of preview to work off, we set up some user studies.
- 22:04We have a couple of labs in our building where we invite a lot of developers to come for, I think, two hours at a time.
- 22:16Where we set up some basic tasks for them to complete using the preview library that we have.
- 22:21You might give them the library to, like, blob storage and say, okay, use Python to upload this file to Azure blob storage.
- 22:28So, or something like that, right?
- 22:30And then just let them go?
- 22:31Yeah, exactly.
- 22:33So, we try to, you know, start with some simple tasks to see how these, you know, initial steps are going and then try to proceed to more complicated tasks later on.
- 22:43And then basically see how they proceed with that.
- 22:47We have kind of two different separate types of studies that we do.
- 22:50One is focusing on the design of the API itself, where we often do not provide much documentation and see kind of intuitively if the naming makes sense and where do people end up searching for them.
- 23:02Yeah, just auto-complete driven discovery.
- 23:04Go with that and see what they do.
- 23:06Right.
- 23:07So, in that case, it kind of helps us to better understand what are, if, you know, our conventions of naming are discoverable and easy versus the other type of studies we have is to go more end-to-end.
- 23:19And once we have some sort of set of docs to go off, see how people actually go about discovering it and seeing if there are any gaps that we have.
- 23:27Yeah, quite interesting.
- 23:29So, you're both checking the libraries and the API, but you're also checking maybe the documentation and the tutorials in that second case.
- 23:37Yeah, exactly.
- 23:37Because there is a lot of existing documentation for things that existed before us.
- 23:42And making sure that, you know, all the places where people actually go to find it are updated and are not misleading is a big challenge overall.
- 23:50Yeah, yeah, for sure.
- 23:51I mean, I can't speak for Azure in general.
- 23:54I know Azure's changed a lot.
- 23:55So, that old tutorials don't make any sense anymore.
- 23:59But in the Python space, that is a challenge.
- 24:02You'll see tutorials written for Python 2 that'll tell people, like, well, go pip install virtual ENV so that you can create a virtual environment.
- 24:10And it's like, no, no, no, that's already built into Python.
- 24:13It's a module, VNV.
- 24:14Yeah.
- 24:15We don't need these things.
- 24:15Like, there's these other steps.
- 24:17Or even there's new ways to install Python into Windows, right?
- 24:21Like, from the Windows Store and whatnot.
- 24:22So, it's got to be a constant challenge of, like, that stuff was put there to help people.
- 24:28And yet, it's kind of in the way now.
- 24:31It'd be better if you didn't put anything.
- 24:32And they might just have to go search for it and maybe discover the right way.
- 24:36Yeah, I think for Python specifically, there has been an effort on our side to also try to consolidate all sorts of guidance, exactly like you mentioned, with a virtual environment that is consolidated into guidelines on how we are supposed to write tutorials.
- 24:51I think it's still at a draft stage, but it's something we're definitely looking more into to make sure that, you know, the guidance we provide for the tutorials and similar texts also makes sense for the set of developers and for the language.
- 25:04Yeah, this question for either of you.
- 25:06How do you all deal with telling people to get started in Python?
- 25:09Because on Windows, until recently, they didn't have the Python 3 command, right?
- 25:15Steve Dower got the new version of Python into the Windows Store, and it comes with Python 3.
- 25:20So, that's one thing that you can just say, always type Python 3 to get started.
- 25:23But I've always found it very tricky to say, if you're on Windows, you do this.
- 25:28If you're on Mac or Linux, you do that.
- 25:29And, like, you kind of have to replicate that either-or bit through everything.
- 25:34How do you all deal with that?
- 25:35Today, it is either-or kind of for your operating system go here kind of thing.
- 25:40We're doing less of now, and I think what it used to do more of in the past was that every getting started document had all of the instructions on how to set up Python first,
- 25:50which meant it was not until page 3 or something like that that you got to what we're actually trying to tell you.
- 25:56So, now, most of the getting started documents are that, assuming that you have Python installed.
- 26:02And, by the way, if you don't know how to do that, go here.
- 26:05Right.
- 26:05So, you just have that one little blurb at the top of the document.
- 26:08Yeah, that makes a lot of sense.
- 26:09Now, I do want to come back to this lab that you have, Kate, because I think it's really interesting from a couple of angles.
- 26:16But let me try to describe what I think the lab looks like, because I've seen some pictures and whatnot of it in action.
- 26:24But this might not be the same thing.
- 26:25So, the one that I saw, there was basically a room with some computers.
- 26:31Some developers can go sit down there and either, like, group program or do separate programming.
- 26:36But then there's also a one-way mirror, and you could sort of screen share.
- 26:40You could watch what they're doing on the screen from behind the mirror or somewhere else
- 26:46and sort of critique, you know, how well your library is holding up to them, poking at it, and things like that.
- 26:52Is that basically what it is?
- 26:53It is pretty much how it is.
- 26:54So, we do try to bring two developers at a time to do pair programming.
- 26:58We've kind of noticed that it's much easier for people to be more open about what they feel about the libraries and the experience overall.
- 27:07It's kind of more natural to speak out and comment and see how it feels.
- 27:12It's also usually easier to unblock the other person if one of them doesn't have experience in something.
- 27:19Yeah, I can imagine from a user testing angle that if there's more than one person,
- 27:23person that are working on it, they're going to just communicate verbally with each other because it's weird to just sit there and work with not, like, sharing what you're up to.
- 27:32But that's exactly, like, what you would like them to do for you to understand what they're doing, right?
- 27:37Exactly, exactly.
- 27:38So, even some, you know, more random comments are always great.
- 27:41And we've had some people be very open about what they thought at the time of, like, oh, you know, this is crap.
- 27:48Like, this needs to change.
- 27:49I don't understand why I'm even looking at this.
- 27:52And kind of having another person there, I think, makes it less awkward for them.
- 27:56Because you can imagine sitting in a tiny, tiny room, you know, just you and a computer in front of you, knowing that you're being observed by X amount of eyes.
- 28:05It's a pretty stressful situation if you're on your own.
- 28:08Yeah, the other person will help you forget that there's all those eyes or thoughts thinking about what you're doing.
- 28:13Pretty interesting.
- 28:14On our side of things, we also try to bring in, you know, a lot of people.
- 28:17So, all of the devs that are actually working on the library try to always come to the study to see how their libraries are performing.
- 28:25So that it's also easier for them to kind of understand how, you know, how users interact with the libraries.
- 28:31And to understand where the struggles are.
- 28:34And makes it kind of easier for them to understand how important it is to make it really good.
- 28:40Yeah, yeah.
- 28:41You think, oh, that's no big deal.
- 28:42People will figure that out.
- 28:43We don't need to do this.
- 28:44And then you see four people stuck for 15 minutes trying to do it.
- 28:47You're like, oh, actually, okay.
- 28:49I see.
- 28:49Exactly.
- 28:50How often do you run these studies and how many people go through them?
- 28:53We are pretty much booked all the time.
- 28:56I think we have user studies, if not every week, then every other week, depending on what we're currently working on.
- 29:02So we have usually, we manage to do, I think, two groups of studies per day, which is four people then per day.
- 29:12Sometimes if there is something in particular that we're trying to test out, we can use two.
- 29:17So that would mean most eight people a day.
- 29:19Yeah.
- 29:20Okay.
- 29:20Well, the reason I think this is so interesting is because there are so many people creating packages and libraries and Python for others to use.
- 29:28And many of them are extremely, extremely popular, right?
- 29:32You know, over on PyPI, we have 215,000 libraries at the time of the recording.
- 29:37You can go over to place up PyPI stats, I think.
- 29:41Mm-hmm.
- 29:41And you can check that out.
- 29:42You can see the most downloaded libraries, right?
- 29:44It's pretty cool.
- 29:45There's a bunch that are like over, you know, well over a million downloads a day.
- 29:50So there's these libraries and they're just being used in so many, by so many people in so many places.
- 29:56And yet my feeling is that most people who build these libraries have very little visibility into how people feel about them until they raise to the level of like a GitHub request or a bug sort of complaint or something like that.
- 30:11Right.
- 30:11And having this discoverability and ability to observe people working on your libraries, it must be really interesting.
- 30:19Yes, absolutely.
- 30:20I mean, it's very gratifying when you hear someone talking about the library that you built in a positive way.
- 30:26Yeah.
- 30:26It can be very humbling if you thought that you had a great idea that turns out that no one understands how to use or may even have other choice words for the experience that they feel like they were exposed to.
- 30:40Yeah, yeah, sure.
- 30:41I had a rough day at work.
- 30:42People hated what I built.
- 30:43I thought it was great.
- 30:44That's pretty harsh, but it does allow things to get pretty polished, I suspect.
- 30:48So, Johan, do you have some examples of things that you've changed or realizations you've had through some of Kate's studies?
- 30:56One of the experiences is you touched on the tab completion kind of discovery of things, but the Python community is extremely diverse in how they use things.
- 31:10I think about half of the people that we've had in the usability study did not use any form of IDE at all.
- 31:18Yeah.
- 31:18When they did things.
- 31:19Yeah.
- 31:19So you let them pick their IDE.
- 31:21It's not like, hey, we're all using Visual Studio Code because it'll work with all the languages and it's consistent or whatever.
- 31:26You said, if you want to use Emacs, knock yourself out.
- 31:29If you want to use PyCharm, go for that.
- 31:31Is that how it went?
- 31:32The last couple of studies, I think we set it up using VS Code, but we've certainly had PyCharm.
- 31:37We've had people that even if you have VS Code in there, they only use the, well, they use VS Code as an editor at most.
- 31:44And then they dropped into the terminal window and run everything interactively or run things through REPL immediately.
- 31:51The use of a debugger, similar thing there.
- 31:55I think there was one quote that one of the participants had that, yeah, I use a debugger for simple things, but if things get complicated, then it's pretty print all the way.
- 32:06It's so funny.
- 32:06I'm laughing because to me, it's like the opposite, right?
- 32:09I'll print out something like, oh, this is getting hard, man.
- 32:11I'm going to have to use a debugger and go figure this thing out.
- 32:13Yeah, but it's an insight into how people feel and what people use and how important it is to make sure that things work well, that you have a good, that you implement Dunderstir and REPR so you can print out an object and you get some useful information.
- 32:29Right, right.
- 32:30In fact, people use it that way.
- 32:32So understanding the importance of that is something that I've come to appreciate more.
- 32:36Right, right.
- 32:36Because if you just print it out, especially if you're in the non-IDE situation and you don't know what the properties are, and maybe you got something like a blob response object, it would just say blob response, add memory address, such and such, right?
- 32:51As opposed to here's the URL or the bucket and whatever, right?
- 32:55Like, I think that actually is a good point in general for libraries to consider the Dunderrepper and Sturr stuff so that not just if you actually just want to print it out, but those appear all over the place, right?
- 33:07Those appear in debuggers.
- 33:09They appear potentially in log files.
- 33:11There's all kinds of stuff where having that is just like, it's just delightful.
- 33:16You're like, oh, I can just see what this is right here.
- 33:19I don't have to do extra work because somebody put in like a nice little repper that's good enough to know what's happening.
- 33:25Right.
- 33:26So there are many of those small things that are there.
- 33:30I'm trying to reduce the number of types that we have in our libraries now because in order to call an API, if you want to call that from the REPL window, it's much easier to just use scalar types, for example.
- 33:40And we have the wonderful keyword-only arguments in Python that makes life easier, whereas in JavaScript, I would create option objects with lots of properties on it.
- 33:49Right, because in the option object, you could have the default value, but in Python, that's just part of the function.
- 33:54Right.
- 33:55So these kind of things that have changed a little bit in how I look at libraries.
- 34:02This is interesting about these sort of compare and contrast libraries, trying to do exactly the same thing with people that know the system really well.
- 34:09I think that's super interesting.
- 34:10And I feel like a lot of that pragmatism that Python has is because there's a lot of flexibility in the lower-level stuff, right?
- 34:19Like keyword-only arguments with default values and stuff allow you to avoid certain patterns or a global variable in a module is kind of like a singleton.
- 34:30That's what you need.
- 34:31You don't need a whole class for that and so on.
- 34:33What was your experience coming from these different languages and seeing that across teams?
- 34:38Is that about right or how has it been?
- 34:40Absolutely right.
- 34:41I still review Python code from other teams that come in and you can see where they're coming from, where they have extremely deep class hierarchies and things like that.
- 34:50It makes sense if you wrote code in C# or Java, but type safety is not the same thing in Python as it is in C# where you will get the compiler error if you try to call something that doesn't exist.
- 35:02There are other patterns that you can introspect things in Python that makes it more powerful.
- 35:09This portion of Talk Python To Me is sponsored by Clubhouse.
- 35:12Clubhouse is a fast and enjoyable project management platform that breaks down silos and brings teams together to ship value, not features.
- 35:19Great teams choose Clubhouse because they get
- 35:22flexible workflows where they can easily customize workflow state for teams or projects of any size,
- 35:27advanced filtering, quickly filtering by project or team to see how everything is progressing,
- 35:32and effective sprint planning, setting their weekly priorities with iterations and then letting Clubhouse run the schedule.
- 35:39All of the core features are completely free for teams with up to 10 users.
- 35:43And as Talk Python listeners, you'll get two free months on any paid plan with unlimited users and access to the premium features.
- 35:50So get started today.
- 35:51Just click the Clubhouse link in your podcast player show notes or on the episode page.
- 35:56Kate, one thing I want to come back to because I do think it's really interesting and it's a challenge to this testing that you talked about is this not using an IDE or something that has some kind of
- 36:09completion story for working with the code that Johan talked about.
- 36:14What do you do if somebody wants to use one of those non-assisting editors or you're working with a language that doesn't provide enough information to actually get that even in tooling that would otherwise show it,
- 36:32like some parts of JavaScript or something like that?
- 36:34So as I mentioned before, we have a couple of different types of studies that we have.
- 36:39So in cases where we can't rely on people discovering things on their own, we provide them with documentation.
- 36:45We set up a couple of experimental documentation sites, which we can iterate on pretty quickly where we just direct people to a site and they can look at reference documentation.
- 36:57I see.
- 36:58So here's the SDK functions and types and whatnot.
- 37:01Go look at that if you don't actually want to say dot and see the list or maybe an addition.
- 37:07Yeah.
- 37:07What about code that you all put into documentation?
- 37:11Right.
- 37:12You've got documentation for Python.
- 37:14You've got documentation for JavaScript.
- 37:16You both have these examples.
- 37:17These libraries are changing over time.
- 37:20The endpoints are changing potentially and, you know, extending or having better ways to do things.
- 37:25How do you deal with that kind of stuff?
- 37:27And do you have somebody go through and just go, all right, time to retry all the tutorials?
- 37:32Or what do you do there?
- 37:33Okay.
- 37:33So there is a couple of different things we were trying to do.
- 37:37So all of our packages live on our GitHub.
- 37:41And one thing that we have already implemented for a couple of languages, but not all, is exactly as you mentioned.
- 37:49It's kind of challenging to keep control of all of the code snippets and samples we have all across docs, all across all of other places.
- 37:59So one thing that we are trying to do is to write tests that, you know, we test all the time on an ongoing basis and basically be able to pull out snippets from these sources into our readmes and then eventually into docs.
- 38:14So that's something we have been putting a lot of work in.
- 38:18Already, most of our stuff in our GitHub should be fresh because of this.
- 38:23And we're now trying to ensure that the same thing happens when you're going to docs as we cross kind of reference our repositories.
- 38:30Yeah, that's really cool.
- 38:31You know, the challenge is that the little code snippet might need other stuff set up all around it, right?
- 38:37Right.
- 38:37The good thing is that usually in terms of the setup that's around it, that doesn't change as often because it's most, you know, having an instance of a service running or some sort of setting up the environment, which shouldn't change that often.
- 38:50Yeah, I'm thinking of like a tutorial that says, first, import this thing.
- 38:54Then a little bit later, it says, oh, make sure you set this connection string.
- 38:56And then a little bit later, it says, here's how you download a file or whatever, right?
- 39:01And you want to test the, here's how you download the file bit.
- 39:03Like the stuff that comes before it still has to happen, but it's not part of that snippet.
- 39:08Do you guys have examples like that you run into?
- 39:10Yeah.
- 39:11Yes.
- 39:11So we do have that.
- 39:12We have the, we're using things for generating a lot of this.
- 39:16So using the literal includes.
- 39:18So you can basically have a comment in the code that says this, this snippet or this part of my function or method corresponds to this example in there.
- 39:27So when you run through the whole thing, it will do the setup and you can spread.
- 39:31I see.
- 39:31It'll like chain them together or something like that.
- 39:34Yeah.
- 39:34Yeah.
- 39:34Okay.
- 39:35Yeah.
- 39:35The challenge is to keep everything up to date, as you alluded to.
- 39:38If there's new functionality, we can, it's relatively easy or not impossible to make sure that things continue to work, to make sure that things are using the best practices.
- 39:49If new best practices have come to light is much more challenging.
- 39:53Right.
- 39:54There's an old way of doing things.
- 39:55Of course, it still works because you wouldn't break it for old software, but you don't want them to do that anymore.
- 40:01Right.
- 40:01Right.
- 40:01So writing these examples, it's a little bit like giving someone a puppy.
- 40:06It's going to be work forever.
- 40:08That is true.
- 40:09Yeah.
- 40:10You got to walk it every day, even in the rain.
- 40:12Yeah.
- 40:13How about testing these libraries?
- 40:15What do you all do for making sure that your library up to Azure or whatever service it's talking to is still good?
- 40:24That's challenging.
- 40:25We were talking at the Python meetup here in Portland about this.
- 40:30And it's like, what if I wasn't connected and I wanted to run my test?
- 40:34How do I even get that to work?
- 40:36Or how do you test against real cloud environments, but you don't actually want to create a whole bunch of cloud environments?
- 40:43You just want to see if the API is still hanging together or something like that.
- 40:46It seems like a challenging thing to mock out all of Azure.
- 40:50Yes.
- 40:51So for what we're using is that we're using a recording framework.
- 40:55So basically record all of the requests and responses.
- 40:58Oh, interesting.
- 40:59Okay.
- 41:00Because it's very challenging.
- 41:02And I, especially since we want to be able to take contributions from the public, we want them to be able to write tests and run tests, obviously.
- 41:11But as with all clouds, it costs money to run things in the cloud.
- 41:15And we don't want to charge.
- 41:17Yeah.
- 41:17Some are cheap, but some of them are really quite expensive to just do a little bit with.
- 41:21Right.
- 41:22If you're going to provision, I don't know, a certain type of VM with a GPU because you need to test the GPU a bit.
- 41:27I don't know.
- 41:27All right.
- 41:27That could be expensive.
- 41:28Yeah.
- 41:29So what we have is that we make these recordings available so that you can run tests against these recordings.
- 41:35It's still challenging to come up with new tests if you want to contribute to new tests.
- 41:39Honestly, we don't have a good solution for that today.
- 41:42But that's, we're using these recordings as much as we can.
- 41:45And then we run, we call live tests on a nightly basis to make sure that things still work when actually using the services.
- 41:53The recording is not lying.
- 41:54The recording is not out of date, right?
- 41:56What library are you using for this?
- 41:58Is this a Python library?
- 41:59Yes.
- 42:00It's VCRPy that we're using now.
- 42:02VCRPy.
- 42:03That sounds very cool.
- 42:04Or PyVCR.
- 42:04Yeah.
- 42:05If you go to our GitHub repository, github.com/Azure slash Azure dash SDK dash for dash Python.
- 42:15Short name, I know.
- 42:15But you can see that.
- 42:17It rolls off the tongue, doesn't it?
- 42:18Yes, it does.
- 42:19Yeah, that's cool.
- 42:20You can see how you guys are using it there.
- 42:22Yeah, this is really cool.
- 42:23I hadn't heard about this, but I'm sure that'll be useful for people out there in general, right?
- 42:27Not just for people working with Azure tests.
- 42:29Yes.
- 42:30Yes.
- 42:30And this is not the library that we have produced.
- 42:33This is an open source component.
- 42:35Yeah, absolutely.
- 42:37So how do you deal with...
- 42:40It's still hard for me to get my mind around how many challenges you have for trying to keep all this stuff consistent.
- 42:45So you've got all these different endpoints.
- 42:47You've got these different languages.
- 42:49How do you collaborate at the documentation level for, okay, we're going to create this new thing that helps people use this.
- 42:56The JavaScript team's got to do it.
- 42:58Other teams got to do it.
- 43:00And they got to be consistent.
- 43:01What guidelines and advice do you have for that?
- 43:03For the documentation specifically or for the designs?
- 43:06More for the documentation, I guess, is what I was asking.
- 43:09Although both are interesting.
- 43:10But there's a lot of people or companies out there that have multiple technology stacks talking to their same thing.
- 43:16What advice do you have for them to help all the different consumers evenly?
- 43:21One thing that we are trying to do is to, first of all, better understand in terms of these different technology stacks, what are the most kind of often used patterns?
- 43:30And that kind of informs how we write the quick starts and the tutorials.
- 43:34On our side, the process, the way it looks is that our developers writing the libraries provide the reference documentation and then include some sort of basic guidance of what they see fit for the readmes that we have on our GitHub.
- 43:49And then for each service, we have a content development team that kind of tries to take it and write a more, some sort of a tutorial that's more digestible by all sorts of different audiences.
- 44:04And they have a better understanding of what exactly they need to provide for these particular use cases in these different scenarios.
- 44:10Okay.
- 44:11So there's like a canonical example.
- 44:13And this is what we wanted for here.
- 44:15And then make a JavaScript version, a Python version, and so on.
- 44:18Right.
- 44:19Exactly.
- 44:20Okay.
- 44:20That's quite cool.
- 44:21So this whole user testing of people consuming libraries, it's really interesting.
- 44:26And like I said, with the PyPI examples and those popular libraries, no, I suspect very few people are doing that.
- 44:33A few exclude like the Azure libraries and other big companies.
- 44:38But Opus Horse teams, they have these sprints and they have other feedback mechanisms.
- 44:43All the stuff we talked about.
- 44:44Do you have any advice where people might be able to recreate a little bit of this?
- 44:49You know, maybe at the end of PyCon, have a sprint where instead of trying to add new features, it's like, let's do some user testing for people who are attending the conference and are very passionate about our library.
- 45:01Or maybe try to grab somebody who's used the other library that's, you know, like Django versus Flask or something and have them come over and, you know, work in our world for a little bit.
- 45:10You know, without having one of these labs and whatnot, but maybe using things like LiveShare or something.
- 45:18What advice do you have for bringing some of these cool practices that you guys are doing and applying to your libraries to, you know, maybe much smaller groups or open source projects?
- 45:29I can start and Johan can nod in.
- 45:31But in terms of the conferences, I think that's an amazing idea.
- 45:34And that's exactly what we're doing.
- 45:36In November, we're attending a Microsoft conference, Microsoft Ignite.
- 45:40And that's exactly what we're doing.
- 45:42We had a couple, you know, stands set up, allowing people to kind of try things out on their own, as well as take surveys based on the feedback that they would have gotten by completing some basic tasks and kind of taking that down and kind of informing for their designs.
- 45:57So, yeah, I think it's absolutely a great way to easily be able to work with people directly if you don't usually have that in person.
- 46:06Yeah, it seems like it would be a cool thing for conferences to set up, right?
- 46:09I mean, at Ignite, you guys set that up and that's really cool because you're doing that sort of stuff.
- 46:13But I'm thinking at PyCon or some other, you know, major JavaScript conference or something, right?
- 46:20The conference organizers could have a section where, you know, you could sign up.
- 46:24Hey, I'm this library developer.
- 46:26I'm on this team.
- 46:27I want to have people go through my stuff.
- 46:29And I just think it would be great.
- 46:30I mean, I have no ability to set that up or anything.
- 46:32I can throw ideas out there and maybe people run with it.
- 46:35But it seems like it'd be really cool.
- 46:36Yeah, that seems like a really good idea.
- 46:39One challenge I think that we've seen with that is that very often people are happy to provide some feedback if this is something they really care about.
- 46:45But if that's not the case, then usually they would expect some sort of swag or something in return, which is fair.
- 46:54It's fair.
- 46:54And as companies, it's fine, right?
- 46:56It's easy for Microsoft to put together a certain amount.
- 46:59But as a solo developer on an open source project, it's much harder.
- 47:03But, you know, maybe like a cool little badge that's got the picture, like a little logo and like, you know, I helped improve this at PyCon or something.
- 47:12Or I helped improve Flask or whatever.
- 47:14I think people can make it work without too much involved.
- 47:17Yeah, that sounds like a good idea.
- 47:19Yeah.
- 47:19Johan, what do you think?
- 47:20You can look at it as a contribution.
- 47:21It may not be in the form of source code as well.
- 47:24All right.
- 47:24So having the contribution somewhere in and who contributed to the last release, you know, use relative feedback from people.
- 47:31That's a pretty good piece of currency to work with that they do have something that they could hand out easily, right?
- 47:36You don't have, you know, little robots that you can hand out for everyone who helps as an open source developer.
- 47:41But you do have, like you said, credit.
- 47:43That's cool.
- 47:44Yeah.
- 47:44And it's important as well to be clear on the fact that we have seen a little bit of bias that people want to be nice to you when they give feedback.
- 47:53But what you really need is the harsh feedback as well.
- 47:57So that's one thing that I think we're getting better at making clear that the participants that we want to hear the good and the bad and not just the good.
- 48:06Right.
- 48:07Tell us the truth, not just what you think we want to hear, even though it won't make your day not as good, I guess.
- 48:13Right.
- 48:13Yeah.
- 48:14So nice.
- 48:15All right, you guys, we're getting short on time here.
- 48:18So let me just ask you the final two questions and wrap it up.
- 48:23So Kate, we'll go with you first.
- 48:25If you're going to write some Python code, what editor do you use?
- 48:28I recently started using VS Code and have been enjoying it.
- 48:32Yeah.
- 48:32Yeah.
- 48:32You guys are doing a lot of cool stuff with VS Code.
- 48:34It's definitely growing quickly.
- 48:36Johan?
- 48:36Yeah.
- 48:36VS Code is probably my go-to editor right now, but I try to switch between them just to get a feel for what the experience is for using our libraries and the different editors.
- 48:47Yeah, sure.
- 48:48You definitely want to know, like, well, what's the experience in Sublime or what's it like in VI or whatever, right?
- 48:53Right.
- 48:53Sure.
- 48:53I switch between them basically every week.
- 48:55I use a new editor.
- 48:57That's got to be a little hard.
- 48:59I mean, I know you get used to it and all, but.
- 49:00Plenty of mistakes.
- 49:03Just, yes.
- 49:04Yeah, I bet.
- 49:06And then I'll throw this out to both of you.
- 49:08Either you can throw something in a notable PyPI package.
- 49:12Some library out there that you're like, oh, this thing is super cool.
- 49:15We'll use this.
- 49:15Maybe people haven't heard of it.
- 49:17And if you want, you're welcome to use VCRPy.
- 49:20Have you got another one?
- 49:22Throw it out there.
- 49:23That's a good question.
- 49:24That one I would have to think about a little bit.
- 49:26All right.
- 49:27How about VCRPy?
- 49:28That's a good one.
- 49:29Is it PyVCR or VCRPy?
- 49:31Yeah.
- 49:31There is a VCRPy and it sounds like it's the right one, but I don't want to recommend swapping it to the wrong one to people.
- 49:40Yeah.
- 49:41Yes.
- 49:41VCRPy.
- 49:42VCRPy.
- 49:42Okay, cool.
- 49:43Yeah.
- 49:43That's if you have things that are really hard to mock out and there's a complicated exchange, that seems like that's a pretty cool way to do it.
- 49:51Yep.
- 49:51Nice.
- 49:51All right.
- 49:52Final call to action.
- 49:53People are out there.
- 49:54Maybe they work at a big company.
- 49:56They've got a set of APIs they've got to document across languages or they work at some other company that exposes their API to the world and they've got a document.
- 50:05What advice do you have for them?
- 50:07Take some of these things you've learned and apply it in their world.
- 50:10It's not free to provide a good developer experience for people.
- 50:14So understand that you need to, if you want to have a good developer experience, you need to invest time and effort into doing it.
- 50:22So if you think that you can get away with having the same documentation for every language, auto-generate things, you will get part of the way, but it will not be great.
- 50:33Yeah, absolutely.
- 50:34I'll definitely show.
- 50:35Kate, what do you think?
- 50:36I think another important aspect is how, you know, ensuring that whatever you provide is really well documented.
- 50:43It doesn't matter, you know, how much work we put into making sure that things are consistent and idiomatic.
- 50:49In the end, people rely heavily on using documentation.
- 50:53So making sure you create an easy and kind of consistent story around that is super important.
- 50:57Awesome.
- 50:58Good advice.
- 50:59And thank you both for being here and sharing what you're up to.
- 51:02It's really cool.
- 51:03Thanks for having us.
- 51:04Thank you.
- 51:04Yep.
- 51:05Bye.
- 51:05This has been another episode of Talk Python To Me.
- 51:09Our guests on this episode were Kate Olasueska and Johan Stenberg, and it's been brought to you by Springboard and Clubhouse.
- 51:16Become a machine learning professional with Springboard's online bootcamp and get a job, guaranteed.
- 51:22Visit talkpython.fm/springboard to apply today.
- 51:26Clubhouse is a fast and enjoyable project management platform that breaks down silos and brings teams together to ship value, not features.
- 51:34Fall in love with project planning.
- 51:35Visit talkpython.fm/clubhouse.
- 51:39Want to level up your Python?
- 51:41If you're just getting started, try my Python Jumpstart by Building 10 Apps course.
- 51:46Or if you're looking for something more advanced, check out our new async course that digs into all the different types of async programming you can do in Python.
- 51:54And of course, if you're interested in more than one of these, be sure to check out our Everything Bundle.
- 51:59It's like a subscription that never expires.
- 52:01Be sure to subscribe to the show.
- 52:03Open your favorite podcatcher and search for Python.
- 52:05We should be right at the top.
- 52:06You can also find the iTunes feed at /itunes, the Google Play feed at /play, and the direct RSS feed at /rss on talkpython.fm.
- 52:15This is your host, Michael Kennedy.
- 52:17Thanks so much for listening.
- 52:19I really appreciate it.
- 52:20Now get out there and write some Python code.
- 52:22I'll see you next time.
- 52:24Bye.
- 52:24Bye.
- 52:24Bye.
- 52:24Transcription by CastingWords