Latest / Talk Python To Me / #363: Python for .NET and C# developers
Transcript
- 0:00Are you coming to Python from another language and ecosystem?
- 0:02It can seem a bit daunting at first, but Python is very welcoming and has a massive array of tools and libraries.
- 0:09In this episode, I speak with my friend Cecil Phillip, who does both Python and .NET development.
- 0:15We discuss what it's like coming to Python from .NET, as well as a whole bunch of compare and contrast across those two ecosystems.
- 0:22This is Talk Python To Me, episode 363, recorded April 13th, 2022.
- 0:29Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:45This is your host, Michael Kennedy.
- 0:46Follow me on Twitter, where I'm @mkennedy, and keep up with the show and listen to past episodes at talkpython.fm.
- 0:53And follow the show on Twitter via at Talk Python.
- 0:56We've started streaming most of our episodes live on YouTube.
- 0:59Subscribe to our YouTube channel over at talkpython.fm/youtube to get notified about upcoming shows and be part of that episode.
- 1:07Hey folks, I want to share a cool opportunity with you.
- 1:11Many people reach out to me and ask about getting a job doing full-time Python rather than, say, Java in the day and Python on a hobby basis.
- 1:19If you're in the market for a proper Python job with adventure right in the description, then check this out.
- 1:25The Intelligence and Space Research Division at Los Alamos National Laboratory is seeking some smart and talented developers to help them blaze new galactic trails across the solar system.
- 1:35They're located in the American Southwest, so you'll also have time to explore earthly trails in the beautiful mountains of northern New Mexico.
- 1:42You could use your amazing Python skills to write software for satellites orbiting the Earth, design systems and interfaces that help protect America's security interests, process data from Mars, or even explore a host of other fascinating space research projects.
- 1:58Does that sound like an adventure?
- 1:59Well, you won't be alone.
- 2:00Your team will be filled with experts in software, engineering, and space science all working together.
- 2:06Just visit talkpython.fm/Los Alamos and shoot them an email.
- 2:10That link actually opens your email client, by the way.
- 2:13The folks at Los Alamos can't wait to hear from you.
- 2:15The link's right in your podcast player or on the episode page.
- 2:18Transcripts for this and all of our episodes are brought to you by Assembly AI.
- 2:23Do you need a great automatic speech-to-text API?
- 2:26Get human-level accuracy in just a few lines of code.
- 2:28Visit talkpython.fm/assembly AI.
- 2:31Hey, Cecil.
- 2:32Hey, what's going on?
- 2:33It's going to be fun to just chat about past, future, present.
- 2:36I see you're wearing the C-sharp shirt.
- 2:38Yeah, I decided to wear this today.
- 2:40Also, this is a vintage shirt.
- 2:42Like, you can't get these anymore.
- 2:43I think this was from, I want to say, Xamarin Evolve.
- 2:48Back before Xamarin was a Microsoft company, they had a conference called Xamarin Evolve, and they used to give out, you know, swag and bags and stuff.
- 2:54And I got this shirt.
- 2:56And I try to only wear it on special occasions because I want to preserve it for as long as I can because I know I'm not going to get another one.
- 3:03So, I figured today was a special occasion.
- 3:04I'll wear it today.
- 3:05Yeah, for sure, for sure.
- 3:06I got my Vivaldi shirt on today, which is, should have brought my Python ones.
- 3:10Anyway, I'm super excited to have you back on the show.
- 3:14You've been on the show a couple of times.
- 3:15We talked about live streaming of all things.
- 3:19And, you know, some of my live stream setup is actually thanks to you because you blazed the trail, which is awesome.
- 3:25You and it was Brian Clark, right?
- 3:27Who had been doing your Python live stream, right?
- 3:30Yeah, yeah.
- 3:31Back when Brian and I were both at Microsoft, we were doing a Pi Weekly Live is what it was called.
- 3:36Or we were just kind of looking at Python from a perspective of people that don't do Python for a living.
- 3:42Or, you know, I don't push Python's production or I don't maintain Python open source libraries.
- 3:47But it's still a cool language and we wanted to learn it, right?
- 3:50And we wanted to learn in public.
- 3:52And I think as advocates or pretty much just as anyone, I think now like learning in public is a great way to not only help yourself, but also help the community too.
- 4:01It is.
- 4:02And putting yourself out there in that way.
- 4:03I think it's scary, especially when you're brand new.
- 4:07You're like, oh, I've been doing this for a few weeks.
- 4:09I'm going to look really bad.
- 4:10But at the same time, you learn that people want to help you.
- 4:12And other people who are also having the same problems really appreciate that.
- 4:16So that was a really cool episode.
- 4:17And we also talked about developer relations and what the heck is that with you and Paul Everitt and some other folks as well.
- 4:24So anyway, welcome back.
- 4:26This time we're going to be talking about what may seem initially like a bit of a weird topic for the Talk Python show.
- 4:36And that's somewhat .NET.
- 4:38So what we're going to talk about is really reaching out to folks who are experts in C# and .NET, hence your shirt, saying, look, Python is this excellent language as well.
- 4:48And it seems really like such a different ecosystem, such a different language, such a different tool chain, like are almost all the axes.
- 4:57It looks really weird from a .NET perspective, right?
- 5:00And I think it's going to be super fun to explore those.
- 5:02But I want people listening to take this from a slightly different perspective.
- 5:06Obviously, if you're a C# or .NET person, you know, that's a really focused conversation.
- 5:11But what about the teams who are doing Java and they're looking at Python or the teams who are doing C++ and look at it?
- 5:17I think this could be a sort of a stand in or a prototype for how people coming from other technologies coming into Python might evaluate it and perceive it and think about it.
- 5:27Yeah, I think so, too.
- 5:28Like, so first of all, I want to tell folks like this is not like a my language is vetted in your language kind of conversation.
- 5:33You know, we fight.
- 5:35We're girlfriends here.
- 5:36You know, we all like each other.
- 5:37But I always find that, you know, if you kind of look through like the history of programming languages, like we all kind of evolve together, right?
- 5:44Like we all borrow features from each other, whether it's libraries or, you know, actual language core features or whatever the case is.
- 5:51And, you know, it's always interesting to see folks when they're like, oh, your language can do that, too.
- 5:56So can mine.
- 5:56And so now that kind of just makes them a little bit more relatable, right?
- 6:00Because you're like, OK, well, I know how that works for me.
- 6:03So now I'm maybe I can pick up your language a little bit easier because I already know like that particular concept, you know?
- 6:08Yeah, I totally agree.
- 6:09And it's not a one way street either.
- 6:11Yeah, exactly.
- 6:12For example, we in Python have async and a wait.
- 6:16Thank you to C#.
- 6:17But C# has generators and yield return.
- 6:20Thank you to places like Python.
- 6:22Right.
- 6:23So there's like this sort of give and take.
- 6:24Yeah.
- 6:25Yeah.
- 6:25Which I think is quite interesting.
- 6:27Another thing that C# has.
- 6:29I don't know if you know, I think it was in C# 9.
- 6:32I might be a mistake.
- 6:33I think it was C# 9.
- 6:34C#, by the way, if you're not following it, has many versions.
- 6:36This is actually an interesting thing to discuss as we'll get into it later.
- 6:40Yeah.
- 6:41So C# 9, this is like a lot of releases.
- 6:43Yeah.
- 6:43Yeah.
- 6:44I think C# 9 was two years ago.
- 6:46Right.
- 6:46So last year's version was C# 10.
- 6:48And then C# 11 is going to be released in November of 2022.
- 6:52Yeah.
- 6:52So yeah, like Michael said, there's a lot of versions.
- 6:54But I kind of want to follow up on that last point you made about async await because another
- 6:59feature too, which is one I actually really appreciate, is records.
- 7:03And so when I think about records, I almost think about like data classes in Python.
- 7:07Yeah.
- 7:07They're very similar.
- 7:08Yeah.
- 7:08Yeah.
- 7:09I think about like these immutable classes, these immutable types that I have.
- 7:12And essentially like their job is really just to pass information back and forth.
- 7:15But I want to say I feel like Python had that first.
- 7:18Right.
- 7:19Again, .NET got that like two years ago.
- 7:21I'm not sure how old data records are.
- 7:23Or data.
- 7:23Oh, yeah.
- 7:24Data classes, I believe, are older than two years.
- 7:27But yeah, I'm pretty sure.
- 7:28But yeah, I don't totally remember the exact release number it was.
- 7:32Yeah.
- 7:32We have a lot of releases too.
- 7:33We just put them as point releases, 3.7, 3.8, 3.9.
- 7:35Now, let's start this conversation from a perspective of a C# developer.
- 7:42Now, imagine you don't know a lot about Python.
- 7:43You do know a lot about both languages, just to be clear.
- 7:47And that's why I actually have a ton of experience in .NET before I got into Python.
- 7:51But let's imagine that you don't know a lot about Python.
- 7:54And you're thinking about, you know, maybe I just really need to either I'm going to get a new job.
- 7:59And it's not the same technology I was working in.
- 8:03This is a Python place.
- 8:04And I've been doing .NET at my company.
- 8:06Or you're just thinking, you know, more like I was.
- 8:09It's like, gosh, I kind of need to diversify my technology and my career experience and not put all the eggs in one basket sort of thing.
- 8:18And really actually love that change.
- 8:21But think about what are the things that you really love about working in C# and .NET.
- 8:28And you're like, I just, if I had to leave this feature or this language thing behind, it would nearly kill me to do so.
- 8:36Yeah, I think for me, and it's almost not so much so for me about like the language.
- 8:43Because like you mentioned before, like we've had the opportunity to play around with like a lot of different languages and kind of see how the world works.
- 8:48For me, it's the tooling, right?
- 8:50From a .NET developer perspective, it's the tooling.
- 8:53And the libraries.
- 8:54The tooling and the libraries.
- 8:55The tooling, the libraries and the integrations with like some of the other ecosystem that kind of surrounds .NET that makes it really useful for me.
- 9:02So I'll give you an example.
- 9:04Like, so for .NET developers, you may already know this, but, you know, we have project types that are based on CS projects and solution files and things of that nature.
- 9:13Where I know some folks might look at and be like, oh man, why did my project have all of these different files?
- 9:19And like, there's so much stuff just to do like a hello world or a simple project.
- 9:23But then I look at that as, okay, well, I know where the root of my project is, right?
- 9:27And I know there's a very standard way to define like what are my dependencies and what are the different projects that denotes, I guess, sub projects in like that larger solution, right?
- 9:40Whereas one of the things that, you know, hurt me a little bit as you look at other languages and not just Python, but if you look at JavaScript and Go and some of these other ones, I'm like, okay, well, how do I know where's the roots?
- 9:51And then how do I have multiple projects?
- 9:54Or I guess you could call them multiple components for that same project or multiple pieces, but I want them in the same folder.
- 9:59And I want when I hit build or run that all of them run or like the right subset of them run.
- 10:05Like, right, right.
- 10:05I maybe have a web front end and some API back end and they both need to be running that type of thing.
- 10:10Right.
- 10:11So for me, like one of the things I love about Visual Studio back when I was on Windows, because I don't use Windows as much anymore.
- 10:17I used to be able to like select multiple projects to start, like when I started debugging session so that whenever I hit F5, famous F5, you know, start and run and do all that types of stuff.
- 10:27Now I'll have like multiple projects running.
- 10:30So it could be, like you said, like my web API or my back end, or I have a Xamarin thing that's running or whatever the case is.
- 10:36But now they're all running and debugging at the same time in the same solution.
- 10:41Because again, the editor knows what projects are part of this.
- 10:44It knows what the dependencies are.
- 10:46It knows what ports they're running on and all that types of stuff.
- 10:48Whereas, again, if I walk away from that world a little bit, I feel like now that becomes like a manual process and I have to write like scripts or YAML files or something like that.
- 10:58Yeah, yeah, yeah.
- 10:59Well, let me riff on that for a minute.
- 11:00So, so often what you'll see in the tutorials and stuff, the getting started stories in the Python space is create a blank Python file called app.py, main.py, whatever, and write this bit of code.
- 11:16Yeah.
- 11:17And the sort of starting structure that is presented to you is, it's almost wholly absent, right?
- 11:23If you're going to build a web app, you have to figure out, well, where do the static files go?
- 11:27Where is the JavaScript?
- 11:28How do I align that?
- 11:29What do I do with my view templates versus like just, it's completely unstructured, right?
- 11:35And I think that that is the world that's presented to a lot of people and keeping with my opening theme, if you're coming from a place where there's a lot of guidance through the tooling, you may see that and want to just run in horror and go, I've been shot back to the 80s.
- 11:50What has happened to me?
- 11:51I don't want this.
- 11:52Like, I don't need this.
- 11:53Why am I here?
- 11:53But as you dig deeper, if you want to opt into those things, they do exist in a much more sort of decentralized, you know, by choice, go hunt them down way.
- 12:06And that's like, if you want a lot of structure, you could use cookie cutter to generate very structured projects.
- 12:13So much so that I think a lot of the cookie cutters are overly specific.
- 12:18You end up like, you know, I don't really need two layers of Redis.
- 12:22One layer of Redis was enough.
- 12:24Like, why is all this stuff here?
- 12:25People get carried away with it.
- 12:26But you can generate those types of like, here's the pieces and it's really structured how they fit together.
- 12:31You can use things like PyCharm to create a project that might have a little bit of structure.
- 12:36They very rarely have much, but a little bit.
- 12:38But none of that is presented to you in a way that is discoverable in the first week.
- 12:42Right?
- 12:43If you're brand new, you're like, I'm here at this one file.
- 12:45That's what the tutorial says.
- 12:47Why is it all in one file anyway?
- 12:48Shouldn't this be broken up?
- 12:49Yeah.
- 12:49And to that point, there's like pros and cons to each of those approaches.
- 12:53Because like you mentioned before, one of the things that I could say I love about Python is the fact that I could just get started with one file.
- 13:00Right?
- 13:00Yeah.
- 13:01And that getting started experience and that evolvability of the language, I think is important.
- 13:05Right?
- 13:05I think that's one of the reasons why people like latch onto it so much.
- 13:08Because my barrier to entry is like extremely low.
- 13:13It is literally like a file and, you know, whatever Python runtime that you have on your machine.
- 13:17You know what I mean?
- 13:18Yeah.
- 13:19And that's a huge attraction for many people coming into the ecosystem from what I can see from talking to a lot of people is, right?
- 13:25I'm a biologist.
- 13:27And I learned that if I write these five lines into a text file, I can now do magic.
- 13:33Whereas if you've got to learn about public static void classes, namespaces, compiling, linking, you're like, wait a minute.
- 13:39I'm not a programmer.
- 13:41This is not for me.
- 13:41Yeah, exactly.
- 13:42And when I think about that, right?
- 13:44Like if I think about like the structured nature of Visual Studio style projects and .NET projects and C# projects.
- 13:51And like you mentioned, like the Python projects and even the cookie cutter stuff and whatever the case is.
- 13:56I have to kind of look at the history and see like, oh, well, what space did these ecosystems kind of evolve in?
- 14:02Right?
- 14:03Like when I think about that .NET ecosystem, you know, for folks that are listening, that's mostly where I spent a lot of my time in terms of like my career coming forward.
- 14:11You know, I think about like schools and enterprises and big companies that need like structure.
- 14:17Like give me the structure and then now I'll add the bits and pieces that I kind of need going forward.
- 14:22Right?
- 14:23When I think about Python, and again, if I'm wrong, please correct me.
- 14:26When I think about Python, I think about, okay, folks that are doing like a lot of scientific experiments, like numeric computations.
- 14:33And hey, I just want to do these things really quickly.
- 14:36I don't really need structure, but I want to like execute experiments.
- 14:40Not experiments from the perspective that the code is not important.
- 14:43The code is important.
- 14:44But like it's the task is more important than the code is, if that makes sense.
- 14:49Sure.
- 14:49Yeah, that makes a lot of sense.
- 14:50And that's not always true, but that's often true.
- 14:52And I would say there's different areas in like certainly the scientific area, maybe the data science exploration area, but even like the DevOps or just the automate stuff with Python rather than bash.
- 15:05Right?
- 15:05Like I need to copy these files over here and then rename them and then put them on S3.
- 15:10Right?
- 15:11So that's not a super structured experience, but Python's really good at it and often it's used for it.
- 15:17Yeah.
- 15:17And I agree with you when we look at where both of these languages have come today.
- 15:21So if you kind of look at, okay, now .NET is what?
- 15:26.NET is like 16, 17 years old, something like that.
- 15:2920.
- 15:29I think it's 20.
- 15:30I think because, yeah, I think there was the whole, yeah, Richard Campbell and crew have been going on about like the anniversary and stuff.
- 15:36Right. So if you look at languages 20 years later, right, like your initial intent was this.
- 15:41As the world evolves, as the world of software development evolves, and then now we're, as developers, like we're looking at attaching on to new, you know, new work types.
- 15:50And, you know, you're hearing about Kubernetes and mobile apps and all these types of things.
- 15:55Now, like our languages kind of have to evolve with us.
- 15:58Right.
- 15:58And like we have to evolve with the industry.
- 15:59And so now some of those initial use cases have like expanded and multiplied.
- 16:04Right.
- 16:05And now we got to take care of all of these other things now as well.
- 16:07Yeah.
- 16:08Well, that's a big shift, honestly, that the whole .NET side has had to sort of come to terms with over the last 10 years is the open source, the open sourceification of this whole sort of commercial side of things.
- 16:21And let's maybe explore that for a little bit, because I think there's a lot of interesting variations and differences and stuff.
- 16:29Right.
- 16:29So Python, in a sense, was open source before open source was a thing.
- 16:34Right.
- 16:34It was just, here's the source code.
- 16:36Right.
- 16:37There's no GitHub and PRs and all of this sort of formal open source structure.
- 16:42It was just released on Usenet and other places.
- 16:45Whereas Python, I'm sorry, whereas .NET has been a product from quite a long time.
- 16:53Right.
- 16:53It was a way to build things in the early days for like Windows servers and for Windows and the Microsoft tooling.
- 17:01And like, let's make it really good for developers over there.
- 17:04Right.
- 17:04But that was not released by a bunch of people contributing in different ways.
- 17:09It was way more structured.
- 17:10Right.
- 17:10Yeah.
- 17:13This portion of Talk Python To Me is brought to you by Cast AI.
- 17:17Cast AI is the number one Kubernetes cost management and automation platform.
- 17:22Get on top of your cloud costs, streamline DevOps processes, and remove the complexity that slows down software delivery.
- 17:30Cast AI uses automation to eliminate manual tasks, provision your infrastructure, and keep it optimized at all times.
- 17:38It selects the right resources at the right time and for the best price.
- 17:42So you can focus on things you want to do, like building new features and writing code.
- 17:47Teams using Cast AI see an average savings of 50% and more.
- 17:52Your friendly cloud giant is making tons of money.
- 17:55Don't send them more than you need to.
- 17:56So why not scan your cluster and discover how much you could save with Cast AI?
- 18:00They have a special offer for Talk Python listeners.
- 18:04Just visit talkpython.fm/castai or click the link in your podcast player show notes and get a free optimization report.
- 18:12Thank you to Cast AI for supporting the show.
- 18:15Again, like when we look at the history of things, right?
- 18:20Like for me, the initial intent or one of the initial intents of .NET was to make it easier to build apps on Windows specifically.
- 18:28So you think about like, well, who's building Windows applications, right?
- 18:31Like at that time, you know, you go back to like 2001, 2002, right?
- 18:35That's what we're talking about.
- 18:36And at that time, mostly we're talking about like desktop applications, right?
- 18:41Like we're thinking about Windows forms.
- 18:42This is the successor to Visual Basic 6 and all of its glorious.
- 18:46Right, like the drag and drop UIs and like all that types of stuff, right?
- 18:49And then eventually that evolved into WinForms and those types of things.
- 18:52But still from a very Windows specific perspective.
- 18:56And then now we forward on to like, I don't know, let's say 2013, 14, 15.
- 19:02And even up until today, now like the cloud has become a major thing.
- 19:06And I'll be honest with you, I'm not a business person and I wasn't in the room, but I can tell you, anyone that wants to compete in the cloud computing space, you have to be cross-platform.
- 19:17And you almost have to have a more open community, be able to work with different types of folks and interoperate with different types of technologies just because of the nature of the landscape of cloud computing, right?
- 19:30Like you mentioned Redis earlier, right?
- 19:32Like how do we plug into Redis?
- 19:33How do we plug into RabbitMQ?
- 19:35How do I plug into Docker and Kubernetes, right?
- 19:38Like, you know, a lot of these things have their best experiences on non-Windows machines, right?
- 19:43So how do we now plug into that ecosystem and evolve to kind of follow along with where the rest of the industry is going?
- 19:50And so that's why you'll see now, like now .NET is, now it's open source.
- 19:54Now it runs on ARM devices and it runs on, you know, what's that?
- 19:57The M1 Macs and all of these.
- 19:59Yeah, it runs on our Mac, right?
- 20:00Right, like it runs everywhere that you could potentially want it to run.
- 20:04One's on, I'm sure, I'm pretty sure it runs on like Apple watches and on your fridge if you have a Samsung fridge and like all these different places, which is really crazy to think about.
- 20:12Again, like looking back at the history of what this thing was intentionally, you know, initially intended for.
- 20:19Sure.
- 20:19To me, the biggest, maybe two biggest, the two big things that are sort of tied together that are affected by this different origin story of Python and .NET
- 20:31really have to do about what I'll refer to, I guess, as the one true way versus a thousand flowers blooming and some of them growing in, you know, maybe in the tall trees or whatever.
- 20:43And then people's perception of using open source content versus like what is blessed by the project organizer, right?
- 20:54So maybe we can think about that for a little bit, right?
- 20:56So when you're a .NET person, you go traditionally, I think this is actually fading a lot, but traditionally you would go into Visual Studio and it has a list of projects.
- 21:07What do you want?
- 21:07I want a web project.
- 21:09I want a UI GUI type of project.
- 21:11I want an API.
- 21:13And then you click it and it goes whoosh and a ton of files come out and a bunch of linked libraries off to the equivalent of PyPI.
- 21:22And those are certain frameworks, right?
- 21:24It says you will use this web framework, ASP.NET, some variety.
- 21:28You'll use this data access framework, entity framework, probably of some variety.
- 21:33Now go.
- 21:34Like those, you start from the assumption of, well, I'm using these frameworks.
- 21:37Now I get decisions about architecture and other things I bring in and how I build, whereas somebody coming from that world into the Python space, I think they're going to have almost a rude awakening, both in a beautiful way, but also not so great, like a paradox of choice.
- 21:53So you want to do a project that's a web app?
- 21:55Okay.
- 21:56First, you begin the web framework selection story.
- 21:59Flask, Django, Pyramid, FastAPI, Tornado.
- 22:04So like just, and then the next layer down, now we begin the data access layer exploration, right?
- 22:10Is it SQLAlchemy?
- 22:11Is it SQL model?
- 22:12Is it some MongoDB thing?
- 22:14Like you just, every step is a, is great in that there's a ton of choice and variety.
- 22:20You don't like one, you pick another one, but to get started as an experienced person, that feels like a great option.
- 22:26As a brand new person, I think that feels like an impediment and not quite a problem, but almost a problem.
- 22:33What do you think?
- 22:34Yeah.
- 22:34I think it definitely gives you a lot to think about, right?
- 22:37Because now you have to wonder, am I making the right choice?
- 22:41Right.
- 22:42Yeah.
- 22:42And not only am I making the right choice, am I making the right choice today?
- 22:47And is this choice going to grow with me as whatever I'm building hopefully grows because hopefully all of our projects are successful, right?
- 22:55And hopefully it will grow with me.
- 22:56And so if you kind of go back again to like that Microsoft thing that you were talking about, like you said, .NET was not originally open source and .NET is a product that was essentially created to make it easier to build things on Windows.
- 23:10And now, again, over time, it's become open source.
- 23:13And now it's in the cloud and runs on different devices and all those types of things.
- 23:17But I keep going back to this because the origin story is important, right?
- 23:21Because like you said, Python was almost open source by default from the beginning, right?
- 23:27And so like its intent from the beginning was already like, hey, I have a community of people that are going to come and latch on to us.
- 23:34And then we're going to kind of just grow organically together versus like I have big company X that's going to throw millions of dollars in developer time and research and all these other things to tell you this is the right way for me to do this.
- 23:47Now, I don't think there's a good or a bad way for either one.
- 23:51I think at that point it comes down to us or you as a developer to kind of sit down and think about, well, what's really important to me?
- 24:00Like, how do I really want to build applications?
- 24:03And it's such a funny thing because I like to look at building software like writing a book or like drawing a picture.
- 24:08Like you can tell me to write the same app that you write, but you might write it in a different way.
- 24:13You might have a different style or different patterns or different tools that you like to do.
- 24:17But ultimately, maybe it solves the same problem, but like it looks different because it came from different people.
- 24:23Just like, again, like telling a story, drawing a picture, whatever the case is.
- 24:26And so for some people, the way that they work and the way that their organization is set up, you might prefer to be able to pick each and every single piece of your stack, right?
- 24:38And make it look exactly how you want it to look with the pieces that you want, the frameworks you want, the databases, all that type of stuff.
- 24:47Or you can go to Microsoft and do a file new project that you can get ASP.NET, an ADD framework and a right click publish to the cloud.
- 24:56And then you could just be like, okay, well.
- 24:58And by the way, when you publish to cloud, how many vendors, cloud vendors do you get?
- 25:01Usually it's Azure, right?
- 25:03I mean, if you're talking about Visual Studio out of the box, it's, you know, published to Azure, right?
- 25:08Just being like that, that's another thing that's sort of like strongly encouraged as like one more choice.
- 25:13Yeah, that's another thing you have to think about, right?
- 25:16Yeah.
- 25:16And so now for people that are in that space, like if you're in a space of, hey, I just need the template.
- 25:21I need you to tell me like how this thing is structured and like where my dependencies go, how they're defined and how the build process works.
- 25:27And all I want to do is just write code and publish, then sure.
- 25:31Again, like I said, there's nothing wrong with that.
- 25:34But then if you're in a space where you want to control every minute detail of the development process and the libraries and how they plug in,
- 25:42maybe you even want to write some of your own libraries, right?
- 25:44To like augment some of those additional things that are in there and do some of that type of stuff.
- 25:49Then, you know, maybe again, you want to make some different choices.
- 25:52You know, one thing that just occurred to me, I think is pretty interesting as a difference here is you talked about the benefit of all these, the tooling, you know, like file a project, boom, it gives you all these things.
- 26:02And for people who haven't played with it, you can get like these database visualizers for designers for say the classes that are backing entity framework and things like that.
- 26:15The presence of those tools is also kind of a limiting factor.
- 26:19Well, you wouldn't choose some other database way of working because you're going to lose access to all those good data integration tools, right?
- 26:28Whereas in our space, we don't have those to nowhere near to the same degree.
- 26:33And so it doesn't matter so much which tools we pick, whether or not they fit exactly together in that way, because they're not really available.
- 26:41So we have more flexibility, I guess, to say like, actually, I like the API of this one better.
- 26:45The performance story of this one or maintenance, how lively the GitHub project is, you know, is better on this one, even though it wasn't traditionally like exactly.
- 26:55Yeah, I think there's definitely something to be said if you walk into a world where the entire stack is unified.
- 27:03And when I say that, I mean, you know, I can go into a place and the programming language runs on the operating system that they built, that runs in the IDE that they built, that runs in the cloud that they built, that runs on the DevOps pipeline, security, whatever, whatever that they built.
- 27:20And it all plugs in together.
- 27:21And so with that integration, like you said, like you can get a different level of visualization, a different level of reporting and metrics on all of that types of stuff with a lot less work.
- 27:31It's not that you can't get it from other places, but it's just a little bit more work to get it, you know, to kind of kind of put those puzzle pieces together to make the world look like how you want it to look.
- 27:41Every level is like a decision you have to make and an integration you have to consider as opposed to it just by default clicking together.
- 27:50Right. Just like cloud computing. I'm going to bring this up because I have a talk where I talk about something I like to call like the microservice matrix.
- 27:56Yeah. And I do. Before you get into that, I do really quickly want to point out last time you were on the show, you were developer relations on the Azure team at Microsoft.
- 28:03And now you're at Stripe.
- 28:05Now I'm at Stripe.
- 28:06Right. We didn't, we didn't point that out. Right. I want to point out that you're not actually at Microsoft anymore.
- 28:11Yeah. I'm not at Microsoft anymore. So there's no backgrounds baseball happening here. Like, you know, I'm not sharing anything that, that I know more about than anyone else at this point.
- 28:20Yeah. Kind of going back to, if you think about the world of like microservices, because I kind of look at that as like everything that we've already done, just like existing on another level.
- 28:29And I'm using that as an analogy when I talk about this microservice matrix, because with everything that you do, you have to make a choice. Right. So like I mentioned before, like, where am I going to store my state, my database? It's like, I have to make a choice. Right. Like, how am I going to do metrics and monitoring? I have to make a choice. How do I know what my services are? How does my DNS routing situation work? I have to make a choice. How does ingress work? I have to make a choice. How do I do publish, subscribe? Like I have to choose a thing. Right. And so now you're going to make a choice.
- 28:59So you're sitting down having to like make some of these decisions about what's the right way for me to compose my app. And then also what are the right combinations of tools that I'm going to compose them with?
- 29:09So if we come back now, now to the level of just talking about Python and .NET, again, it's a very similar thing where you could just say, hey, just give me the menu, right? The GUI, like file new block. And there's a thing. Or I can sit down and I could fine tune and optimize my application to perfection.
- 29:27Or what we consider to run and work and have the right integrations of things that I wanted to have. And like I was saying, like, there's no wrong way. It's just a matter of like, for your business and what you're trying to do, like, what do you think makes the most sense?
- 29:41Yeah. It certainly is an interesting difference. Now, I do think there are more opinionated paths, we would call them in the Python world that you can choose. For example, you could say, and many people do, like, let me just use Django.
- 29:57Sure.
- 29:58Right. And you choose Django, it's very much this sort of holistic, click together stack that we spoke about, right? Like the data access layer is the Django ORM. The database is relational. You put it in something that could be SQL server, but more likely it's Postgres. There you go.
- 30:15Yeah.
- 30:15Right. But I personally very much appreciate the ability to look at all those options and go, no, no, for this one, I want to use FastAPI and Beanie rather than Django and Django ORM.
- 30:26And that's what I'm saying, like, depending on what your goals are. So I know for you, you have your top Python websites and your courses, and I believe you all have a mobile app too, right?
- 30:35Yeah, we do. That's actually Xamarin. Shout out to the shirt, man.
- 30:38I didn't know that. That's cool.
- 30:39The APIs are all Python, but the front end, like, mobile app itself is Xamarin.
- 30:43It's all Xamarin.
- 30:43Okay.
- 30:44Yeah.
- 30:44So, like, for your web experiences, like, you already know in your mind what your objectives are. So you're like, okay, I'm going to use this database and this caching thing and this thing because I need them to work this way, right?
- 30:56Because the thing with having opinions, it's always great to have opinions, but when sometimes someone's opinion just doesn't line up with what you're trying to do.
- 31:06But then on the other side, you know, sometimes there's just too many opinions, right? And so now you're like, oh, man, can I choose this or this or that or the other?
- 31:12Yeah.
- 31:12Like, what's the right puzzle piece for me?
- 31:15There's opinions and then there's opinions within a context, right? And there's a very popular article that keeps getting passed around and around. And I'm sure I'm somewhat to blame for this. It's like the title goes something like, you're not Google, you're not Facebook, you're not LinkedIn, you're not Instagram.
- 31:30So subtitle, don't design your software like they do.
- 31:34Yeah.
- 31:34Right. And opinions often mean, I believe this is how code should be written. If this is your general use case, right? And if your use case is really different from that, then those opinions might not just be someone else's opinion.
- 31:49They might actually be wrong because they were formed for another situation. I believe you're having a relational database and around 100,000 or fewer users a day. But if, if it's significantly different in some other direction, then maybe you should make different choices. Right. And having that flexibility is awesome.
- 32:05Yeah, for sure. For sure. And then kind of going back to like what we were talking about a little bit earlier with the tooling, like, like once you've made those choices, now you have to make a choice of like, well, what's the thing that I'm going to build it with?
- 32:18So again, on the Microsoft side, you have Visual Studio, which is like a kitchen sink of stuff. So I could, I could look at my databases, I could look at my deployments, I could build, deploy, debug, analyze memory dumps and all these types of things. Right. Again, like big thing.
- 32:32Or on the other side, we probably might want to do like some more command line tools, or we might want to grab like a bunch of different tools and kind of put them together. Again, all depending on like what we're trying to do with our use cases. And I think with that too,
- 32:46what you notice is that like the culture of either side of those of those languages is a little bit different. So I will tell you as a .NET person, automatically, it is ASP.net. It is any framework, and in a SQL server, automatically. I mean, I'm not going to say 100% of the people do it. But I want to say,
- 33:04a lot of people do that, right? That's the default. But I'm sure on the Python side, like the culture is probably different, right? It's probably a little bit of Mongo or Postgres is probably a little bit of
- 33:14Blask or Django and probably now FastAPI, because I know that's another popular thing.
- 33:18And, you know, whatever other tool they put on top of that, whether it's PyCharm or VS Code, or I know a lot of you, people love them, right? I know you've had a lot of them folks on the show, right? So it could be that too, right?
- 33:30But that culture is different. You know what I mean? And so like the expectations about like how software is built is going to just be totally different.
- 33:38Yeah. When I opened this segment, I said there were two things that were closely tied together. We covered the one, I think a very similar related parallel here is developers often in the Microsoft space, my experience I've had interacting with them is like, if it's not recommended by Microsoft, or the .NET team or whatever, I don't want it.
- 33:59If it's not the product story or the company story that you should use this framework or that, then even if the other one might be better, might not, like it's just, they just don't want to consider it.
- 34:10Yeah.
- 34:10Which I think is an interesting angle. Like it's very much at odds with the, you have a thousand choices.
- 34:15Yeah. For me as a .NET developer, before and during and now after Microsoft, like that's one of those things that's such a hard habit to break.
- 34:24Yeah. Do you agree with my assessment?
- 34:25I agree with your assessment 100% for sure.
- 34:27Okay.
- 34:28And I think it's something that particularly when you're living in an open source development world, like all of us are, you know, majority of us languages and tooling and stuff are open source.
- 34:38We have to be able to, like developers still have to develop.
- 34:42You know what I mean?
- 34:43Like, and you can't really expect things to always be given to you all the time.
- 34:48So when I say that, I mean like, just because company X doesn't create a thing for you, doesn't mean that there's not a ton of other great options available.
- 34:57But again, the culture or the way that .NET developers have been raised, right? If you think about them as, you know, evolving over time.
- 35:06Growing up through their career.
- 35:07Growing up through their time.
- 35:08And the way that they have been raised is that like, I'm going to open Visual Studio on Windows and whatever's in the box. I'm going to use that. I might be one or two or other two other things that like, I'll use. But those things are usually recommended.
- 35:20When we think about like JSON.NET as an example, those things are usually recommended from the box.
- 35:27And then not going to use that.
- 35:28Right.
- 35:29They might actually be third party, but they end up getting installed anyway.
- 35:32Exactly.
- 35:32Right.
- 35:33Like a pip dependency effect.
- 35:35Like a pip dependency or something like that.
- 35:37Or I don't know if you remember back when ASP.NET MVC was a thing.
- 35:40Like the first version of it, like it shipped with jQuery.
- 35:44And so anytime you did found new project MVC, like you automatically, you had jQuery, you had jQuery validation.
- 35:50And I think there was a couple other libraries that were in there.
- 35:52I think jQuery UI maybe might've been in there or something else like that.
- 35:55Right.
- 35:56Yeah.
- 35:56But again, like these are the things that like just come out of the box with that, that style.
- 36:00And I think what happens with that now is that, and again, this is my opinion, I think it hampers innovation.
- 36:08Because now when I look at the Python side, we joke about, oh my gosh, like there's a new Python web framework like every other year or every year or whatever the case is.
- 36:15But I could also look at that and seeing, wow, like people are so invested in this ecosystem that they're constantly trying to make it better.
- 36:22And they're constantly trying to like pull resources together to create new experiences to improve developer productivity.
- 36:29Not to say that people are not trying to do that on the Microsoft side.
- 36:33But what I'm saying is that like, if it's not in the box, people are like, I'm not messing with it.
- 36:37Versus on the background side, it's like, we'll just make it.
- 36:39Sure.
- 36:39The realm of possibility is wider.
- 36:41Yeah.
- 36:42We'll just make it.
- 36:42Well, we'll make it together.
- 36:43We'll open source.
- 36:44And if people like it, now we'll start a community around it.
- 36:47And now it's a thing, right?
- 36:48Again, like FastAPI and Pedantic and Sanic and like some of those other things that have come up recently.
- 36:54Absolutely.
- 36:54Okay.
- 36:55So one of the things I did want to talk to you about here, I think that's really interesting.
- 37:00And FastAPI is a good example of it.
- 37:03FastAPI basically exists because as you mentioned,
- 37:06Pedantic and some of the new language features of Python 3, 5, 6, 7.
- 37:13You know, the somewhat enforced typing information, data classes, those kinds of things.
- 37:20The async and await.
- 37:21So these are now possible.
- 37:25These are these new experiences that can be created from the language.
- 37:30But one of the really interesting things about languages, places like C#, or we could just as well say Swift and Apple or other languages, is there's a team of people whose job it is to work on the language.
- 37:46Which I think is really interesting.
- 37:49It has some very good positives.
- 37:50Like there's people who are constantly focused on it.
- 37:53I mean, we have the core devs, but they're kind of more broadly focused.
- 37:55And sometimes that means the language.
- 37:56But in the .NET space, that means the language is always changing.
- 38:02Maybe if it doesn't even need to.
- 38:04That's my statement.
- 38:06You don't have to stay behind that if you don't want.
- 38:07But I feel like there's people who are working there.
- 38:09And every year there's a new version of the language.
- 38:12If there's no new keywords, then what's their job about?
- 38:15Yeah.
- 38:16So for folks that don't know, .NET as an entire product and family of things has gone through changes over time.
- 38:23So when Michael and I first started doing .NET, it was .NET framework.
- 38:26And then over time, it became like...
- 38:28Back in early 2000s.
- 38:31Yeah, for sure.
- 38:31And then it evolved into what today is known as .NET Core.
- 38:35And I think .NET Core went from 1.1 to 3.1 or something like that.
- 38:42Right?
- 38:42And then after that, we skipped a number.
- 38:44We skipped 4.
- 38:45Right?
- 38:45I don't know why we skipped 4.
- 38:46But we skipped 4.
- 38:47And then we went to .NET 5.
- 38:48Not .NET Core 5, but just .NET.
- 38:51Right?
- 38:52So we had .NET Framework.
- 38:53We had .NET Core.
- 38:54And now we just have .NET.
- 38:56Nothing else after it but the number, right?
- 38:58.NET 5.
- 38:59And what's happened over time now with .NET 5 and 6, 7, and until they decided to call it something else,
- 39:06what's happened right now is that it switched to like this yearly release cycle.
- 39:11And I'll be honest with you, I don't know how I feel about it yet.
- 39:13We're looking at .NET 7 coming up in November.
- 39:17So it's really only been, you know, 5 and 6.
- 39:19We've had two versions that have been on this yearly release cycle.
- 39:22I don't think that's enough time for me to like feel like, you know, see how I feel about it.
- 39:27See what the actual effects of that are for sure.
- 39:28Well, my initial thoughts are, I don't think we really need to release that quickly.
- 39:32Because like you said, one, how many people are going to update every year or even every two years?
- 39:38You know what I mean?
- 39:40And then as you're pulling out these new features, I often have to think about, well, who is this for?
- 39:45Because if one of the goals of your language is adoption or if it's growth or if it's how do I bring new people in by adding new features,
- 39:53I can tell you regardless of how many features you add to make it easier, when they go to work,
- 39:59they're going to end up in a code base that's going to be 10 years old.
- 40:03With three flavors of Lambda expression, that three flavors.
- 40:06And it's going to look different and it's going to feel different.
- 40:09And their experience is not going to be hello world or a to-do application.
- 40:15And so now like the minds, like the mental efforts.
- 40:18So now you kind of like have to exist in multiple worlds.
- 40:21Like, oh, here's the new cool stuff.
- 40:23And if you're lucky, maybe you start in a company that's doing the new cool stuff.
- 40:27Or here's like the framework stuff or the older tooling or here's this older version that's, you know, still kind of new,
- 40:34but still doesn't have like the things from like six or seven.
- 40:38And it's like, well, if I am considering myself a language X developer,
- 40:43how many of these new language features do I need to know?
- 40:46It's a really good question.
- 40:47I mean, let me just give a little bit of background for people who obviously most people listening probably don't work in C#.
- 40:54But C#, like Python, has a way to express properties.
- 40:57Honestly, C#'s way is way better than Python's.
- 41:00There is a way to do Lambda expressions that's very similar across both languages.
- 41:05But if you look on the C# way, there's how many ways are there to do properties?
- 41:09There's at least four.
- 41:11There may be five different pieces of language syntax to accomplish effectively the same thing.
- 41:17And there are benefits to argue on some of the newer ones,
- 41:20but so much so that there needs to be a fourth, not just three ways to do it.
- 41:23You know what I mean?
- 41:24Like there's a lot of overhead.
- 41:26And my feeling is that the language looks that way because it's a product and there's a team whose job it is to continue to work on that product.
- 41:34Whereas like in Python, if it doesn't make sense to add it,
- 41:37there's nobody whose yearly review doesn't look so good because they didn't add a new way to do properties.
- 41:43Yeah.
- 41:44And I agree with you.
- 41:45I think that's another thing that I feel like I ever really appreciated about the Python ecosystem.
- 41:49Because Python also has like a scheduled cadence of release.
- 41:54It's not like, yeah, yeah.
- 41:55And it's yearly as well now.
- 41:56And it's not like Python hasn't updated the language in like six years or whatever the case is.
- 42:00Like you said, like there's async await and, you know, there's new operators and things of that nature.
- 42:05But I always find like the additions to language, I think with the exception of maybe type hints, I think that might be a little bit more in your face for a lot of folks if they decide to use it. But if you look at some of the other language features, a lot of the times it happens in the core library and not so much so on the language surface. And then the few that happen in the language surface.
- 42:25Yeah, or some package, but you don't have to know about it to consume it, something like that.
- 42:30Right. And then the things that happen on the language surface are usually very subtle, right? Like we'll have a whole version and they might add like one operator, right? Or you might add like, again, like a sink away, like we've just added. I mean, it's not really one keyword. It's kind of one keyword. It's one feature. But like, I've added this one big feature, but there's tons of other little fixes in the library and not necessarily like what the syntactic structure of my application looks like.
- 42:54And so I kind of feel like, like if you're on modern Python, I'm going to use a term you use, right? If we're on modern Python, and you're, you know, 3.4 or 5 and above, I'm sure when you hit Python 3.9, it's going to look the same, it's going to feel the same, it's going to work the same.
- 43:09Yeah.
- 43:09Might be some extra things, but you could probably ignore it if you don't, if you don't need it. But then, you know, you should be able to be functional and not have to think too much about like, oh, okay, how do I like plug this thing into this thing? And then, oh, my thing is not compiling anymore because I don't have the old, I don't have the new version, even though I'm not using the new version features and all of that.
- 43:30Yeah, it's interesting. And I think that, you know, we use a language as an example, but I think that influence happens across different many things, across like the web frameworks, across the database, across the tooling and so on. All right. A couple of thoughts from the audience here.
- 43:43Oh, yeah.
- 43:43A lot of people.
- 43:43Mr. Hypermatic says, hello, looking sharp. See what I did there? It's loving the shirt. And then Christopher Tyler has a more actual question here. Are the contributors to .NET primarily people who work at Microsoft? Is that the same for C#? Like, what's the open source story on that? So we know in Python, like, there's the core devs, and then there's the sort of everyone else layering, but that's not nearly as extreme as employee, not employee.
- 44:09Yeah, I can't talk to the percentages in terms of like, what percentages is Microsoft and what percentage is not. But I can tell you that now that it is open source and it's on GitHub. I mean, there's a tremendous amount of folks that do not work in the company, that not only contribute fixes, but also submit proposals for new features and like all these types of things.
- 44:29So I think if you go to, let me see if I can open it up. I think if you go to github.com/.NET, and I think if you go to .NET slash C#, I'm not mistaken. No, it's not .C#. It's a, there's a language proposal thing. I don't remember what it's called.
- 44:44Runtime, maybe?
- 44:46It might be in the runtime. There's a repo in here that you can essentially, you can essentially like submit proposals whenever there's a new version of C# that's coming out. Or, you know, if you want to know, okay, well, I want to, maybe we should change how interfaces work or how do we add records or whatever it is.
- 45:03Like there's, there's a repo in here that you can do that. I don't remember what it is at the time. I probably should.
- 45:07But what I'm saying is that like, as a person that does not work in the company, you can have like that level of influence and you can have a whole discussion about, hey, this is why I think this is a great feature.
- 45:17This is how I think it should look and behave. And this is how I think it would work with some of the existing features that are ready in the language today.
- 45:25I love that because that means that now you don't work there. I don't work there. We all don't work there, but we can have like a very open and honest discussion in the public because again, it's on GitHub unless they delete it. But they don't, they don't do that.
- 45:37They don't do that.
- 45:37It's not like they own GitHub. Oh, wait a minute.
- 45:41Uh-oh, uh-oh.
- 45:41Well, you see what I'm saying, right? Like you can have that open discussion about like, okay, well, these are some of the things I think make a lot of sense.
- 45:49That's really good. And it's certainly a big change that's happened over the last five years there.
- 45:54I found it. It's .NET's has C# Lang. So it's not just C#. It's C# L-A-N-G. Yeah. So if you go there, you should be able to, again, it's the language design repo.
- 46:05Oh, yeah. The active C# language feature proposals and meetings. And yeah. Interesting.
- 46:10Yeah. And I mean, some of those meetings are, they're public on their online. I know Emo. Emo is one of the folks that work on C# in the runtime. Like they do API reviews and all these types of things, live stream it. I don't know if you've ever said that in an API review.
- 46:24It's not the most page churning thing to sit down in a lot of computers. But you could have. You are.
- 46:30But if you wanted to, like if you're interested in that, if you're interested in language design and compilers and API surface design and those types of things, I think those are great things to do.
- 46:40Because I honestly can't think of any other ecosystem that really does that.
- 46:44From the perspective of like reviewing the actual API in the public, which I think is a great thing.
- 46:49Yeah. One of the things that's interesting about in the public is I try to listen to all sorts of different podcasts and try to keep my finger on the pulse of sort of where technology companies and programming languages and stuff are going.
- 47:03So I listen to some Apple podcasts, some Microsoft podcasts, and of course, Python podcasts.
- 47:08One of the things I find interesting is when you hear the Apple podcast people talk, it's always about speculation and rumors.
- 47:17And there was this leak and there's this thing.
- 47:19And what will we get?
- 47:20You hear the Microsoft people talk and like, oh, there's a hint of this code word, this project.
- 47:24And I think this is happening.
- 47:26If that's absent in the Python world, right?
- 47:29There's none of this like sort of fortune telling surprise of what's going on.
- 47:35I think that's also a big thing that people coming from either the .NET or the sort of Swift space over to Python is that we know really far in advance what's coming and what's not.
- 47:49And the more of the fortune telling side happens to land on, well, of these thousand flowers that represent web frameworks, which one do you think is going to continue to gain popularity?
- 47:59Right.
- 48:00Yeah.
- 48:00In that sense.
- 48:01That's a pretty big difference to the ecosystem.
- 48:03Yeah.
- 48:03I think it kind of goes back to what we were talking about before, right?
- 48:05In terms of culture, right?
- 48:07Like the culture of Python has always been like an open project that we all kind of work on together versus, okay, here's a product from Apple or Microsoft.
- 48:15And I'll date myself a little bit.
- 48:17Like I remember when you used to have to wait until like magazines came out to like learn about like beta features that have like the little CD in the back.
- 48:26Yeah.
- 48:27Yeah.
- 48:27You might go to a conference or I don't know, go, I don't know, Barnes and Noble or whatever.
- 48:30And there'll be a CD.
- 48:31Macworld or MSDN or any of these things.
- 48:34Right.
- 48:34Like there'll be CDs in the back of magazines.
- 48:36And that's how a lot of developers back whenever used to be like, oh, okay, this is what's coming out.
- 48:43Like, and you'll read about it, right?
- 48:44That there wasn't like a YouTube, like YouTube wasn't a thing for like developer videos and, you know, live streaming, all these things that we do now where we can get more immediate feedback.
- 48:54Like, you know, it was the magazine's going to go out.
- 48:57But then think about it.
- 48:57Like how long does it take to print the magazine, press the CD and put it out?
- 49:01Like how many things have changed in the product?
- 49:04Does that act?
- 49:05Right.
- 49:05And how far, far back is the editorial schedule versus the writing versus that's months.
- 49:10Right.
- 49:11It could be months, right?
- 49:12So by the time you get that CD, what's actually in the product on that day might be like two months difference, right?
- 49:20Like you could have changed all kinds of stuff.
- 49:22But what I love, again, about like the culture of where Python has started, like the feedback mechanism is so much faster.
- 49:28And it's been like that by default.
- 49:30Yeah.
- 49:30You know, we're talking about .NET and Microsoft, but like you said, it could be Swift, it could have been Java or whatever the case is.
- 49:36Now as these things become open source, now they're understanding, okay, well, like let's shorten the feedback mechanism.
- 49:41Let's get more immediate responses on things.
- 49:44You know, let's allow folks to like download them and try them out.
- 49:47Let's have students that are doing language design and programming language theory, like try our bits out and like work with us and talk about like, oh, okay, well, I learned this in class.
- 49:58Now I'm seeing it over here.
- 49:58I understand how this works.
- 50:00Like let's kind of collaborate a little bit closely together.
- 50:02Yeah, it's certainly is a different way of working on it.
- 50:06You don't have to wait until the one thing has been released.
- 50:10Yeah.
- 50:10I was contacted by a guy who was interested in making some proposal around APIs and Python and said, here, I want to propose this PEP, this way of changing Python officially for a new API.
- 50:25What do you think about this proposal?
- 50:27Well, this is cool, but really, I think the best way to do it would be just make a package that accomplishes the same thing, show that there's traction around it.
- 50:36And then you could talk about bringing it back in and sort of like grow it up through the community.
- 50:41And if it shows enough value, then all of a sudden you should have this conversation about should it be officially a part of the thing, which is almost the reverse of what you're saying.
- 50:51Yeah.
- 50:51Again, the thing about projects and products, right?
- 50:54Like when you have a product, I'm going to assume you probably have a PM and your PM is probably going to do user research.
- 51:00And they're going to do it.
- 51:00I bet your PM has a PM.
- 51:02Your PM probably has a PM, right?
- 51:03To manage all the other PMs.
- 51:04Right.
- 51:05But what I'm saying is like when you're a product, you have resources financially to be able to do user studies and talk to customers directly and set up meetings and gather analytics and like all of these really cool things, which is great that you could do that.
- 51:19But when you're a free open source projects, like what, like your resources, your community, right?
- 51:25So like you said, like sometimes you just have to kind of like build up that culture of, hey, well, hey, we're going to release a new version to do switch statements in Python, right?
- 51:35Or pattern matching or whatever the case is.
- 51:37Yeah, exactly.
- 51:37Like let's make it a library first and evolve it into something a little bit more substantial.
- 51:42And if people are like, yo, we love this, maybe now like that could become a feature.
- 51:47But the downside of that being, again, we don't, you know, there's no money engine behind of it.
- 51:53That might take a little while.
- 51:54That might take like two or three or four versions before that actually happens.
- 51:58Or it might never happen if no one cares enough.
- 52:03Someone who's actually a contributor to the project doesn't really, you know, they don't care enough.
- 52:07But somebody who's using it, they might really care.
- 52:11But it's not going to get there because there's sort of a mismatch and capability of changing it.
- 52:15You know, I think one of the big things that's changed recently for us over in Python is that we've had this thing called the developer in residence.
- 52:24Which Microsoft, Google, I think also Facebook, which I call the meta.
- 52:29I think those three groups, hopefully that's right and exhaustive, have contributed a bunch of money through sponsorships to actually fund one or currently one, but possibly more than one person whose job it is to just sort of work on Python around all the rough edges.
- 52:46And that might sound like the language rough edges, but what I mean is like people are submitting PRs or feature requests and nobody has time to really review the PR.
- 52:55Like sort of almost project management plus development to just kind of like be the glue that keeps the community working together.
- 53:02And I think that that's actually making a big difference.
- 53:05That brings it a little bit closer to these things.
- 53:07There's somebody whose kind of job it is to bring these features in.
- 53:11Yeah. When you think about, again, a project evolving into something really substantial, right?
- 53:18Like, and I look at Python as an extremely substantial project.
- 53:21At some point, like you're going to need support, right?
- 53:24Because now there's like a lot of things that need to get reviewed or fixed or discussed and talked about.
- 53:30And like, whose time is that?
- 53:32Right? Like who's going to do that?
- 53:33Right. But like now when the project is at the point where, well, my business needs this thing to run.
- 53:39So you better figure it out kind of thing.
- 53:41At that point, like that's why it's so important for like, you know, not even just major corporations, but all of us that use it to find a way to like contribute in whatever way that we can.
- 53:51You know, obviously for bigger companies, like again, they could, you know, they could sign the check.
- 53:55But for us, can we go ahead and have those discussions and talk about, well, hey, well, these are really useful features that it's useful because of this reason or because of these use cases.
- 54:04Or these are scenarios that would help us be more productive, right?
- 54:09And again, not just say I want stuff.
- 54:11Well, let's have a practical conversation about like, how is it going to make everyone better?
- 54:16Right?
- 54:16Right.
- 54:17There's a whole spectrum of that, right?
- 54:18Like it could be just communicating with the project over issues and stuff to say, this is really important.
- 54:25Here's our use case.
- 54:25It could be, hey, I could actually make a PR on this and contribute a PR to a project you care about.
- 54:31Or it could just be, I'm going to write a tutorial because this is really hard to get started with.
- 54:35Right?
- 54:35There's not, or even just documentation with examples.
- 54:38Yeah.
- 54:38And you bring up a great example of documentation, right?
- 54:41Like I know this is such a cliche thing to say because we've been saying it for years.
- 54:44But documentation is such, I don't want to say easy, but it's such a great way to get started in open source, in any open source project.
- 54:53Because I'll tell you the folks that are writing the code probably don't have a lot of time to write documentation.
- 54:58Yeah.
- 54:58And they might not have gotten into the project because they love documentation.
- 55:01They might have got in because they really wanted to write the code.
- 55:03Right.
- 55:03You know, when we think about projects, like just like how every language is good at specific things, people that work on projects are all good at very specific things.
- 55:13Because I'm a good engineer doesn't mean I'm going to be a good manager.
- 55:17And just because I'm a good engineer doesn't mean I'm going to be a good docs writer and vice versa.
- 55:22You know what I mean?
- 55:23I might be able to tell you how to do it.
- 55:25But the way I communicate that to you, you might be like, yo, dude, I don't have a PhD.
- 55:30I don't understand anything you just told me.
- 55:32Right.
- 55:33Versus like, okay, someone that could kind of sit in the middle and translate.
- 55:37Not that we're translating languages, but like, you know, hey, how can I package this in a way?
- 55:41How can I put this forward in a way that just makes it more digestible by whatever particular audience of folks that I'm trying to reach out to?
- 55:49So again, if we're talking about students or folks in startups or big enterprise companies, like what are the things that are important to them?
- 55:55And then how can I communicate that to those people?
- 55:56Yeah.
- 55:57But again, absolutely.
- 55:58You know, when you're a big company, like you could pay for that.
- 56:00Like you could pay people to do that.
- 56:01Like when you're not.
- 56:02You say it's now your job to do this thing and you better do it because you have a manager.
- 56:07Yeah, exactly.
- 56:08Exactly.
- 56:08Exactly.
- 56:09Yeah.
- 56:09All right.
- 56:10We're getting short on time here, Cecil.
- 56:12But I do want to talk about one thing that I really admire about the .NET space.
- 56:17And I think the reason I admire is I, among other reasons, is I think it really has a lot of relevance for Python people.
- 56:25And that is the whole Blazor thing.
- 56:29Oh, yeah.
- 56:30It's Blazor.
- 56:31Is it Blazor.net?
- 56:32So one of the things that they did over at the .NET side is they came up with this idea of like a standard core.
- 56:43And I've sort of taken a little, an inner essence of .NET that like this is the thing that we should have available everywhere.
- 56:50And then there's a bunch of stuff that's irrelevant in certain situations.
- 56:54Like, do you really need a UI GUI framework when you're on like a fridge?
- 57:00Maybe do that.
- 57:00Or, you know, like you're running just as a backend service on Linux.
- 57:04You really need a UI framework for that, right?
- 57:06And so out of that, to some degree, came Blazor, which is basically the runtime plus the language in the browser.
- 57:16And we have that really, really close in things like Pyodide and the core developers have been building CPython really recently for WebAssembly, which is amazing.
- 57:25Difference here is this framework has a front-end framework on top of it that is like Vue.js or React, but in C# on the browser.
- 57:38And do you want to just riff on that a little bit?
- 57:40I think if we had something like this in Python, I mean, this is basically how do you not have to write JavaScript on the front-end and have something really cool in your language and your runtime.
- 57:51Yeah.
- 57:52Yeah.
- 57:52So kind of like what Michael just said.
- 57:53So Blazor is the equivalence of React or Vue or Angular, but it's .NET for .NET developers.
- 58:03And the cool thing about it, so I guess just a little bit of a backstory.
- 58:06So Steve Sanderson, I believe is how you say this last name.
- 58:09Yeah.
- 58:10So he did a talk at NDC, right?
- 58:12One of the NDC conferences where he showed how you can compile the .NET's runtime, right?
- 58:19The actual, you know, thing that runs in a virtual machine, right?
- 58:22Kind of like what Java does.
- 58:23The .NET runtime to actually execute a WebAssembly, right?
- 58:27And most modern browsers have like, you know, WebAssembly enabled today.
- 58:32So again, assuming that you update your browsers, put them on auto-update, like you shouldn't really have to do a lot to just get that kind of stuff to work.
- 58:39And so now that means, okay, well, if I can ship the runtime into the browser, that means I can run the language in the browser, right?
- 58:46Which is really cool.
- 58:47And so what Blazor Canada is, if you're familiar with .NET and you know what Razor syntax is, like from MVC days.
- 58:56It's like a Jinja for us.
- 58:58Right.
- 58:58It's like a templating language, right?
- 59:00Like if you understand how that templating language functions, which is essentially C-sharp in code.
- 59:04Just like you said, like Jinja is Python and code, right?
- 59:07It's Python and HTML, right?
- 59:09So once you understand how that world works, now you can take those existing skills that you have and now you could write components that run inside of the browser.
- 59:18And they're 100% in the browser, right?
- 59:20Because now the runtime, you've just shipped the runtime, kind of like you would like a JavaScript file, like jQuery or whatever the case is, or your web pack bundle the thing, right?
- 59:29You build it and you send it to the browser.
- 59:31Also now it kind of runs there.
- 59:33So that means, and sometimes people don't believe this, but what that means is that you could turn off the internet, right?
- 59:39And then your app is still functioning, right?
- 59:41Because the functionality is living in the browser inside of Blazor, which I think is really cool.
- 59:45I think this is really cool.
- 59:46And I don't really care that much for this type of app, say as like in my website, although I see uses there, but Electron.
- 59:55You know?
- 59:57Right?
- 59:57Like if you could get something really rich like this and then turn it into a proper way to ship rich applications that are either progressive web apps or Electron.js apps, then you get a whole new avenue of types of apps that you can write that you wouldn't otherwise be able to.
- 1:00:12So one of the things that the .NET team promised that was going to come out this year, hopefully comes out by the time build happens in May, is .NET MAUI, right?
- 1:00:21Like MAUI, M-A-U-I stands for multi, oh my gosh, Microsoft application UI.
- 1:00:26Oh my gosh, I don't remember what it is.
- 1:00:27But whatever it is.
- 1:00:28User interface?
- 1:00:29I don't know.
- 1:00:29User interface thing.
- 1:00:30But essentially, MAUI is a way that you could write applications that exist across a lot of different places.
- 1:00:36So if you think about like macOS desktop, Windows desktop, Android, iOS, those types of things.
- 1:00:42But I could have like the single code base.
- 1:00:44Kind of like Xamarin Forms, but like Xamarin Forms, the new like VNX kind of thing.
- 1:00:49I bring that up because one of the things that they promised that we could do in MAUI is have a Blazor view, which essentially is Blazor running in MAUI.
- 1:00:58So that means that like if I write a thing in Blazor, like my Blazor components that run on the web and do the thing, that means that I should be able to have that code exported and like embedded inside of an app.
- 1:01:11And now that app could run across all those other places as well.
- 1:01:14Right?
- 1:01:15Interesting.
- 1:01:16Think about the right once run anywhere thing that we've been chasing for decades, right?
- 1:01:20Like we can write the thing in Blazor if we wanted to.
- 1:01:23And now it can run not only in the web, but it can run on mobile.
- 1:01:25It can run on desktop.
- 1:01:26Not just Windows desktop, but also macOS desktop.
- 1:01:29Mobile even.
- 1:01:30The dream of mobile.
- 1:01:31Yeah.
- 1:01:31iPhones, iPads, Samsung tablets, and like all those kinds of cool things.
- 1:01:36Yeah.
- 1:01:37Absolutely.
- 1:01:37All right.
- 1:01:38Well, I think we have to leave it there for our main topic, Cecil.
- 1:01:42But I feel like we have so much more to talk about.
- 1:01:44Like that was so, that won't buy so quickly.
- 1:01:46Maybe we'll come back and do another follow up episode.
- 1:01:48People have a bunch of questions or something.
- 1:01:50Yeah.
- 1:01:50If folks want to know part two, they should let us know.
- 1:01:52Leave a comment on the show or whatever the case is.
- 1:01:55Yeah.
- 1:01:55Yeah.
- 1:01:55Don't bug Michael on Twitter.
- 1:01:56Mostly the best place to leave comments is on the YouTube live stream.
- 1:01:59Okay.
- 1:02:00I turned off the comments on the episode page because they were forcing a bunch of third
- 1:02:06party tracking onto our users.
- 1:02:08And I'm like, ah, I really don't want to have cookie pop-ups and all these things.
- 1:02:13Yeah.
- 1:02:13And I'll just, yes.
- 1:02:14Anyway, no more comments on the episode page, but on the YouTube live stream.
- 1:02:18Absolutely.
- 1:02:18Before we get out of here though, if you're going to write some code, I guess at this
- 1:02:22point, it almost doesn't matter the language of C# or Python.
- 1:02:25What editor are you using?
- 1:02:26I pull out VS Code by default only because, again, I like, I like to focus.
- 1:02:32You know what I mean?
- 1:02:33And then if there's one IDE that can support multiple languages, like that's what I'm going
- 1:02:37to do.
- 1:02:37So VS Code is where I'm going to go.
- 1:02:39Cool.
- 1:02:39Cool.
- 1:02:39And I don't know if you have anything off the top of your head, any Python libraries
- 1:02:43you want to recommend?
- 1:02:44Have you come across any?
- 1:02:45You know, I'll be honest with you.
- 1:02:46I'm sure folks know about this already, so I'm not going to say anything different, but
- 1:02:49I really want to learn about scikit-learn.
- 1:02:53You know, it's a machine learning.
- 1:02:56Library, like I'm sure most of your listeners already know about, but I personally haven't
- 1:02:59played around with it.
- 1:03:00I personally haven't spent too much time at all in that machine learning space.
- 1:03:04But I figured this day I want to try it.
- 1:03:06Yeah.
- 1:03:06I haven't either.
- 1:03:07It seems so magical.
- 1:03:08Like if you could crack it, you'd be able to build just amazing things, right?
- 1:03:11Yeah.
- 1:03:12Yeah.
- 1:03:12Yeah.
- 1:03:12Yeah.
- 1:03:12So I've been playing around with just like doing data visualizations and stuff like that
- 1:03:16with things like Seaborn or Matplotlib.
- 1:03:18That's just me having data, wanting to draw like charts and graphs.
- 1:03:22What I actually want to do is like analyze some of that data using like some of those
- 1:03:26machine learning libraries.
- 1:03:26And, you know, I figured learning a little bit of machine learning is not a bad idea, right?
- 1:03:30And I think that's one of those places that Python really shines.
- 1:03:34The ecosystem that it has within Keras, I think is what one of them is called.
- 1:03:39And you think about PyTorch, you think about all the other really cool data analytics and
- 1:03:43machine learning libraries.
- 1:03:44For me, like it's just automatic.
- 1:03:47Like I'm going to go to Python and I'm going to do that.
- 1:03:48Yeah, absolutely.
- 1:03:49All right.
- 1:03:49Now close us out, you know, especially speaking to the .NET people who I may have dragged into
- 1:03:54this episode, they're thinking of Python.
- 1:03:58Maybe they'll try it out.
- 1:03:59Maybe they won't.
- 1:04:00What would you tell them coming from their C-sharp background?
- 1:04:02If you look at one of those old, older Stack Overflow surveys, they'll always say like
- 1:04:07Python is like the second language for a lot of C-sharp developers.
- 1:04:11Because when you think about it, Python does a great job at allowing you to like execute
- 1:04:16things very quickly, right?
- 1:04:18And so for us, a .NET developer, if I need to analyze something, if I need to like, I don't
- 1:04:21spin up a really quick web server and, you know, just do like some really quick things.
- 1:04:26Prototype something.
- 1:04:27Yeah.
- 1:04:27Just put some data on the internet.
- 1:04:28Yeah.
- 1:04:29It's a great additional tool to have.
- 1:04:31Now, it's more than just a tool.
- 1:04:33But again, like if you're a .NET developer, that's your focus.
- 1:04:36And you need something else to allow you to like move quickly, allow you to experiment,
- 1:04:40allow you to kind of just like explore your world and kind of extend your tool belt a little
- 1:04:45bit.
- 1:04:45I think Python is a great option to do that with.
- 1:04:47Right on.
- 1:04:47Well, thanks for being here.
- 1:04:49It's always fun to talk to you.
- 1:04:50And it's been cool to sort of compare and contrast.
- 1:04:53Sure.
- 1:04:53Thanks for having me, man.
- 1:04:54So I really appreciate it.
- 1:04:55You bet.
- 1:04:55Bye.
- 1:04:56Bye.
- 1:04:56This has been another episode of Talk Python To Me.
- 1:05:00Thank you to our sponsors.
- 1:05:02Be sure to check out what they're offering.
- 1:05:03It really helps support the show.
- 1:05:05Teams using Cast AI see an average of 50% or more savings on their Kubernetes clusters.
- 1:05:11Your friendly cloud giant is making tons of money.
- 1:05:14Don't send them more than you need to.
- 1:05:16So why not scan your cluster to discover how much you could save?
- 1:05:20Visit talkpython.fm/cast AI to get a free optimization report.
- 1:05:25Want to level up your Python?
- 1:05:27We have one of the largest catalogs of Python video courses over at Talk Python.
- 1:05:31Our content ranges from true beginners to deeply advanced topics like memory and async.
- 1:05:36And best of all, there's not a subscription in sight.
- 1:05:38Check it out for yourself at training.talkpython.fm.
- 1:05:41Be sure to subscribe to the show.
- 1:05:43Open your favorite podcast app and search for Python.
- 1:05:46We should be right at the top.
- 1:05:47You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:05:53and the direct RSS feed at /rss on talkpython.fm.
- 1:05:57We're live streaming most of our recordings these days.
- 1:06:00If you want to be part of the show and have your comments featured on the air,
- 1:06:04be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:06:08This is your host, Michael Kennedy.
- 1:06:10Thanks so much for listening.
- 1:06:11I really appreciate it.
- 1:06:12Now get out there and write some Python code.
- 1:06:14I'll see you next time.