Latest / Talk Python To Me / #52: EVE Online: MMO game powered by Python
Transcript
- 0:00Have you ever played a massively multiplayer online game?
- 0:02My first experience with these types of games was with text-based role-playing games called MUDs back in the early 90s.
- 0:09Well, things have come a long way since then.
- 0:11Games such as EVE Online have hundreds of thousands of players exploring, trading, and battling within a universe of over 7,000 star systems.
- 0:19Gameplay in EVE Online consists of beautiful 3D spaceflight within a dynamic universe with many real-world players.
- 0:26You may have played EVE Online, as it's one of the first major MMOs released back in 2003.
- 0:31But did you know that Python is at the core of the game, playing a critical role in the backend infrastructure as well as a major role in the client-side game itself?
- 0:39On this episode, you'll meet Christian Sigibirgsen from CCP Games to dig into Python at EVE Online.
- 0:45This is Talk Python To Me, episode number 52, recorded March 16, 2016.
- 0:50Welcome to Talk Python To Me, a weekly podcast on Python.
- 1:18The language, the libraries, the ecosystem, and the personalities.
- 1:21This is your host, Michael Kennedy.
- 1:23Follow me on Twitter, where I'm @mkennedy.
- 1:25Keep up with the show and listen to past episodes at talkpython.fm.
- 1:29And follow the show on Twitter via at Talk Python.
- 1:31This episode is brought to you by Hired and SnapCI.
- 1:35Thank them for supporting the show on Twitter via at Hired underscore HQ and at Snap underscore CI.
- 1:42Kristen, welcome to the show.
- 1:43Thanks for having me.
- 1:44We're going to have a really cool conversation about games and massive scale of just online applications in general, right?
- 1:52Yep.
- 1:52I'm sure that we will.
- 1:53You guys are doing amazing stuff.
- 1:55Before we dig into that, though, what's your story?
- 1:56How did you get into programming in Python?
- 1:58I came kind of roundabout way into game programming.
- 2:01I actually applied for a position at CSB as a game designer.
- 2:04And I started here as a game designer, worked here for two years.
- 2:08But I've always kind of been interested in programming.
- 2:11So I started poking around, fixing things.
- 2:13And then after that, it was kind of no turning back because programmers are always in such a short demand that was so much demand.
- 2:21That is that I just kind of pulled all of my time over into programming.
- 2:25And then I kind of just kind of worked my way into being my current position, which is technical director of EVE Online.
- 2:33And I did that by just attacking every problem that I saw and never giving up on them.
- 2:39That's really cool.
- 2:39And you guys do mostly Python there.
- 2:41Is that correct?
- 2:42Yeah.
- 2:42Majority of the programmers in EVE work in Python.
- 2:46We do have some stuff written in C++ as well as most of our DBA SQL.
- 2:52But I'd say like at least 75, 80, 80 percent of our programmers spend like vast majority of the time in Python.
- 3:00Okay, excellent.
- 3:01And how did you get into that originally?
- 3:02Is that something you learned when you first started there?
- 3:05Did you know that before you started?
- 3:06No, I'd known about CCP.
- 3:08I knew they were developing in Python.
- 3:11But the only thing I knew about Python was that white space matters, which I thought was ridiculous at first.
- 3:17But now I'm thinking it's one of its greatest features because you're going to have the white space that way anyway.
- 3:23So you might as well have it mean something.
- 3:25It also kind of forces you to be consistent on it.
- 3:30Yeah, that's an interesting point.
- 3:31Like anytime you look at professional code, it's always structured in a way that resembles the way that Python is structured.
- 3:38You know, if you look at C++ or C# or even JavaScript when it's well written, the white space is in a format such that it could matter, but it doesn't.
- 3:48Right.
- 3:48And so I had exactly the same feeling when I learned Python the first time.
- 3:53I'm like, this four space thing, this is insane to me.
- 3:56Like, where are the curly braces and the semicolons?
- 3:58What is going on?
- 4:00And then I worked in Python for a while and I went back.
- 4:03I had been coming from C# and I went back to C# and I thought, wait a minute.
- 4:07Why am I typing all this crap?
- 4:09This is way less fun to type than I remember.
- 4:11And it's because I was spoiled by the structure of Python, which really surprises me.
- 4:16And you can kind of see it from the code when you read like Java code or C# code and stuff like that.
- 4:21When you have a lot of indentation, you also have a lot of like white space beneath it where you have closing all of those brackets, all of those curly brackets.
- 4:29And it's also weird because if you see somebody write Java code, for example, and it has an if statement and then two indented lines, but no curly brackets, I can guarantee you that program met both of those clauses to be within the if clause.
- 4:45Absolutely.
- 4:45There was some bug.
- 4:47I think it was in OS X about a year and a half ago.
- 4:52A really bad like SSL man in the middle bug.
- 4:56And it was exactly that.
- 4:58It was like there was an if statement and they didn't have the curly braces, but it was indented.
- 5:03So people thought it was in one case, but it was actually in a different one.
- 5:06Right?
- 5:06Yeah.
- 5:07I thought this exact thing and I thought this would never have happened in Python.
- 5:12How interesting.
- 5:13We'd have different problems, surely.
- 5:15But yeah, we might have other problems, but the indentation problem, not so much.
- 5:19Yeah.
- 5:20And I kind of always liked that about the Python philosophy is that what you see is kind of what you,
- 5:28the code, the whole idea is that the code is readable.
- 5:31And what you see on the screen is what actually happened.
- 5:34Not some like, aha, you forgot the curly brackets.
- 5:37I say it a lot on the show.
- 5:39Like you hear about things like JavaScript gotchas and, you know, like languages like C, the mistakes
- 5:45that people make when they're new to the language that are really bad and not obvious.
- 5:49And you just don't hear about that concept in Python.
- 5:52Like people make mistakes, but they like don't work or something.
- 5:55Right?
- 5:55The only thing I can think of, and I love showing people that are new to Python this, is the
- 6:01mutable keyword.
- 6:02I love that bit.
- 6:05Nice.
- 6:06Yeah.
- 6:06So let's talk a little bit about EVE Online.
- 6:08EVE Online is a massive multiplayer online game that has to do with sort of like space exploration,
- 6:17colonization, like a science fiction space future, right?
- 6:21Right.
- 6:22Yeah.
- 6:22It's a massively multiplayer online game.
- 6:25We focus a lot here on the kind of the player interaction.
- 6:28We care a lot about how people interact with each other.
- 6:32So we, and we don't try to interfere that much about it.
- 6:36But in the end, it's a game where you fly a spaceship, you gather resources, you, you can
- 6:41shoot other people, you can shoot non-player controlled ships, NPCs.
- 6:45The biggest selling feature is the whole dynamic market.
- 6:49We have like a very realistic market.
- 6:52Yeah.
- 6:52There's kind of like an economy in the game that is live and not programmed, but it's like
- 6:57organic in a sense.
- 6:58Yeah.
- 6:58Yeah.
- 6:58Yeah.
- 6:59And it mimics the real world economies really.
- 7:02And you can see the same behavior there.
- 7:05And we actually have like a professor in economics working just analyzing the data.
- 7:10We still analyze a lot of the data, like the market activity, just to know the health of
- 7:15the game and what's happening.
- 7:16Okay.
- 7:17That's very cool.
- 7:18Do you have like machine learning type stuff going on in the background or is it more procedural
- 7:23and you understand it and you tweak the algorithm?
- 7:25We had, so for stuff that NPCs like the, just we sold on the market, we had something where
- 7:33we controlled the supply.
- 7:34We just created the item and sold them so-called like NPC goods.
- 7:38And what we did there is that we had something where you bought off the supply.
- 7:43We added a new supply, but at a higher price.
- 7:46And if it bought a lot of the supplies, we reduced the price.
- 7:50So it kind of balanced itself out, which created kind of like trade routes.
- 7:54But that's kind of not the most interesting thing about the market.
- 7:58The most interesting thing about the market is the player versus player trading where players
- 8:03sell items to other players.
- 8:05We don't need any machine learning.
- 8:07We don't need any fancy mechanics.
- 8:09The whole dynamic part of it is something that the players provide themselves just by speculating
- 8:14on the market and stuff like that.
- 8:16Yeah.
- 8:16Very interesting.
- 8:17Like you just have a bunch of people interacting and that is like the artificial intelligence,
- 8:21although not artificial really.
- 8:23That is what creates all the kind of variants and dynamics and the interesting conversations.
- 8:29Like just this other day, somebody showed a fake screenshot of an item, a very rare item
- 8:36from our test server saying that they were going to be dropped in the next release, which plummeted
- 8:42the price on that thing.
- 8:43So just by the market speculation that we might be doing something influenced the price on that
- 8:49item.
- 8:50Wow.
- 8:50Did that person go and buy a bunch of them all of a sudden?
- 8:52I assume so.
- 8:53Yes.
- 8:54But people do that a lot.
- 8:56And they try to buy all the resources of a certain type just to create a shortage of them.
- 9:03And we have amazingly clever group of players that do that.
- 9:08Players that have like economist boards and they have IT departments and all sort of stuff.
- 9:15Have you had instances where people are selling items in the game, but in real life for real money?
- 9:21It's a constant problem, really.
- 9:22We don't support it, obviously.
- 9:25It's very tricky to stop what we work.
- 9:28We try to do it as much as we can.
- 9:30And we've had a lot of success in it as well.
- 9:32But people always try to sell it.
- 9:34Sure.
- 9:35I guess that would mess up your algorithm, right?
- 9:37Because that's basically extraordinarily high value transaction happening invisible to your
- 9:42economy in a sense, right?
- 9:43Like a black market to some degree, I guess.
- 9:45Yeah, yeah.
- 9:46But that's not the only reason.
- 9:47It's also we don't like this kind of it.
- 9:50It's not secure for our players either.
- 9:52We also don't want you to be able to kind of buy a hat in the game and kind of skews the whole thing.
- 9:58This is the philosophy of a game that was made before the last five years of in-app purchases in iOS and these types of games, right?
- 10:07That has such a different philosophy.
- 10:08Yeah.
- 10:09The people that are the most successful in it, they just make a game that is fun.
- 10:14And then they find a way to monetize that without it being.
- 10:17Yeah.
- 10:17And then, of course, there are the other games where you just literally have to pay dollars and then you win.
- 10:23Yeah.
- 10:23That is not the same type of game as the.
- 10:26No.
- 10:26As even these other ones, right?
- 10:28I don't know.
- 10:28It's impure in some way.
- 10:29So let's talk a little bit more about the gameplay and then we can get into the technical bits.
- 10:34So there's this sort of economy and this exchange of goods.
- 10:38And there's a lot of like you had like 7000 star systems or something.
- 10:42You travel around and you can harvest things.
- 10:44So what other games is it like?
- 10:46Like does it relate to like Warcraft Starcraft or other games?
- 10:51Like can you give some analogies?
- 10:52So people who maybe haven't seen it are kind of aware.
- 10:54It's like a massive multiplayer online.
- 10:56So obviously you're going to draw some comparison with games like World of Warcraft and all the games online and those sort of games.
- 11:04Those are all kind of avatar based games.
- 11:06We like to think of them as more of a kind of a theme park kind of game where you go into the game and you have a bunch of rides where Eve is more of a sandbox kind of game.
- 11:16You can imagine you go to a sandbox and you have a shovel and a bucket and you're just going to have to make some fun out of it.
- 11:22Both genres are a lot of fun but kind of maybe cater to different needs and possibly just at different times.
- 11:29Yeah it seems to me like Eve is a game that really appeals to people that are like there for the long term.
- 11:35Like you're going to build something up over time and sort of grow it and so on.
- 11:39Yeah and we do have very loyal subscribers.
- 11:42They've been with us.
- 11:43Some have been with us for years.
- 11:45And even some people that have since then quit playing Eve still show up at the Eve Fan Fest, the annual kind of gathering here in Iceland that we have.
- 11:55Just because they're part of the community and like staying part of the community.
- 11:58That's really cool that people are like so attached to the community there.
- 12:03I mean how many players do you guys have?
- 12:05Give us some stats if you can.
- 12:06The peak is I think around 30 or 40,000 now.
- 12:10Wow.
- 12:10We were in the stats of like 300,000, 400,000 users I think.
- 12:15Must I know.
- 12:16Okay.
- 12:16When you say massively multiplayer that's pretty massive.
- 12:19Yeah it is.
- 12:20I mean there are bigger games there.
- 12:22I think at the time we ranked somewhere between a small multiplayer, massive multiplayer and a large one.
- 12:29Yeah yeah sure.
- 12:29Let's talk about Python.
- 12:31Where does Python fit in the story of Eve?
- 12:34When they started developing Eve they always wanted like a scripting language to go along with something a bit lower level like C++.
- 12:42I think they just it was obvious at the time to choose C++.
- 12:45But that was like back in 97 or something.
- 12:48It's pre-2000.
- 12:51There weren't a whole lot of options.
- 12:53They were looking at JavaScript but they eventually found out about Python and started looking into stackless Python.
- 13:00And they really liked the idea of the whole micro threads they had in stackless.
- 13:05Yeah and when you got started this was like probably Python 2 maybe before that right?
- 13:11I think it was Python 1.6.
- 13:13Yeah yeah because I think Python 2 was the year 2000.
- 13:16Is that right?
- 13:16Yeah.
- 13:17I think it is.
- 13:17So when you actually look at a lot of the decisions that were made at CCP with Python you kind of have to color them in that light.
- 13:25You have to look at the code and see okay so when was this written and what was available at the time.
- 13:30Right.
- 13:31The trade-offs you made have to consider like well should we use VB or this.
- 13:37I mean like these are the other technologies that are around at the time right?
- 13:40Like JavaScript.
- 13:41Yeah.
- 13:41There was no concept of this Node.js thing.
- 13:44It was kind of a toy right?
- 13:45So Python is a really good choice I think.
- 13:47Yeah but it was also I think a pretty daring choice because Python was pretty new at the time.
- 13:52It wasn't really that stable I would say and it didn't have like all the features that I think they would have needed.
- 13:58It didn't have as good IDEs and stuff like that.
- 14:02And I think it was daring but then again there wasn't like a whole lot of other options.
- 14:07Not for doing like a lot of work in a scripting.
- 14:10Right.
- 14:10There are actually quite a few Python implementations these days.
- 14:15And the show I just had last week was with Brett Cannon from Microsoft talking about Pigeon.
- 14:23And we talked about things like PyPy and Pyston and Pigeon and all these different choices for alternate implementations.
- 14:31And one I don't think we really spoke about was Stackless.
- 14:34But Stackless was one of the few alternative options you had back in that time frame right?
- 14:40Yeah yeah there wasn't a lot of other implementations I think.
- 14:43Then there was just the Vanilla Python and Stackless maybe a few others but yeah.
- 14:48Yeah not many like things like Jython and Iron Python are like circa 2006, 2008 and then onward right?
- 14:54So yeah.
- 14:55Why don't you tell everyone what Stackless Python is?
- 14:57Like what is it?
- 14:57What's the advantage of it?
- 14:58Why did you guys choose this over just CPython 1.9 or whatever it was?
- 15:02The biggest advantage of Stackless Python that people saw here was the kind of the existence of micro threads.
- 15:09Just very lightweight worker threads that you can even start up and they could do one thing.
- 15:14The idea being that you could be cold would be a lot easier to read basically.
- 15:20You could just start up like this one task and it just does this one thing.
- 15:24Yeah well if you're dealing with 40,000 concurrent connections.
- 15:27Yeah.
- 15:28A single threaded you know sort of maybe forked off the 10 or 20 process type of system may well not scale the way you need it right?
- 15:35So something like this is really helpful yeah?
- 15:38Yeah that was the biggest reason for choosing this over Vanilla Python I believe.
- 15:43Are you guys still using it?
- 15:44Yeah we still use Stackless.
- 15:46We kind of wish that the rest of the world would have followed us into Stackless but sadly that didn't happen.
- 15:51And now we have some alternatives in Python so we still are kind of tied to Stackless Python in terms of code.
- 16:00Yeah it would probably take a pretty major rewrite yeah?
- 16:03I'm not really sure how major it would be but it would be pretty substantial by the look of it.
- 16:08Right.
- 16:09So maybe let's talk a little bit about the architecture infrastructure type of bits.
- 16:14Could you maybe talk about like the different systems and stuff that's going on in the back end?
- 16:19I'm assuming that the front end the thing that runs on my OS X machine or Windows that is the graphics and the actual client side game.
- 16:27It's mostly C++.
- 16:29Is that a fair assumption?
- 16:30Right.
- 16:30Most of the most of the highest high performing stuff is C++ like the graphics engine is C++.
- 16:37The physics engine is C++.
- 16:39The DP layer is C++.
- 16:41Then we kind of have a nebulous layer that handles like files and various things, clocks and stuff like that called blue which is like our own dimension.
- 16:51We have various third party libraries written in C++ as well.
- 16:56Yeah.
- 16:57So most of that is done in C++.
- 16:59Most of the stuff that we for someone saw that would be a problem.
- 17:04We also have like a minor things.
- 17:07There's a feature called planetary interaction where we kind of have a layer over the planets that shows like resource distributions which is implementing the C++ because we thought it would be very performant.
- 17:21And which would have had a performance problem I think in Python.
- 17:25But we wrote that in C++.
- 17:27So we have some options if we want to do something to perform really really fast we can write in C++.
- 17:32Sure.
- 17:32And do you have anything on the client side that's Python?
- 17:35Or is that all backend stuff?
- 17:36Yeah.
- 17:36Yeah.
- 17:36Yeah.
- 17:37The most of the UI implementation is in Python.
- 17:40Like it falls on to like C++ some rendering but for the most part UI programmers write stuff in Python.
- 17:47Oh that's really interesting.
- 17:48Yeah.
- 17:49This episode is brought to you by Hired.
- 18:02Hired is a two-sided curated marketplace that connects the world's knowledge workers to the best opportunities.
- 18:08Each offer you receive has salary and equity presented right up front and you can view the offers to accept or reject them before you even talk to the company.
- 18:16Typically candidates receive five or more offers within the first week and there are no obligations.
- 18:20Ever.
- 18:21Sounds awesome doesn't it?
- 18:22Well did I mention the signing bonus?
- 18:24Everyone who accepts a job from Hired gets a $1,000 signing bonus.
- 18:27And as Talk Python listeners it gets way sweeter.
- 18:30Use the link Hired.com slash Talk Python To Me and Hired will double the signing bonus to $2,000.
- 18:36Opportunities knocking.
- 18:38Visit Hired.com slash Talk Python To Me and answer the call.
- 18:42When I thought about how you guys were using Python I of course thought all right the back end is probably a lot of Python and things like that.
- 18:52But like I said the front end mostly C++.
- 18:54Can you elaborate on that?
- 18:56Like are they using a custom sort of plug into your own rendering engine or are they using some kind of widget windowing system or maybe talk about it a bit?
- 19:05This is all kind of custom made here at C++ so the low level objects like the drawing of the stuff is in C++ and then we can actually just and I think at least it used to be the case that you would just kind of inherit from them.
- 19:20The Python object could inherit from the C objects and you would.
- 19:23I can't remember what we were using for it whether it was boost or.
- 19:27Sure.
- 19:28That sounds really really cool.
- 19:29How about on the server side like what type of interaction does the game from the client side actually have with the server and what does a request sort of look like from sort of systems and infrastructure and so on?
- 19:40Right.
- 19:40We have our own kind of a networking layer which we call Matsunet and it kind of handles the server and client communication as well as communication between nodes on the cluster.
- 19:53Both from the proxies to the sole nodes as we call them which are really just the worker nodes where everything happens.
- 19:58The proxies sit out in front and receive requests from the client as well as the communication between nodes as well.
- 20:07This is all done in Python actually.
- 20:09Okay.
- 20:09Yeah.
- 20:09No, no.
- 20:10It was rewritten some time ago.
- 20:12C++.
- 20:13But with the Python layer on top so you can know this.
- 20:16Right.
- 20:17Right.
- 20:17Very cool.
- 20:17And is this in your own set of data centers or are you hosted in like some kind of cloud place?
- 20:23Like AWS or something?
- 20:24No, no.
- 20:24It's in our own data center and we actually moved data centers recently.
- 20:28There's a big blog on that on the website.
- 20:30It might be interesting for attack might be able to read that.
- 20:34It was actually quite an operation.
- 20:35We had to both move data centers and we had to buy whole new hardware in it.
- 20:42And we were just moving between like London.
- 20:45And then I heard you say you were using SQL server somewhere around there.
- 20:49Is that right?
- 20:50Yeah.
- 20:50That's correct.
- 20:51Okay, cool.
- 20:51Are you hosted on Windows or on Linux?
- 20:53We're hosted on Windows.
- 20:54We're probably one of the rare instances where we actually use Python and Windows, I guess.
- 20:59Yeah.
- 20:59Yeah.
- 20:59Very cool.
- 21:00Okay.
- 21:01The world has changed since 1997 in terms of databases pretty dramatically, especially
- 21:06in the last five years.
- 21:07I'm sure part of the reason that you guys are on a relational database has to do with the
- 21:12fact that you started on a relational database.
- 21:14But do you think if you could start totally from scratch, would it make more sense to be
- 21:18on like a NoSQL database or stick with a RDBMS like SQL server?
- 21:23I think if I were forced to choose like a single database, I would probably still go with a
- 21:29relational database.
- 21:30We've made so many changes recently in terms of this microservices architecture that I wouldn't
- 21:37really see a necessarily need to do that.
- 21:40I would try to split up the clusters a bit more into these functional areas than when I'm
- 21:46storing data that needs a relational database.
- 21:49I would store it in a relational database, otherwise a NoSQL database or a graph database
- 21:55or whatever.
- 21:55But I think if I had like a 1db catch all, I would still go with relational database.
- 22:01Makes a lot of sense.
- 22:02The world is definitely moving towards this concept of microservices.
- 22:06And I don't think I've spoken very much about that on the show.
- 22:11I think maybe a little bit when we had the Docker guys on way back in show nine, but also
- 22:17had a conversation with Sam Newman that actually the audio went so bad we couldn't put it together
- 22:22specifically about microservices.
- 22:24I'm sorry about that, Sam.
- 22:25But maybe you could just tell us really quickly for those people are like microservices.
- 22:29Those sound like small services.
- 22:30What's that?
- 22:30Maybe describe that a bit.
- 22:32It's essentially that it's small services.
- 22:35It's this idea that you spin off a service for a specific need that your total ecosystem needs.
- 22:43So in terms of EVE, then we, for example, have a market.
- 22:46Maybe the market could be its own microservice.
- 22:48Maybe it doesn't have to need to connect to the cluster.
- 22:51The cluster would only need to know how to talk to that microservice and that Microsoft
- 22:55service to talk to that cluster.
- 22:57I don't think I would really, really do it justice, but it's really just a matter of that,
- 23:02of breaking up your kind of the total application into like multiple smaller services.
- 23:07Yeah, the thing that I think that's interesting about that is, you know, I ask you about what
- 23:12is the right database?
- 23:13And the answer may well be, well, certain types of architectures that are proving to be powerful,
- 23:20like these microservices, the answer could be many small ones.
- 23:23And then it even matters less because when you're, if you're, let's say, just modeling only the
- 23:28economy, which I'm sure is still massive, but just the economy, not every possible thing
- 23:33that could go on in the game, then you might have smaller database performance needs and
- 23:37so on, right?
- 23:38Yeah.
- 23:38And in some cases of data, you actually need everything to be always up to date, but maybe
- 23:45sometimes you just need like eventual consistency on that data.
- 23:48So you can pick database solutions based on the need for that particular feature rather than
- 23:55choosing it for everything and hoping it all matches.
- 24:00Having said that, I don't suggest that everybody makes changes to their architecture from like
- 24:05single monolithic application to a microservices.
- 24:08It's something you, you exchange one problem for a set of other problems, but it can make
- 24:13a lot of sense.
- 24:14And one of the things that I love about it is that it allows you to change, you know, decisions
- 24:20that you thought you were kind of rooted into that you thought you would never, ever going
- 24:25to change.
- 24:25Yeah, that's, that's interesting.
- 24:27And it's good advice, right?
- 24:28Like design patterns and these larger architectural patterns are super powerful, but they almost
- 24:34always have a context that goes along with them.
- 24:36If you have a billion lines of code and this level of huge complexity, you can make that complexity
- 24:42more manageable by breaking it apart.
- 24:44But if you've got like 5,000 lines of code, maybe a microservice just means more servers and
- 24:48things to maintain, right?
- 24:50Right.
- 24:50It's more service.
- 24:51It's more things to maintain.
- 24:52It's in theory that those servers should require less maintenance as well.
- 24:58And they're easier to comprehend.
- 25:00But you also need like infrastructure.
- 25:02Maybe you need to have a message queue in there.
- 25:04Maybe you need to add in a bunch of technology that you wouldn't have needed if you had a monolithic
- 25:09application.
- 25:10Yeah.
- 25:10And performance as well, right?
- 25:11Like if previously the call to get data about like the price of an item in your economy
- 25:17was within the same machine or, or something to this effect within the same process even,
- 25:23but it still hits like a database maybe.
- 25:25That's probably a lot faster than actually going across the network, finding another machine,
- 25:30doing a whole HTTP thing, and then asking that same question, right?
- 25:32Yeah.
- 25:33Absolutely.
- 25:33I think, yeah, you just have to, you have to tread very carefully.
- 25:38I think it's easy to get really, really excited about microservices and, but you really have
- 25:44to make sure that's the correct solution for you.
- 25:47Yeah, absolutely.
- 25:47I certainly see those tied together with Docker and the whole container space.
- 25:51But again.
- 25:52Absolutely.
- 25:53They've made this thing a lot easier.
- 25:55Nice.
- 25:55So one of the things that you said that you guys had done, I thought was pretty interesting
- 25:59is you said you had written your own importer.
- 26:03Is that, like if I say import space some module name, like import OS, you rewrote what that meant?
- 26:08Well, sort of.
- 26:09It's not really maybe such an importer as much as like a bootstrap.
- 26:14Okay.
- 26:15I don't know actually what the state was in Python 1.6, but I'm thinking maybe it didn't actually
- 26:22know how to import packages and that whole dunder in it.
- 26:26Oh, interesting.
- 26:27Okay.
- 26:27So that was pretty interesting.
- 26:29And so what they wanted, and they wanted like a shallow namespace for these things.
- 26:33So what they actually did was they wrote something that would just loop over the file.
- 26:37It would, you know, read, execute that file and import it into like a namespace that they
- 26:44created.
- 26:44So they basically just injected into CSTOck modules.
- 26:47Interesting.
- 26:48Okay.
- 26:49So what was the benefit there?
- 26:50Do you remember?
- 26:50One of the benefits was that we'd have auto-reloading of modules when we changed them.
- 26:56And it was actually quite nice to work with E at the time.
- 26:59And it still works that way.
- 27:01It's just now it's a Python solution instead of like a home-cooked one.
- 27:06But just changing something in code, you don't have to restart your survey, don't have to
- 27:11restart your clients or anything.
- 27:13You just re-execute whatever you're doing.
- 27:16You click the button again.
- 27:17Okay.
- 27:18Now you got my attention.
- 27:19That's pretty intense, actually.
- 27:20Yeah.
- 27:21And that's still the case today.
- 27:23But now it's like with a Python implementation of it.
- 27:26Did you have to do...
- 27:27I guess you almost have to.
- 27:28Either you say you can't use these types of features or you have to deal with things like
- 27:32static variables and static class fields that have been set previously.
- 27:36And then if you reload the module, what did you do there?
- 27:39It wasn't completely foolproof.
- 27:41Like if you...
- 27:42And it still isn't.
- 27:43If you already bound the method to something, it doesn't actually reload that.
- 27:47If you like pass in a method of an object into something else, then it's already bounded
- 27:52and it doesn't reload it.
- 27:54But for the most part, for the most code you are changing, it actually just changes it.
- 27:59I've had issues where some data was actually stored on a module level, like a dictionary
- 28:05on a module level.
- 28:06And whenever that got re-imported, it would clear that.
- 28:09And those sort of things.
- 28:11I mean, it happens.
- 28:13You need to restart your server and client.
- 28:15And when you're trying something out and something funky comes up, that's something what you do.
- 28:19You just restart everything and try again.
- 28:21Yeah.
- 28:21Interesting.
- 28:22So you have like two levels.
- 28:23You're like, let's just try to hot patch it.
- 28:25If that doesn't work, give it a hard kick, right?
- 28:27And we've done that in production as well.
- 28:29Like if there's a problem that we really want to fix, and that's actually one of the drawbacks
- 28:34of having a monolithic application.
- 28:36If I have a problem in the market, I need to take everything down to patch it up.
- 28:41Right.
- 28:41We've actually live fixed stuff like that.
- 28:44Just going in console and just creating a new method and attaching that to the class.
- 28:49Okay.
- 28:49That sounds really, really powerful and interesting.
- 28:51Is any of that sort of open source or blogged or written about that people can check out?
- 28:56No, no, no.
- 28:57None of this is open source.
- 28:59I don't think we've ever blogged about this.
- 29:01I think.
- 29:01Okay.
- 29:02Well, it sounds interesting.
- 29:03I know.
- 29:03I talked to David Beasley.
- 29:05I think it's show 12 about modules and packages and this whole concept.
- 29:09And it was like, oh, we're not really sure that this is going to work.
- 29:12If it can be done.
- 29:13So to hear that you guys are doing it on this real app, this is very cool.
- 29:16I think people might get kind of caught up in the idea that, well, it's not going to work
- 29:21every time.
- 29:22But that's okay when you're doing development.
- 29:23You just want like rapid feedback, really.
- 29:26Yeah.
- 29:26If it works 95% of the time and it saves you a ton, then maybe it's worth it, right?
- 29:30Yeah.
- 29:30Yeah.
- 29:31I guess coming back to the microservices thing, if you build for something like microservices
- 29:35and you do need to sort of hard restart some piece, it probably has a smaller consequence
- 29:40because you're not restarting the entire thing, right?
- 29:42Yeah.
- 29:43Well, but the flip side of that is that you have to write everything now as in nothing
- 29:48is guaranteed to be up.
- 29:50Yeah, right.
- 29:51If you do that, then you kind of, you're always guaranteed to have something down.
- 29:56And if your whole, if nothing works, when one of the bits is wrong, you're going to
- 30:00have constant downtimes.
- 30:01Yeah.
- 30:02That's straight off again, right?
- 30:03Yeah.
- 30:04It's a trade off.
- 30:05Like, it's not a silver bullet.
- 30:06And I think people have been pretty, pretty vocal about that.
- 30:10Like, the experts on this have been pretty vocal about that.
- 30:12And I think every paper and every talk I've seen about microservices always starts with
- 30:19that.
- 30:19This is not like a silver bullet that will fix all your problems.
- 30:22Okay, cool.
- 30:23So one of the things that happens in the game is there seems to be a lot of people
- 30:29that group together to form like a fleet.
- 30:31And then sort of in real time with voice communication, they'll go in and they'll have like these fleet
- 30:38battles, right?
- 30:38How many people end up in those battles?
- 30:41How many different players?
- 30:42SnapCI is a continuous delivery tool from ThoughtWorks that lets you reliably test and deploy your code through
- 31:02multi-stage pipelines in the cloud without the hassle of managing hardware.
- 31:07automate and visualize your deployments with ease and make pushing to production an effortless
- 31:12item on your to-do list.
- 31:13Snap also supports Docker and M browser debugging, and they integrate with AWS and Heroku.
- 31:19Thanks, SnapCI for sponsoring this episode by trying them with no obligation for 30 days by
- 31:25going to snap.ci.com.
- 31:27SnapCI slash talkpython.
- 31:28It can, Lars, I think the largest we had was like 4,000 people, I think.
- 31:41Wow.
- 31:42Then it can get pretty laggy, but...
- 31:45What's the sort of performance characteristics as you add more people?
- 31:49I mean, it can't be linear, like 2,000 people versus 4,000.
- 31:53It's more like combinatorial or something really expensive, right?
- 31:56Like, how's that work?
- 31:57We've done a number of optimizations over the years of that.
- 32:00It actually performs quite well.
- 32:02I'm not sure if it's linear, but it's not N2 or anything like that.
- 32:07But it's also very difficult to predict on that because it matters a lot whether everybody
- 32:12is shooting at a structure, maybe, that doesn't die for a long time, or if people are shooting
- 32:17at each other and people are getting killed and then removed from that solar system.
- 32:22That creates more load.
- 32:24It matters if people are shooting from guns or using missiles.
- 32:28Right, because guns presumably are instantaneous, but missiles sort of cruise through space.
- 32:32Yeah.
- 32:33Right?
- 32:34You've got to track them for everyone and see them go by and so on.
- 32:36Yeah, yeah.
- 32:37They don't collide really with anyone except the person that they're meant to collide with.
- 32:41That's one of the optimizations we did a long time ago.
- 32:45There's a lot of factors.
- 32:46It's very hard to say, like, you can look at a thousand people fleet fight and see no lag,
- 32:53and you can see another one that has a massive amount of lag.
- 32:55It's very hard to measure that.
- 32:57One of the most reliable kind of metrics we have is the market up.
- 33:02We have a single system that, you know how people are, they kind of just all gravitate.
- 33:07And because a lot of goods are there for sale, people think it's worth it for them to put
- 33:12their goods up for sale.
- 33:13So it creates this market up, which is a solar system called Jita.
- 33:16And there we have like a constant influx of people.
- 33:20We had like a maximum of 3,600 people there the other day.
- 33:25That's a lot.
- 33:26Because of some server optimization we had been doing, the CPU actually never went above
- 33:3050%, I think, on that.
- 33:32Yeah, yeah.
- 33:33That's really cool.
- 33:33So you said one of the challenges you have with some of the scaling has to do with the dreaded
- 33:38global interpreter lock or the GIL.
- 33:39What's the story there?
- 33:40We basically can segment our cluster up into, well, it's probably easier to explain by solar
- 33:47system, right?
- 33:48That's the smallest unit we can run.
- 33:51We can't distribute the load within one solar system to multiple processes, really.
- 33:56Right.
- 33:56Okay.
- 33:56That's going to be a bit problematic because that means we can only use really just one
- 34:00core on the machine.
- 34:02So it doesn't really matter.
- 34:03And it's very problematic because the hardware industry is actually moving more towards more
- 34:07core and maybe less clock speed.
- 34:10What we really desire is more clock speeds.
- 34:13Yeah.
- 34:13I mean, the clock speeds, I think, are, if they're not slower, they're definitely not any faster
- 34:18than what they were in like 2005, right?
- 34:20They're not getting faster.
- 34:21I can tell you that.
- 34:22Yeah.
- 34:22Yeah.
- 34:23I mean, they may even be slower.
- 34:24I know they got higher and they started to melt.
- 34:26They kind of went down.
- 34:26All right.
- 34:27That's it.
- 34:27Eight cores, lower, lower gigahertz, lower clock speed.
- 34:31Yep.
- 34:31Very interesting.
- 34:32Would Docker type stuff or virtualization sort of let you sort of break that up, at least
- 34:38not dedicate a whole machine to it, but say, okay, well, we're going to isolate, you know,
- 34:43Windows.
- 34:44I guess Docker is doing stuff with Microsoft these days, but maybe it's, I should say,
- 34:48Windows containers that's coming out soon.
- 34:50Would that be a way to partition this so that you can still get everything you want out of
- 34:54those machines without dealing with the threading?
- 34:56Yeah.
- 34:57It's an interesting thought.
- 34:58It still requires like a lot of programming work to actually do it, but you'd have to segment
- 35:03what the cluster is doing within the solar system into like something logical units,
- 35:08which you can scale, which doesn't chapter too much between each other.
- 35:12We actually have an idea about that, but yeah, we'll see if we get there.
- 35:16As it currently stands, we're not really that pressed for performance, or at least it's
- 35:23not as high priority as some other stuff we want to do.
- 35:26Right.
- 35:27When you're doing performance analysis, like you just look at the slowest thing, the bottleneck.
- 35:31Right.
- 35:32If the stuff behind it is slower, but still fast, you know, slow, but faster than the bottleneck,
- 35:36then who cares, right?
- 35:37Yeah, right.
- 35:38And there's something to be gained looking before we start looking into splitting really
- 35:44this into multiple processes on the same note.
- 35:47But we have like a better lead than that.
- 35:51So one thing you said you're really into is test-driven development, unit testing, and so on.
- 35:56And this code is super old.
- 35:58You must have some interesting challenges writing tests for a code from this long ago, yeah?
- 36:03Yeah, and the importer or bootstrapper, which we appropriately named Nasty at the time,
- 36:09was of course like a huge, huge burden on us for that, because we couldn't really import
- 36:17any of the EVE-specific code without using that Nasty importer.
- 36:22And that Nasty importer really had to throw through everything and really just run a full-scale
- 36:28client or a server.
- 36:29Yeah, so you were almost like forced to the point where you're doing integration tests
- 36:33because you had to start the whole thing anyway, right?
- 36:36Exactly.
- 36:37And we did manage to create like an interpreter that did that, but we had me and another program
- 36:44who were writing tests, and I think we were up to like 100 tests, and they were taking 45
- 36:48seconds to run, which was just terrible.
- 36:51Yeah, that's pretty long for unit tests, right?
- 36:53Yeah, yeah, and it's unusable if you want to use it for like a quick iteration feedback.
- 36:58Yeah.
- 36:59When developing, you really need something in less than a second time or like close to it.
- 37:06But there was some initiative to actually get rid of Nasty.
- 37:09They actually managed to do it in like one summer.
- 37:12They managed to do it in, I think, two weeks.
- 37:15Oh, nice.
- 37:16And now testing is much easier?
- 37:17Now testing is a lot easier.
- 37:19It's still a lot of coupling, and there are other things other than creating our own
- 37:24bootstrapper slash importer that we did, like shoving stuff into buildings and stuff like
- 37:30that that make testing harder.
- 37:32But usually always you can extract the code that you want to test out, and you write tests
- 37:40for them.
- 37:40Right, okay.
- 37:40Nice to hear that you've got that sort of cracked open so you can test it.
- 37:44Yeah, yeah.
- 37:45It's been like once that came in and once I started being able to write tests like that,
- 37:51it kind of really opened my eyes towards testing and development and automatic testing in general.
- 37:58All right, cool.
- 37:58So let's talk about a little bit about CCP, the company that makes EVE Online.
- 38:03Yeah.
- 38:03You guys are primarily based out of Iceland, right?
- 38:06Right, mostly out of Iceland.
- 38:07We have offices in Núkastúl, Shanghai, and Atlanta, but everybody that works on EVE is
- 38:14stationed in Reykjavík.
- 38:15Very cool.
- 38:15I've never been to Iceland.
- 38:17It's definitely one of the places I'd like to visit, though.
- 38:19Yeah, it's definitely interesting, although I lived here most of my life, so...
- 38:23It seems very natural to you, right?
- 38:25Very normal, but...
- 38:25It seems very normal.
- 38:26Yeah, with all the winter and the volcanoes, and I think that'd be super cool to go check
- 38:32out.
- 38:32Nice.
- 38:33So you guys use an Agile approach, is that right?
- 38:35Do you use Scrum, or what's the story there?
- 38:37Yeah, well, we started with Scrum, and then we kind of...
- 38:41It's morphed into something that's like Scrum, but it's mostly...
- 38:45Scrum is really the basis of it, but I think we allow every team to really put their own
- 38:52flavor on it and do kind of whatever works for them.
- 38:55Agile practices are really funny, because if you don't pay attention to them, they will
- 39:01just deteriorate, and you'll start getting worse at them.
- 39:04So it's something that just kind of requires constant putting.
- 39:07And of course, it's part of the Agile to have retrospective and constantly be trying to
- 39:13improve yourself.
- 39:13Right.
- 39:14I think a lot of people lose sight of that.
- 39:15I mean, on one hand, there's not necessarily a single Agile process that is exactly right
- 39:21for everyone, right?
- 39:23I mean, that's a little bit about being flexible and Agile and so on there.
- 39:26But then if you're going to go and sort of walk it up to the edge of the absolute minimum
- 39:30amount of documentation, rules, structure, that means if you fall apart just a little bit,
- 39:36you're probably falling out of the minimum amount of structure that you need, right?
- 39:39Right.
- 39:40It's a little bit like that.
- 39:41I kind of like starting with Scrum.
- 39:44I think Scrum has like, if you understand why the rules of Scrum, then you have the power
- 39:49to change them as they make sense to you.
- 39:51But I've seen also seen a lot of companies or heard from like a lot of my colleagues here
- 39:56around Iceland is that they've implemented Scrum, but they really didn't get what Agile was.
- 40:03So it just goes through the motions.
- 40:05And then, hey, this Agile thing sucks.
- 40:07It doesn't work.
- 40:08Yeah, right.
- 40:09Yeah, well, maybe you didn't follow it.
- 40:10You guys said you also have a kind of interesting learning and development philosophy.
- 40:16What's the story there?
- 40:17Well, it's not.
- 40:18I mean, we do try to foster kind of the culture of having like what we call a community of practice.
- 40:25We had a Python community of practice, for example, but we kind of retired that because
- 40:32people weren't really showing up that much.
- 40:34But it's actually very difficult because people are so invested in their job.
- 40:41They're so invested in what they're doing that they don't see that they can spare an hour here
- 40:47to do stuff like that.
- 40:49What we've been doing is maybe a bit weird, which is different than sending people to conferences
- 40:54and getting consultants here is that we've been kind of running this video series.
- 40:59Uncle Bob.
- 41:01Oh, yeah.
- 41:01Robert Martin's awesome.
- 41:02Yeah.
- 41:02We've been running that and we've been having like talks after it.
- 41:06That I think has been very good.
- 41:09I definitely recommend for companies to do that.
- 41:12It's probably one of the cheapest learning and development you can get, like in terms of bang for buck.
- 41:17Yeah, I totally agree.
- 41:19I think one of the things that people, companies, teams, individuals, like on all the levels,
- 41:24don't necessarily realize is if you just spend like half an hour a week or half an hour twice
- 41:31a week making sure you polish your skills, you learn something new.
- 41:34After a few years, that really adds up.
- 41:37Absolutely.
- 41:37There have been other initiatives in the past.
- 41:40Like we had, like on Friday, people had code cutters where they would meet up and they would
- 41:44get like a task and then go in groups of twos and they would do something like write these
- 41:50features, but don't use classes.
- 41:51Stuff like that.
- 41:53So these initiatives, they come and go.
- 41:55I had a kind of a mob programming session, which was all about pulling code out and write tests for it.
- 42:03Very interesting.
- 42:03You know, I don't think we've talked about mob programming on this show.
- 42:08I know what it is, but I don't think we've ever mentioned it.
- 42:11Can you just give me like the really quick elevator pitch?
- 42:13Like what is mob programming?
- 42:15Basically what it sounds like, it's like one guy and a keyboard and he takes a test and people shout at him.
- 42:21But of course, there's one driver and he probably knows a bit where he's going and then he kind of just listens to,
- 42:28okay, so what do you want to do here?
- 42:29Do you want to create a new method here?
- 42:31Do you want to create a class or whatever?
- 42:33Would you say it's kind of like paired programming, but many people on the pair side?
- 42:38Yeah, and probably a lot, lot less efficient, but it sparks up a good conversation.
- 42:43Right.
- 42:44It's more, it's not necessarily like paired programming.
- 42:46The expected output is solid code that you're going to ship.
- 42:50Yeah.
- 42:50Where I think mob programming is more about mutual understanding.
- 42:54Yes.
- 42:54And skill development and so on, right?
- 42:56Yeah.
- 42:56Also just getting people to kind of voice their opinions about how code should be.
- 43:01Because that's, we actually just don't do that.
- 43:03We write code, we put it up to code review.
- 43:05But without me understanding what your agenda or what your philosophy about code is,
- 43:11then chances are we're going to disagree on a lot of like fundamental things.
- 43:16I would say so.
- 43:17Yeah.
- 43:17It sounds like a cool approach you guys have going there.
- 43:20So one thing I wanted to ask you about, do you have any stories about like when there was
- 43:24some giant unexpected rush of new traffic or new customers, like maybe like, you know,
- 43:30a new release came out that was really popular or something like that?
- 43:32Well, we had the other day, we had a new item come out that was very popular on the market.
- 43:38And then that meant that everybody brought to that note, that cheetah note to sell stuff
- 43:44and buy stuff on it.
- 43:45Way more than what we've usually been expecting.
- 43:48The thing is, we have a cup on that note.
- 43:51We have like, we allow like max 2,000 people, I think, on it.
- 43:57Because if we get more, or when we used to get more, then the game would be pretty unplayable
- 44:04for everybody involved.
- 44:05So we thought it was better to actually limit the amount of people that could be in there
- 44:09at any time.
- 44:10And their experience would at least be a little bit better.
- 44:13And people can always play and be in other systems.
- 44:17But because of a number of performance, like a big performance upgrade we've done, we kind
- 44:23of saw that the server wasn't actually...
- 44:25So we started increasing the cup.
- 44:27We increased it first by 2,500.
- 44:30And then we started reaching that.
- 44:32So we increased it.
- 44:33So we're thinking about increasing it to 3,000.
- 44:36But instead, the development director said, like, looking at the graph, I think we should
- 44:40just go to 5,000.
- 44:42We can support 5,000 based on these numbers.
- 44:44So that's what we did.
- 44:45And we got 3,600 people there.
- 44:49The CPU never went above 50%.
- 44:51But the memory was actually getting to the limit.
- 44:55Wow.
- 44:55And that was actually like a...
- 44:57It's a weird thing because we've gone from being memory restricted on a PC to almost not
- 45:04having to think about it at any point.
- 45:06Eve has this weird thing where we restart the cluster every day at 11 o'clock.
- 45:12So whatever memory we have cast, that gets flushed out.
- 45:16So the programmers on Eve have never really considered memory so much.
- 45:22So we just cast it and then we never release it because we've never really had to release it.
- 45:27So it's weird that when you have a lot of people coming in, we just saw the memory increasing and it never went down.
- 45:33Oh, wow.
- 45:34Nothing ever released that memory.
- 45:36Yeah.
- 45:36What I think is interesting about that story is when I think of some system getting hit with lots of traffic and having unexpected growth, I see it as an all or nothing type of thing.
- 45:49Like the website now has a lot of visitors and so it's busy or not.
- 45:52But the way you guys have structured your world, it's like there's a little node over there somewhere where a bunch of people went into that part of the universe and now that part is too busy.
- 46:00That's an interesting way to think about scale.
- 46:02Like I suspect most places don't.
- 46:05Yeah, yeah.
- 46:05It's always been a...
- 46:07And it's both...
- 46:08It's very funny to look at the kind of the overall CPU utilization of our clusters and you can see like it's using 10% CPU on average.
- 46:20But still, you know that there are some people, there are some node there that is 100% and people are experiencing lag and you're seeing 10%.
- 46:28Yeah, it's almost like you need sort of a mountain range type graph instead of just a level or something like this.
- 46:34Very cool.
- 46:35And in our old data center, what we used to have is that we had one node that was...
- 46:40We called it the Everest node.
- 46:42It only ran that one JETA solar system and it was a bit beefier than all the other nodes and it was just dedicated to running that particular node.
- 46:52Yeah.
- 46:52In the new cluster, I think all the machines are better than that old machine.
- 46:57That was the good one and now it's old and crusty.
- 47:01Very cool.
- 47:01So I do have just a few more questions before we kind of wrap up the show.
- 47:04Yep.
- 47:05I was told on Twitter, thanks, I think it was Kyle that sent a message that said, I should ask you about the big red button.
- 47:11Yeah, I always get that.
- 47:14I'm a bit of a, I guess, infamous in the EVE universe.
- 47:18So what happened is that I was just happily developing on my local clusters and I needed to do something.
- 47:24Normally when I shut down the cluster, I just kill the process and start it off again.
- 47:29But there is some logic that happens when you shut down the cluster, some persisting logic that I wanted to test.
- 47:35So I go to the web page of the cluster and I shut it down properly or properly.
- 47:41It's called an emergency shutdown and I gave it a minute timer.
- 47:44So I did that and then I go back to my client and I don't see the normal message that I get when I shut down the cluster.
- 47:51Like the cluster is about to shut down.
- 47:54So I look at the page again and I realize I'm on the production clusters and I'm shutting down the production clusters.
- 48:00Oops.
- 48:03So I, and the only way to cancel it is to go to that page again.
- 48:08So I did that and I canceled and I didn't know how long time had passed.
- 48:12I knew I put a one minute timer there, but I just frantically clicked that button.
- 48:16And it turns out I managed to stop the shutdown.
- 48:19It never actually shut down.
- 48:21But everybody that was logged in got that message that the EVE was shutting down and people really don't like that.
- 48:28I'm sure they don't.
- 48:29They really don't like that.
- 48:31So they went on the forums immediately and said, like, CCP, what the hell?
- 48:35Why are you shutting down the server?
- 48:37Why do you have a one minute timer?
- 48:38Because people want to get their assets to safety and stuff like that.
- 48:41Right, of course.
- 48:42Yeah.
- 48:42So I did what just came naturally to me.
- 48:45I just, I just went into that forum thread and saw, look, sorry, this is my bad.
- 48:50I thought I was shutting down my development cluster.
- 48:53And I'm being ridiculed by my coworkers now.
- 48:56Yeah, I'm sure.
- 48:57But it's really, really funny.
- 48:59Because EVE players are like that.
- 49:01They do get very emotional about it.
- 49:03But they also are pretty cool people.
- 49:05And honest mistake like that, they just let it slide.
- 49:09Yeah.
- 49:09And they're pretty technically savvy.
- 49:11They are technically savvy.
- 49:12They understand.
- 49:12Some of them probably did this once.
- 49:15And I think this even happened like a week after when someone in operations of QA, I can't remember, was going to shut down the test server and shut down that.
- 49:25But he didn't go to the forums and apologize.
- 49:27Yeah.
- 49:27And didn't claim, you know, public responsibility and say something.
- 49:31And I think that people like to remember that story as something.
- 49:35Yeah.
- 49:37This is messed up.
- 49:38But I'd like to think that I just, I did the right thing by apologizing to people and explaining just exactly what went wrong and why I was being stupid for doing it.
- 49:51Yeah.
- 49:52It all happens to us.
- 49:53One time I was teaching a training class.
- 49:55And I'll try to not put any details about any place.
- 49:58And I was somewhere in Chicago, let's say.
- 50:01And I was teaching this training class at a financial place.
- 50:04And they, for some reason, didn't have a proper room that they could use for all the 20 people that were in my class or whatever.
- 50:10So they had given us this weird, like, secondary server room where there's all these servers along the wall.
- 50:16But they weren't, it wasn't obviously the main data center.
- 50:19It was just, like, servers that ran internals within the company, you know?
- 50:22Yeah.
- 50:23And I had this little squishy ball thing that I would use to, like, work out your hands or whatever.
- 50:27And I was walking around.
- 50:28It slipped out of my hand.
- 50:30And it was odd shaped.
- 50:31So it bounced like a crazy ball.
- 50:33And it bounced along the students' desks, over along the wall, hit the wall, fell down, and hit a power strip that killed an entire wall of servers.
- 50:40Oh, my God.
- 50:42You hear it go quieter.
- 50:44Oh, my.
- 50:44That is bad.
- 50:45So we quick turn them all back on and just go back to the class.
- 50:48And about 10 minutes later, some guys rush in, like, what happened to the servers?
- 50:52Everyone's like, we don't know.
- 50:54So, yeah.
- 50:57I've turned off the servers as well on accident.
- 50:59Yeah, yeah.
- 51:01Luckily, the students had my back.
- 51:03All right.
- 51:03Two quick questions before we go.
- 51:05If you're going to write some Python code, what editor do you use?
- 51:08I use PyCharm now.
- 51:10I've used Sublime and Wim in the past.
- 51:13But I think in terms of, like, a good IDE, I think nothing is better than PyCharm.
- 51:18Yeah, I'm with you on that.
- 51:20I love PyCharm.
- 51:21That's what I use as well.
- 51:23Awesome.
- 51:23And then if you're going to go and look at PyPI, all the packages, I think there's like 75,000 of them now.
- 51:30Are there ones that are super useful that you think maybe people don't know about that they should?
- 51:34Well, what to choose from?
- 51:35I love the request packets.
- 51:37I think it kind of puts the simplicity in making, like, HTTP call.
- 51:42Yeah.
- 51:42What's interesting about that is it's, like, so simple, you can almost not appreciate how cool it is.
- 51:48Exactly.
- 51:48I really love that packet.
- 51:50Mostly because I have probably used the other libraries.
- 51:53And they are probably more flexible and stuff like that.
- 51:56But sometimes you just want to make a get request on a resource.
- 51:59Yep.
- 52:00Request.get.
- 52:01And you're good to go.
- 52:02Awesome.
- 52:03So if people want to get started with EVE Online, how do they do it?
- 52:06Visit eveonline.com.
- 52:08That would be the first step.
- 52:10And I want to highlight a feature of that is that you can download the launcher.
- 52:14And it starts downloading the game.
- 52:17But it only downloads the stuff it needs.
- 52:19So it only downloads the code and, like, a minimum set of resources.
- 52:22So you can be within the game in, like, 10 minutes from there.
- 52:26Oh, yeah.
- 52:26That's awesome.
- 52:27Yeah.
- 52:27I definitely want to start playing and check it out.
- 52:29It sounds really cool.
- 52:30And after that, it just downloads the resources as it needs it.
- 52:34So if you want to try it out, go to eveonline.com.
- 52:37Sign up for a free trial and check it out.
- 52:40It should take you less than 20 minutes on a decent minute connection.
- 52:44Very cool.
- 52:45Kristen, it's been fun to learn about what you guys have going on with Python.
- 52:48A lot of cool stories.
- 52:49Thanks for sharing them.
- 52:50Yeah.
- 52:50Thanks.
- 52:51Thanks for having me.
- 52:52Yeah.
- 52:52Take care.
- 52:52Bye-bye.
- 52:54This has been another episode of Talk Python To Me.
- 52:56Today's guest was Kristen Siger-Bergsen.
- 52:58And this episode has been sponsored by Hired and SnapCI.
- 53:01Thank you guys for supporting the show.
- 53:03Hired wants to help you find your next big thing.
- 53:05Visit Hired.com slash Talk Python To Me to get five or more offers with salary and equity presented
- 53:10right up front and a special listener signing bonus of $2,000.
- 53:13SnapCI is modern, continuous integration and delivery.
- 53:18Build, test, and deploy your code directly from GitHub.
- 53:20All in your browser with debugging, Docker, and parallelism included.
- 53:24Try them for free at snap.ci slash Talk Python.
- 53:27Are you or your colleague trying to learn Python?
- 53:30Have you tried boring books and videos that just cover topics point by point?
- 53:34Check out my online course, Python Jumpstart by Building 10 Apps, at training.talkpython.fm.
- 53:40And have a great time learning Python.
- 53:42You can find the links from today's show at talkpython.fm/episode slash show slash 52.
- 53:49And be sure to subscribe to the show.
- 53:51Open your favorite podcatcher and search for Python.
- 53:53We should be right near the top.
- 53:55You can also find the iTunes and direct RSS feeds in the footer of the website.
- 53:59Our theme music is Developers, Developers, Developers by Corey Smith, who goes by Smix.
- 54:03You can hear the entire song on talkpython.fm.
- 54:07This is your host, Michael Kennedy.
- 54:08Thanks so much for listening.
- 54:10Smix, take us out of here.
- 54:12Stating with my voice.
- 54:14There's no norm that I can feel within.
- 54:16Haven't been sleeping.
- 54:17I've been using lots of rest.
- 54:19I'll pass the mic back to who rocked it best.
- 54:22on first developers
- 54:23of color
- 54:24ٌ
- 54:25For the content