WEBVTT

0:00:14.678 --> 0:00:19.757
<v A>Programming Throwdown Episode 81: Mailbag. Take it away, Jason. Hey everybody, so...

0:00:20.348 --> 0:01:44.807
<v B>Yeah, I had an interesting time sending out the Christmas gifts. Patrick and I took a morning; we kind of packaged them all up. We signed them all. We saw a lot of people have gotten them, so we've gotten some—some people have tweeted pictures of their logo. That's totally awesome! Definitely keep doing that. I've been resharing all the ones that I see. So that's pretty exciting. Yeah, I went to the post office, which has tons of these, and the ones that were domestic, you know, just put a stamp on, put them in the slot. And then I took the international ones to this gentleman, and he told me it would cost $14 per envelope. I have to fill out a customs form, so I'm not sure; we're still trying to figure out what to do internationally. I have a couple of ideas. I definitely want to do something, but it might end up being something digital, so I apologize for that. But for everyone domestic, we did get those out. If you didn't get it and you're in the U.S., let us know. And yeah, it was pretty exciting. It was pretty fun. It was something that Patrick and I both realized that things like running your own Kickstarter and stuff like that are actually really hard. You know, once you have to do things at scale, it's really difficult.

0:01:45.212 --> 0:01:55.920
<v A>Maybe we could consider if anyone's interested. And you, I think we have many in different places, but there are a number in Europe. Maybe we could mail one package to Europe, and that person could remail them to other people.

0:01:55.920 --> 0:02:05.918
<v B>Yeah, that's true. Or maybe if there's someone out there in Europe with a laser cutter, ooh, maybe they could do it, and then we could try to like reimburse them. Yeah, yeah.

0:02:05.918 --> 0:02:07.032
<v A>Yeah, so if you have...

0:02:07.780 --> 0:02:14.490
<v B>a laser cutter and you're in Europe and you're willing to do some extra work on the side, let us know. Send us an email or hit us up on Discord.

0:02:14.490 --> 0:02:16.500
<v A>They mark charges more than the $14.

0:02:16.500 --> 0:02:22.928
<v B>Yeah, yeah, yeah. That's your upper bar, right? I mean, it has to be cheaper than that. Cool. Well, we're doing...

0:02:23.265 --> 0:04:20.648
<v A>A Mailbag episode, so we've trimmed down the intro stuff, but I wanted to cover one thing I saw that was pretty interesting. There was an article—a series of articles actually—that we have a link in the show notes about Disney having released one of their internal scene descriptions for one of the island scenes from the movie Moana in an open-source format. This, I believe it's PBRT, Physical Based Rendering technology, or I don't remember what the T is for, but basically they took their internal data format, which I guess is some proprietary WDS—Walt Disney Animation Studios format—and they converted the entire sort of scene to this open-source description. And so it's a picture of, you know, the island and some palm trees, and it's a 3D description of all this, and the textures that overlay all of this for sort of I don't exactly understand how all of it works, but for sort of one point of view, you get some of the ocean stuff, you get some of the mountains. And I guess it's supposed to be enough of a description that if you do rendering and the magic that goes behind that, which will leave out for sake of time, that you can reproduce what it would have looked like in the movie. And it this apparently came as a result of a panel discussion where some people asked like, 'Why are you sort of still using proprietary stuff? Like, what prevents you from using open-source stuff?' You know, why? And their sort of response was, 'Well, with the amount of data we have, just the open-source stuff kind of doesn't really work.' And most people don't demonstrate their academic research on the level of complexity that we have internally, so it's often sort of not useful to us. And so they took that as an internal challenge that like, 'Hey, what me ought to do is release an example of sophistication level we use for a production movie so that the community has a chance to understand what it's like.' And it turns out for this single frame, it's 70 gigabytes of data. Oh my god! And the...

0:04:20.648 --> 0:06:17.700
<v A>person took a sort of naive pass at like rendering it, and it takes—you know, I forget—upwards of several hours. In fact, actually they tried to do it on their home computer, and it never finished due to basically thrashing trying to use virtual memory to hold it all just to load the description. It ran out of memory. And so this person apparently—that these blog articles p-h-a-r-r.org, anyways, go to the show notes or I guess maybe use your Google Foo to find it—this person, I you know don't know the full context here, but it seems like they interned at Pixar or Disney for a while, so they had some insight into how the internal tooling worked. Can they have some anecdotes about that? But they're trying to do this externally. It doesn't seem that they you know work there now. And it just sort of goes through various things that they're doing, trying to speed up the loading, doing some optimizations. And it's a very interesting read just about how rendering works, how really big all this is, how complicated it is not per se to load it up and do it myself, but also one of the things that I actually found this via Y Combinator News Hacker News, and one of the top comments on there, I thought was really good and insightful. And reading this, I like that person's comment, which was, 'You see that even in something as sophisticated as these people are and experts at rendering and making production movies like Moana and state-of-the-art and all this stuff, that you find out some of the reasons things are slow and that they had to fix were things like they have only a 256 entry hash map, and they use string names of texture maps to go into that hash map, in which there are far more than 256 as things have grown. And furthermore, the hashing function was legacy from a long time ago and chosen just to take the first character of the string as your hashing...

0:06:17.700 --> 0:07:19.455
<v A>function, and worse because the string—the texture names have gotten so long in modern movies that often they almost all began with '.../something' as like a shortening of the string name due to some other implications. So every single entry into the hash map was going into exactly the same bucket, just becoming a big linked list traversal. And amazing! So they were sort of you know not being mean, just pointing out that like, hey, even experts make sort of entry-level mistakes. I don't know, entry-level mistakes. Organic growth—it's actually complex problems can still boil down to relatively simple things and issues, and just incremental and building up a body of knowledge over time complexity arises. But that each individual problem really is sort of you know this attainable amount like just figuring out why hashing is slow is something that seems more manageable in your mind than how to render all of the Moana island scene for a production movie studio. Yeah.

0:07:20.215 --> 0:07:29.327
<v B>Do you think that maybe when Disney released the information that like they had already kind of unfolded it in some way where it's not efficient anymore, you know what?

0:07:29.479 --> 0:07:36.860
<v A>I mean like it's sort of like releasing if you had a Protobuf instead of releasing the .proto file.

0:07:36.860 --> 0:07:39.014
<v B>You released all the C++ code, right? Sure.

0:07:39.503 --> 0:09:05.177
<v A>Yeah. Um so a couple of comments I think what some of these were anecdotes from internal Pixar work that they were sort of saying not specific to this exact thing, but you're also right. So one of the things they talk about, I think that is sort of the point is that when Disney converted this to this other format, this other format doesn't have the same level of optimizations because it's not used to dealing with scenes this big. So right, Disney works at a scale that this PBRT or at least sort of reading through this in my sort of opinion on it is like Disney works at scenes so you know several orders of magnitude more complicated than most of the PBRT rendering scenes, and so yeah they do have to unpack some of this stuff into very verbose structures. And so part of what this person did in these articles is do things like a more efficient representations of the triangles for meshes that brought down like the file size by you know half or something because exactly that. And then you know trying to say, hey, how do we open source this? And I think that was kind of part of this whole discussion between Disney and the open-source community is like, yeah, you guys your level of sophistication isn't where we need it to be in order for us to sort of share technical technologies between each other. And so yeah, I do think it's what you're saying, which is they have to unpack this binary custom format into a very verbose open-source thing, but the open-source thing is that verbose because it's more simple to do initially and no one needed that scale yet.

0:09:05.565 --> 0:09:06.831
<v B>Right. Yeah, that makes sense. So

0:09:07.152 --> 0:09:10.982
<v A>It's not someone did something wrong; it's just it just is the way it is. Yeah.

0:09:11.860 --> 0:11:10.160
<v B>Totally makes sense. I mean, it's cool that they sort of started that conversation. I mean, now like maybe there could be some sort of back and forth and eventually the open-source community kind of catches up. My news is Ted-Ed Riddles. So this is really cool. I've been following Ted and Ted-Ed for a while, and this is a pretty new thing. Basically what's going on here is they've gone and made a set of like kind of puzzles or I mean there's a lot of these sort of what's the word, like canonical or famous puzzles over the years. They're not like you know crossword puzzles or things like that; they're really just kind of like simple mathematical puzzles. And Ted-Ed has been producing a series of videos on these; they call it the Ted-Ed Riddles series, and these are so fun. I mean, I they kind of like you know, I don't really know what their cadence is, so it just seems like they kind of just serendipitously show up on my phone, but it's always really interesting. The most recent one was basically the Nim problem, which is the idea is you have a set of stones and you have an opponent. It's a game. Your opponent has a set of stones, and you can remove—oh no, sorry, sorry. It's one set of stones among both between both of you, and you can remove I think one, two, or three stones, one through N stones. And so then it becomes the opponent's turn, and he can remove you know some number of stones, and the person who takes the last stone loses, right? So like for example, if there are two stones left, you can take one, and now the other person has to lose because he has to take one. And so it kind of explains. And so I think that the riddle is the riddle comes down to how many—if can you tell from how many stones are in the pile who's going to win? And so you know obviously you could play it out, like you could write some computer program that tries all the different you know strategies, but it was really more the riddles.

0:11:10.160 --> 0:11:27.552
<v B>More about like is there some formula which could just tell you, you know, do some simple arithmetic and then this person's gonna win? Yeah. It's really cool. I mean, I won't spoil it, but there's a bunch of puzzles like this; I think they're they're really fun, and people should check them out.

0:11:27.923 --> 0:11:31.480
<v A>Do they give, but they give the answers at the end. Oh yeah, yeah, right? They give the

0:11:31.480 --> 0:11:51.514
<v B>Answer. So okay, also it's when the problem is sort of scalable. So like for example with this one, they start off by asking you what would happen if there's two stones, and then they wait five seconds, and they tell you, you know, just take one of the stones, right? So they kind of walk you through it, and at the end of it you kind of understand the problem so well. Very

0:11:51.852 --> 0:11:55.649
<v A>Cool. Well, time for Book of the Show. Book of

0:11:55.649 --> 0:13:43.547
<v B>the show. My book of the show is Aesop's Fables. So this is pretty random. I mean, I'm sure everyone knows that these are—I actually wanted to start you know reading them to my son, so I started checking it out, and I found this website, I think it's called Free Reads or Free Books or something like that, but basically I found an app which just had a huge catalog of free, you know, a lot of these like classic books. So like it doesn't really make sense to charge for, right? And so I got Aesop's Fables, and I was like, okay, let me just read through it, and yeah, they're all extremely morbid and end with death and animals killing each other, and I was really shocked. And then I realized oh what I thought were Aesop's Fables were actually the children's version of Aesop's Fables, and so I'm gonna have to probably buy that. But but yeah, it's it's interesting. I mean one thing that Aesop's Fables—the they're just much more harsh. Like for example, you have a story about—I'm sorry, I dropped it. It's I think it's the Ant and the Grasshopper, but basically I might be messing that up. The animals, but but basically there's one animal, one insect that's sort of like saving food, saving food, saving food during the summer, and the other one is just playing all summer and just eating grass off the ground and playing. And then when winter comes, the one who's been saving the food has enough food to survive the winter, right? And so the whole story is like when times are good, save up kind of thing, right? Well, like as I remember in the children's version, you know, the the one who didn't save up, you know, was really hungry, and then the first one gave him food to last them through the winter, and he learned his lesson. But in the actual fable, the one who played all summer died, and the

0:13:43.935 --> 0:13:44.847
<v A>other one ate

0:13:45.572 --> 0:14:10.834
<v B>Him? No, that would be even more morbid. But no, they're just like and then you know the grasshopper like withered away and died. I was like, 'What?' So either way, actually if you—if you've only read the children's version, this version was pretty interesting. I would definitely read it. Otherwise, I mean, it's always good to read these fables; they have like good stories at the end and things like that.

0:14:11.475 --> 0:14:19.238
<v A>So, were Aesop's Fables originally those were the children's versions, and we've just made them less harsh for current children? That's right. Okay. Well, I

0:14:19.592 --> 0:14:38.320
<v B>I don't know if you know if we were to go back to—I think it's like Greek times or something, but I don't know if they read them to children or if they were actually fables that were told by two adults and then you know we started teaching them to children. I don't really know like how that progressed. But yeah, they're either way, yeah, they're pretty harsh.

0:14:38.320 --> 0:16:36.000
<v A>Cool. My book of the show is The Blinding Knife by Brent Weeks. This is the second book in—I believe it's called The Black Prism. No, The Black Prism was the first book of the Lightbringer trilogy, and I really enjoyed it. Second books of trilogies can sometimes be whatever they call like sophomore slump, I guess. Like it's a little difficult because it's not the final book where you can have all the good endings; it's not the beginning book where you're introducing the world. It's like the in-between. But this second book, I was listening to it as I always do, but I just say reading anyway. So I was listening to it and I just found myself like the whole book, you know, pulled forward through the story oftentimes, which is not a bad thing. But often there are books where you sort of have periods where you're like, 'Oh, okay, that was good,' and now I'm in sort of like a respite period or we're just, you know, building up their characters or a slow scene or whatever the pacing. But this book, I just—I didn't feel like it was frenetic pace, but it's just always like, 'Oh, I can't wait to see what happens.' And when you have these stories from multiple points of view, sometimes you find like, 'No, I don't want to leave this person's point of view and go listen to that other boring storyline.' But in this time, I always felt like that. I was like, 'No, don't leave now; I want to find out what happens.' And they would go to another point of view, but then I would get really into that one and be like, 'No, don't leave that one to go back.' And it was just every time it switched perspectives, I was just, you know, really into it. Which, thinking about it later, was like, wow. Okay, I—I really enjoyed the book regardless of even the fact that the story was good or that I found the world interesting. I was just finding that the pacing of it made me sort of want to finish. In fact, I normally don't listen unless I'm commuting, but I actually listened to finish it when I wasn't on a commute because I was like, 'The last couple hours, I just really wanted to get through that.' That's awesome. So, so I really enjoyed that. Of course, I would start with book number one, The Black Prism.

0:16:36.000 --> 0:17:05.001
<v A>of the Lightbringer series before reading book two. And if you like that, then definitely continue on to—the second book. I—I don't—I haven't finished the trilogy yet, so I guess stay tuned. But the good news is unlike a lot of trilogies, this trilogy is finished, so the third book is out. I just haven't listened to it yet, so no need to worry. This is a new thing now where people refuse to start series before they're finished because so many—seems like so many authors are not finishing off their series that.

0:17:05.389 --> 0:17:11.430
<v B>Makes sense. So, did any of these paths intertwine or is it all going to happen in the

0:17:11.987 --> 0:17:55.740
<v A>third book? Um no. Oh, so yeah. Some of the story point of views do intertwine with each other. It's not one of these ones where you're like, 'I don't even know how these stories relate.' Like it's—it's pretty clear how the different stories relate to each other in this specific series. Oh, okay, cool. And this is just for people who didn't catch the first one: this is a fantasy series where there's magic, and the magic is sort of related to the color of light, like the spectrum of light. So people are able to use magic based on some colors. Like some people might be able to use red light to make magic, and some people blue light, and each of those have sort of characteristics about them, and it's just a sort of interesting take on a magic system.

0:17:56.200 --> 0:17:59.963
<v B>So is it literally light? So they have a flashlight to help them with magic or something?

0:17:59.963 --> 0:18:42.792
<v A>So it's—I guess not set in times when there's flashlights, but they do have—it's not a big spoiler. The they sort of talk about you know only a very special set of people that have special meaning in the world can use white light and and sort of split the light, and hence the name Prism. Normal people have to use reflected light of their color. So like if you're a green person, you can be outside and you can absorb the green light reflecting off of the grass. But then also they invented the ability to make spectacles, like glasses that are tinted so that if you have your spectacles on, then you can absorb green light directly from sort of white light. Oh.

0:18:43.214 --> 0:18:44.378
<v B>I see. And so

0:18:44.378 --> 0:18:47.989
<v A>There's some clever stuff in there about that. I don't want to say too much.

0:18:48.360 --> 0:18:49.035
<v B>Without sort of

0:18:49.137 --> 0:18:59.127
<v A>Sure, sure of spoiling it, but um wait. It actually says Book Two of Five. Now I'm confused. What is this? Oh, I guess maybe there's some in between books. Oh, sometimes I do that, right? Yeah, there's a

0:18:59.127 --> 0:19:00.949
<v B>Side side story that's optional. Okay.

0:19:01.540 --> 0:19:12.660
<v A>Well, I might be wrong about this series, and maybe it's not a trilogy. Maybe I thought it was a trilogy, and it's a quintilogy. I don't have time to read this right now, so I withdraw my earlier statement until further review. You're

0:19:12.964 --> 0:19:15.597
<v B>gonna unread these two books until I thought it.

0:19:15.597 --> 0:19:18.972
<v A>Was a trilogy, but this is not the first.

0:19:18.972 --> 0:19:23.106
<v B>Time. This has happened to me. I'm very confused. Are all five books done or no? So there

0:19:23.780 --> 0:19:28.659
<v A>are currently? Okay. I'm just clicking on the Amazon page, and it says Book Four of Five just came out last

0:19:29.316 --> 0:19:30.210
<v B>year? Oh, I

0:19:30.599 --> 0:19:35.256
<v A>see. Okay. Uh, so I never mind. So I retract my earlier statement. Do not

0:19:35.256 --> 0:19:38.024
<v B>start this. Well, it's pretty—it's pretty sure he'll finish the fifth.

0:19:38.024 --> 0:19:38.564
<v A>Book, I mean.

0:19:39.019 --> 0:19:41.060
<v B>It seems like he's doing a book a year roughly.

0:19:41.702 --> 0:19:46.697
<v A>Yeah, so the yeah, one year, one year, two years, two years. So yeah, cool. So yeah, I think.

0:19:46.967 --> 0:19:54.747
<v B>You could start reading knowing that it'll be done. I don't know. I'm not... Yeah, I'm not getting this. It's a whole rabbit trail of. Okay, moving on.

0:19:57.244 --> 0:20:13.697
<v B>moving on um so if you if you want to read four out of those five books you can do it on audible um check out audible trial.com programming throwdown um i'm still going through basic economics but i did buy uh super intelligence and that's going to be next

0:20:13.697 --> 0:20:20.025
<v A>Wait, that sounds like a good book. Is it going to help me? Yeah, it's actually just... We can't spoil.

0:20:20.025 --> 0:20:43.110
<v B>It actually just plugs in. It plugs into your brain. Oh, um, it's a bionic book. Um, so yeah. So, but I've been reading Out Basic Economics or listening to it on the shuttle, and actually, I have a pretty long walk now because I end up walking about a mile and a half before I hop on the shuttle, and I've been listening to it on my walk as well.

0:20:43.583 --> 0:20:44.832
<v A>Oh, hey. That's pretty good. Yeah.

0:20:45.034 --> 0:20:45.692
<v B>It's not too.

0:20:46.637 --> 0:21:01.622
<v A>bad cool also you can support us on patreon patreon.com programming throwdown and uh make a donation for each time we release an episode and we've that's been growing pretty good so thank you to all of our patrons yes that's right uh thanks to all our patrons and your continued support yeah

0:21:02.264 --> 0:21:07.394
<v B>and uh you know hope you like the uh christmas present um we'll figure out what to do for international folks

0:21:07.394 --> 0:21:08.254
<v A>but yeah don't

0:21:08.254 --> 0:21:22.632
<v B>lose hope um yeah domestic you know uh uh hopefully you like the christmas present uh we take all the money and we use it to you know get more people on the show pay for server costs pay for microphones do all this stuff figure out a way to get discord to work um might

0:21:22.632 --> 0:21:25.079
<v A>have to buy like some third party thing

0:21:25.079 --> 0:21:34.124
<v B>But the rest of it we try to, you know, dole it back out so cool. Thanks for supporting us there on to.

0:21:34.124 --> 0:21:35.700
<v A>Tool of the show.

0:21:35.700 --> 0:23:30.020
<v B>Show, show my tool. This show is TensorBoard. Um, so this is pretty cool and it's actually starting to become decoupled from TensorFlow. So I'll give a bit of background. TensorFlow is a library for doing—it's basically like a Blaze on steroids. So Blaze is a like a linear algebra; it stands for Basic Linear Algebra System. And so the idea is, let's say you need to add two vectors. So you have two lists of numbers that are the same length and you need to add, you know, pairwise add each of these numbers or pointwise add each of these numbers, right? You can write a for loop, and you could say, you know, yeah, C of i equals A of i plus B of i, right? But that's not that fast, right? And so when you start doing a lot of this—you know, you're adding vectors, you're multiplying vectors, you're doing the tensor product, you're doing all these matrix operations—the speed becomes really, really important because chances are this is the code that, you know, is going to take most of the time whenever you're building one of these type of systems, right? So for a while there was Blaze, and it's still around. But then people started building kind of on top of that, and TensorFlow is one of these sort of super libraries. Um so it could do all the Blaze stuff. It could also run on the GPU. There's also a whole bunch of like kind of specific scientific functions, and it comes to this thing called TensorBoard. So you can similar to like the MATLAB environment, you can kind of easily plot things and things like that. So you can, you know, on the GPU do a bunch of matrix operations, and then you could plot the result. It'll actually copy it back to your CPU and then kind of render it, right? And TensorBoard is awesome. It's got a great user interface. It's awesome visualization. And so what you're seeing is the

0:23:30.020 --> 0:24:45.460
<v B>open-source community just adopt TensorBoard really just independent of TensorFlow. So um there's this thing called TensorBoard X, and I've also seen like OpenTensorBoard and a couple other things, and I believe TensorFlow is actually going to upstream one of these implementations or some hybrid of them. And the net result is, you know, if you have a chunk of data and you don't even need to have made this data with TensorFlow—it could be something you made in, you know, your web server or something like that—you can write this data to a specific file format using this TensorBoard X, and then you can use the TensorBoard to sort of visualize that data. So it's disconnected from the rest of TensorFlow, and yeah, I started using this a couple of days ago. It's pretty cool. Um, you know, I mean if you're using something like MATLAB, it's pretty easy to graph things, but if you're writing just a desktop program, it might not be obvious, like, you know, how do I, you know, how do I dump data to a file that then I look at in a graph format pretty easily? Um, you often people will dump it to let's say CSV and then they'll use Excel to look at it. I mean, that's okay, but this—this I think is going to be a lot better when it's ready.

0:24:46.580 --> 0:24:53.060
<v A>That sounds pretty cool. I mean, visualizing always helps. I just like it, and there just always helps.

0:24:53.060 --> 0:25:34.305
<v B>Yeah, yeah. I mean, you know this idea that like oh, there's no compiler errors, I'm done. Yeah, that doesn't really work. I mean, not only for the stuff I do but just in general. I mean, you know, for example, let's say you're building a website. Some number of people are going to—let's say like their browser is going to crash on your website. It doesn't mean it's your fault. They might have viruses on their computer. Who knows, right? But you want to be able to plot that and see what that looks like. So it's like once anything you do is going to involve dumping out some data and looking at it, and Excel is just not really—I mean, you could do it, but it's not really made for that. Um, this thing is really made for that. Nice.

0:25:34.677 --> 0:25:51.029
<v A>I mean, I think visualization and telling that story is always, you know, super critical for people understanding the work you're doing. Yep, yeah, totally. Well, my app is much less cool than that. It's a game called Sproggy Wood. I don't know if you say S-P-R-O-G-G-Y. Yeah, I've

0:25:51.029 --> 0:25:52.665
<v B>played this game actually? Oh, you have?

0:25:52.969 --> 0:25:54.809
<v A>Oh, good. I picked one, you know, about

0:25:55.112 --> 0:25:55.872
<v B>Yeah, that's right.

0:25:55.956 --> 0:26:55.525
<v A>So this is available, I guess also on the computer but on both iOS and Android. It's about five dollars. Um, and this is a well, I guess you would call a rogue-like where there's—it's a kind of a turn-based game, but you kind of don't—it's not as turn-based as other games. So you sort of get to make a move, then the world makes a move, and you make a move, and you're on a grid of squares, and you try to defeat the bad guys and move around sort of randomly generated levels that have a theme and progress your people, and you will die a lot, or at least I die a lot. Uh, and then but you get to sort of keep your gold, buy things to improve sort of level up your characters, and they have a variety of different sort of classes you can play as. And for me this is one of those things where I really like—I found not so much liking games on the on iOS that are sort of big epic games. I mean, they're good. I just find it—I prefer to just kind of play those on my computer or console. And I guess this is me. Uh, and there are some most people

0:26:55.525 --> 0:26:56.369
<v B>are like that.

0:26:57.060 --> 0:27:21.512
<v A>Yeah, I believe so. Although, I mean it's becoming easier to play. Like I have my iPad now. I do have some games on that. I sit down and play with it. It's becoming more like it, but anyways, this fills that kind of I want to play something more than just like a solitaire game or whatever, but not a super in-depth game. And so I want to be able to play in sort of two to five minutes, like a session or whatever, and this fits right into that sweet spot.

0:27:22.069 --> 0:27:29.950
<v B>For me? Yep, yeah. It's actually technically a roguelite, which means you know in a roguelike game you start from scratch every

0:27:29.950 --> 0:27:31.165
<v A>Time. Okay, so

0:27:31.165 --> 0:28:30.420
<v B>What you know? That's it's fun, but it can also feel kind of frustrating because the only thing that you get in between games is some knowledge, if anything, right? With roguelites, it's sort of like when you die you get something permanent. And eventually those permanent things you'll get so much of them that even if you aren't that good at the game, you'll eventually be like overpowered, let's say relative to where you're at. And so I actually like roguelites a lot better because it gives the game the game developer a lot more freedom. So you know he can make a section that's really difficult and if people can't really figure out how to get around it, they can kind of just grind through it versus a roguelike game. I mean there's games like Dungeon Crawl Stone Soup where people have been playing for like eight years and they can't beat it, you know? But yeah, I thought Sproggy Wood was awesome. I didn't

0:28:30.420 --> 0:28:32.725
<v A>actually finish the game, but I got pretty far.

0:28:33.096 --> 0:29:00.636
<v B>Yeah, I really love the way they did it for people who don't know the roguelike sort of style. It's basically kind of like a grid and it's kind of frozen when you're not doing anything, which works really well on mobile because like you can kind of think for a little bit. You could pause the game is effectively paused all the time, and but then when you do something, for however long it takes for that action to take place, that's when the world is sort of elapsing. Yep. So if you've never tried one, check Check

0:29:00.974 --> 0:29:04.990
<v A>this one out there are other ones too if you've never experienced that genre. So yeah, totally.

0:29:06.205 --> 0:29:06.880
<v B>Cool. Well, this

0:29:07.842 --> 0:30:32.554
<v A>episode we decided to do a mailbag. It's been a while since we've done one, and so we collected questions that have come in over the last day/month/several months. So first, we're going to start with some email questions. Some of these are actually just suggestions and tips you guys have sent in, and I've tried to just go down to first names or if people preferred something else for Discord, they're just sort of handles. So hopefully the people who sent these in know we're talking about you, and many of the ones we've replied to already, but I thought they would be useful to put in here. And so we'll go through these. So first up is Nathan sent us an email about developing games in Lua using Pico-8 and the PocketCHIP. So the PocketCHIP is a physical device that is I guess sort of like an Arduino, but maybe a little more and in a different way where you program it. It's sort of what you call like batteries included, I guess. Like it has more to do with just the thing instead of needing to learn to build circuits and do stuff with. And the Pico-8 is actually I guess oh, you just call like an emulator. It's a console that just is a program, but you write programs for that program, like levels and stuff and games in Lua, and then you can sort of email those quote-unquote cartridges to other people to play on their Pico-8s. I had never seen that before. It actually seems pretty cool. Oh, I thought the

0:30:32.554 --> 0:30:37.364
<v B>Pico-8 was also a physical thing, wasn't it? I don't think so. Oh, interesting. Oh, okay. So

0:30:37.364 --> 0:30:39.642
<v A>you also didn't know about this, I guess.

0:30:40.013 --> 0:30:44.654
<v B>I just I was thrown off when I saw the Pocket pictures. Oh.

0:30:44.654 --> 0:31:07.840
<v A>Okay, um, so the PocketCHIP has like a keyboard and a screen attached to it. And I haven't checked into it since it first came out, about, I guess probably a little over a year ago. Um, and I knew it was like getting pretty popular and it was like sold out, and I just never sort of ordered one, but I guess I should because now that's been long enough. There's probably a lot of cool stuff to do with it. So yeah, that sounds awesome. Thanks for that suggestion.

0:31:08.279 --> 0:31:12.025
<v B>Nathan, very cool. Um, Dylan asks about modding video games, I think.

0:31:12.025 --> 0:31:13.341
<v A>Uh, yeah, I mean.

0:31:14.809 --> 0:32:39.522
<v B>I actually used to do this. The first sort of programming I did was way back in high school, and I actually—I don't know if this, I guess this doesn't really count as modding because it was an open source, but um remember those MUDs? Those text-based mods? Sure. So yeah, basically just you know there was all they're all open source, so I just made a version of those where you could make your own items, and so it's some of these things that like you know it completely broke the whole game because you know the whole point of the game is to try to progress and get better items. And so if you just make your own item, it really doesn't matter. Um, but yeah, that's kind of really how I started getting into programming was by kind of modding games. I made some StarCraft maps with a bunch of these like they had these trigger-based kind of like rule-based language, and uh yeah, I think it's a great way to get started. Um, also, I mean the nice thing about modding video games is you don't have to worry about the art. So like people kind of you know they suspend belief on you know the art. So like you could have like a StarCraft character who's really supposed to be Mario, and just as long as you call him Mario, people kind of see okay, this person was working with what they had, right? Um, so so that part is kind of nice. And uh yeah, I think it's super cool. I think also it could get really complicated if you start actually trying to reverse engineer the game and stuff like.

0:32:40.214 --> 0:33:19.566
<v A>That yeah. So in general, I think modding video games is something you see a lot of programmers do. I'll slightly disagree. I think today there are better ways to get started than modding video games if you're really passionate about it, perhaps. But I think—I think using things like Unity or and I know that's like a dirty word now, or like I guess Ogre now is trying to get better at this, there or we've talked about other sort of game engines and more environment setup. I think there's pretty good other resources for sort of—I don't say cobbling together but sort of hacking together all the framework and engine you need to start doing your own thing without a lot of the limitations that modding a game has. Um, yeah, that's.

0:33:19.887 --> 0:33:20.730
<v B>A good point.

0:33:20.899 --> 0:33:52.067
<v A>And so I—I also have similar to one of the first things I started doing was trying to mod video games and you know use the Half-Life level editor to build levels. And yeah, I mean I also did do a bunch of that when I got started as well because I feel like writing a game from scratch was way harder or way less supporting resources you could get at the time. And so I'm curious now though if if that really is the best way, but it is definitely a way a lot of people sort of—I guess Jason and I's era did get started, so I can't knock it.

0:33:52.759 --> 0:34:04.504
<v B>Yeah. I mean, I see your point. I think that like from a coding standpoint is definitely much easier. The issue is if you make a game kind of—that's not a mod, people I think have different expectations.

0:34:04.504 --> 0:34:05.567
<v A>Oh, I see.

0:34:05.567 --> 0:34:37.832
<v B>That's the issue. Like especially on the art side is you know the expectations that like if you make a Minecraft mod, everyone expects like if a pig is supposed to be you know a mech or something like that, people say well, you know okay yeah, that's what the person had to work with. Fair point. Um, but yeah, I know I agree that like it's much easier to make a game now than it was when we were—when we were doing it. Modding was pretty much your only option unless you wanted to spend a whole year writing really gnarly like OpenGL code and stuff like that.

0:34:38.204 --> 0:34:45.645
<v A>I definitely go for a game that has a modding community and hopefully a good environment for it though rather than trying to reverse engineer if you're starting.

0:34:46.388 --> 0:35:10.114
<v B>Out. Yeah, right? And especially a way to sort of get feedback quickly—a community. The nice thing about StarCraft was if you made a custom map for StarCraft, you could just start an instance of that custom map. People could look at the title and decide to join, and then it would transfer the map to them automatically. So it's like you don't have to worry about deployments finding a community, all that stuff. Um, but

0:35:11.025 --> 0:36:13.986
<v A>Yeah, I'm not up with it for modern day, so no recommendations about current games that I know. Same here. Okay, so next one we have is David, which he sent in. I'd never seen this before. It seemed pretty useful, although it isn't particularly recent. This is a duni.org, and this was an Ars Digita University, which I guess ran 15-20 years ago. That was a program where they would give you sort of—well, one year super intensive, almost like a Master's degree in Computer Science, and for fundamental stuff he sorts of recommends that they have all the courses uploaded. Similar there are lots of other things that do this today, but this is sort of if you're interested in it from a kind of university perspective, or especially if you've gone to university and forgotten a lot of it, I guess this will have more familiarity to it than if you're learning from scratch. But I checked it out; it seems like I haven't gone and watched any of the videos yet, but there seemed to be a bunch of good stuff here, so you know, I'm passing along that recommendation.

0:36:14.475 --> 0:36:33.060
<v B>Oh, very cool. Wow, this predates, you know, Coursera and Audacity and all of that. Yeah, wow, that's wild. It's amazing. Jack asks, 'How do we manage passwords?' That's a good question. I mean, I use KeePass. What do you use, Patrick?

0:36:33.060 --> 0:37:15.782
<v A>Like LastPass? No, I use—how do people do? I guess I don't know. I'm too cheap to pay or trust anyone, so yeah, I use KeePass and keep it synced with—I use this Resilio Sync. It used to be BT Sync, and sync it between computers. So the database, which is encrypted with the—which I had explained to you, I share it with my wife, and you know we use a very specific password that's not shared with anything else. It's much longer, much more secure. But then inside of there, we—we and then we use its internal thing to generate new passwords, and we try to do that. And sometimes we'll for less security things, we'll use, you know, like the browser's remember passwords, but we try to be very careful not to use that so much. I don't guess—just a little bit of paranoia, well.

0:37:15.968 --> 0:37:32.792
<v B>And your computer could break unless you're using the one where it remembers across like it's tied to your user account. Yeah. The KeePass is really nice. I have the Android app, which can actually use the fingerprint scanner, so when you launch the

0:37:32.792 --> 0:37:33.704
<v A>app, you just

0:37:33.704 --> 0:38:27.460
<v B>fingerprint in, and then you—it also has this cool integration where it puts a button. It basically makes a KeePass keyboard on Android, and so if you kind of—if you click on, you know, where you need to put in a password, the keyboard says 'KeePass Keyboard,' and then it can actually associate every app with a password, and so just based on the app you're on, you just fingerprint in, and the password gets put in automatically. So yeah, KeePass is the way to go. It's a totally open source. There's a bunch of different implementations. Implementations might not all be open source obviously, but I think for Linux, I use KeePassXC, which used to be KeePassX, now it's XC, but it's—it's I think it's on almost every Linux distribution, and for Android, I use—I think MiniKeePass something like that. Yep, there are.

0:38:27.460 --> 0:38:42.942
<v A>A lot of good choices. You know, I actually would say choosing any that aren't super scammy, so any of the sort of well-known password managers and having it generate sort of secure passwords is better than trying to memorize insecure passwords for everything. Yep, yeah.

0:38:43.347 --> 0:38:44.376
<v B>Absolutely, but that's

0:38:44.663 --> 0:39:09.149
<v A>Not my background, so consult a security expert. Yeah, right. So a listener who wished to remain anonymous asked a couple of questions. First one is for job security, and we'll try to be a little rapid fire on this because this could be a rabbit hole for job security as an individual. Is it best to have a little knowledge on a lot of languages or to specialize in just a single one? You want—you want to take that first as an A or B selection? Yeah.

0:39:09.554 --> 0:40:16.819
<v B>It's a good question. I mean, I think—I think honestly instead of trying to strategize, you should really be more reactive, right? I mean, I think it's—it's good for me at least. I think it's fascinating to learn about a bunch of different languages. But whenever you start talking about what's better than something else, you immediately start talking about like, you know, actually this person explicitly said job security, so it always comes down to some type of career thing or some type of optimization thing, right? So I think, you know, like I would think of learning different languages as sort of like an exercise in like philosophy or something like that where it's a good thing to do. It's like a nice hobby. It's instructive, and I think it will help you in let's say somewhat like esoteric ways. But if your goal is, let's say, job security, then it's a bit more reactive. So you have to kind of see, okay, you know what job do I have now? Is it the job I want? If assuming I want to keep the job I'm in right now, what do they want, and how can I give them more of that? Right? If I want a different job, how do I get towards that? Right? So it's so—it really becomes much more contextual. So it's hard to answer.

0:40:16.819 --> 0:41:57.105
<v A>Right, that's a fair point. I guess my answer here would be somewhat of a dodge and saying neither, and a little different than what Jason is saying about reaction, but doing what makes you happy because I think being happy will make you a better employee, which will make you do better work, which will make the company like you more as a general rule. Yeah, that's true. And if that doesn't work, then like you might want to find a new company. I know it's really tough speak, I guess, but like I've found that generally to be true. Um and what I will say is for me, I think having—some people call this like the paint drip method, the tentpole method, there's a variety of names it gets, but I mean it just boils down to having one or two languages that you are really good at that you like can sit down and people will come to you for like help, assistance, you know, sort of inside and out. And then any other language that your company uses or you're familiar with having a sort of minimally viable amount of working knowledge. So for me, that works out that like in the past it's been Java; right now it's C++. I do a lot of stuff in C++, and I by no means consider myself an expert, but I'm definitely proficient enough to capably get all of the tasks I need to get done done in it. Um and we occasionally use Python, and I'm relatively bad at Python, but I try to be good enough that if someone else is doing something in Python, I can follow what they're doing, I can review their code, I can offer suggestions, I can debug it in a pinch, so I can't be bad enough at Python and just say, 'Nope, I'm not a Python guy. I'm C++ if it's not C++, get out of here.' Um That's not a good answer. Some people will consider it a good answer. I don't like that answer. Yeah, I like this—everything that your company uses you should be passingly familiar with. Yeah or

0:41:57.443 --> 0:41:59.485
<v B>At least willing to learn it if

0:41:59.485 --> 0:42:09.340
<v A>Yeah, that's fair. Um then the second sort of follow-up thing is what kind of things happen when a whole organization decides to switch programming languages? Yeah.

0:42:09.694 --> 0:43:03.525
<v B>I mean, I saw this or a very large organization changed kind of their most popular language, and I mean these things happen gradually. You know, there's—you know, there's—these kinds of things have to be top-down. I mean, the idea could be bottom-up, but then the decision has to be top-down, right? And so you know, once a decision has been made, then there's not really much say. Right? So it's really about learning the new language, using it as an opportunity to refactor a lot of things. But yeah, I mean, I'm not necessarily opposed to it. It's really—it's definitely a decision you can't take lightly. But I think it is really important to say, okay, how much debt do we have because of this language and or it might not even be a whole language, but framework or what have you? And you know when's a good time to make that move, etc., etc. Yeah.

0:43:04.251 --> 0:43:56.985
<v A>So there's some more context of this I sort of left out, but I mean, I think when this happens—there will be especially not just switching frameworks, but switching whole languages—there will be people who will basically quit who they don't like. I'm a Python person, and I don't care that everybody thinks we're moving to C++. I'm quitting. I do Python. That's gonna happen. Yeah, I think it's always rough. There's gonna be people who always liked it the way it was anyway. But that's true of almost any change in just—I guess in life, but especially at work. Anytime management tries to change something, some group of people are gonna say, 'Well, it was better before.' Anytime there's a mistake, people are gonna point and say, 'See? I told you so.' 'I told you this was a bad idea.' But yeah, I think as Jason said, it really sometimes has to be made just at the top where a strategic investment is decided that you know we're gonna move in a new direction kind of no matter the cost. Very difficult to do bottom-up. I

0:43:57.424 --> 0:45:06.004
<v B>think. Yep, yeah, that's right. So Chris asks, 'OS 10 Windows or Linux?' If Linux, what distro would you use day to day? What languages?' So I could go first. I use a bit of everything. At work, I have—you know, a MacBook, but I also have a ThinkPad that's running what's it called? Fedora. It's running Fedora, and in the cloud at work we're running CentOS. It's actually my first time using Fedora. You know, at home I run Ubuntu, so you know there's a bit of everything going on. I do have a Windows machine or a machine—I guess I should say a machine that can boot into Windows that's only for playing video games. But actually, Windows has gotten really nice. So you know if I had to start from scratch, I think Windows is an attractive alternative. But just for historical reasons, you know, I basically have a Windows box for games. At home I have everything—Linux, and for work I have a MacBook, and in

0:45:06.899 --> 0:45:37.560
<v A>Fedora. Yeah, I guess mine is similar. I don't use so much Linux currently. I have in the past. I dislike Linux on laptops for the most part. Whatever, I think it's better now, but it's still not ideal. And and same thing for—I just—I haven't found despite the surcharge on it that the MacBooks are just so nice that even though they're expensive that until recently there's not been great alternatives. And so laptop is OS X, desktop is Windows sort of at home. Yeah, I totally

0:45:37.560 --> 0:46:00.580
<v B>agree about the laptop, by the way. Like I have ironically, I have a ThinkPad. It has Pad in the name, and the trackpad is so bad. Like it's—it's plastic instead of I think the Mac is either metal or glass or something like that. And the trackpad on the on the ThinkPad is just terrible. So so yeah, I agree. I think the hardware is just significantly better on the MacBook.

0:46:00.662 --> 0:46:17.620
<v A>But at home I've mostly given up the laptop thing. Like I don't think I'll replace old laptops ever again. I don't know. Mostly we go on to tablets and phones, and then we have a desktop that's Windows for when I want to play games or we need to do sort of photo editing or you know whatever kind of

0:46:17.620 --> 0:46:26.582
<v B>thing? What do you do for like—um—like let's say you need to write a document in let's say something like Microsoft Word and they need to print it? How do you do?

0:46:26.582 --> 0:46:30.953
<v A>That on your tablet? Oh, I mean, I go on the desktop and use Google Docs and use my printer. Okay, got.

0:46:31.307 --> 0:46:33.700
<v B>It? Do you have a way to print from the tablet or?

0:46:33.700 --> 0:46:52.671
<v A>Yeah, so we do have a way right now. It goes through the con via the computer, but that's because we have a really old printer. I think modern printers have normally apps on them where you can print directly from like you sort of save it to a PDF and then you print the PDF via an app or I think Apple has AirPrint or something that are hooked into some printers. Yeah, it's

0:46:54.004 --> 0:46:55.506
<v B>really not a limitation, but I mean.

0:46:55.700 --> 0:47:00.147
<v A>That is why we have the desktop. We almost always, if we need to do something like that, just get on the desktop.

0:47:00.940 --> 0:47:19.570
<v B>There's actually a second set of questions: what's your favorite development platform? Laptop versus desktop, smartphone? So, yeah, I think it sounds like we both have laptops at work. And then there's obviously most of the things are done kind of in the cloud. Yeah, it's a good question for development platform. So, so, development.

0:47:19.570 --> 0:47:21.527
<v A>Platform? Oops, sorry, I was going to say,

0:47:21.831 --> 0:47:28.463
<v B>At work we use Atom; at home I've been using more and more Visual Studio Code. What about you? So,

0:47:28.800 --> 0:48:13.283
<v A>For me, I do have a laptop at work, but I don't develop on it unless I have to. When I work from [home], I always use desktop—faster compilation, you know? Everything for the stuff I'm doing now or no locally because the stuff I'm doing now, I'm doing more app development. So, oh, I see, got it. Yeah, yeah, that varies depending on what you're working on, but currently, I very much like the large screen plugged-in fast computer. I don't like dealing with hooking in the laptop. A lot of people do though. And I use IDEs. I don't—you know, try to use, you know, Eclipse or lately I've tried some of the JetBrains stuff. This is like SeaLion and IntelliJ. Yeah, I've been digging those pretty good. I'm just a big IDE guy. I don't know whatever. I guess I'm not.

0:48:13.604 --> 0:49:05.859
<v B>Hardcore? Well, yeah, I actually switch. I used to be a big Emacs person, and now I've switched IDE. I mean, the big thing that let me switch is the—is the remote development. So most IDEs now have something where you run a server on the machine that's actually going to execute this code. So basically, the way my workflow is is, you know, I get to work, I plug my laptop into a screen, you know, and I'm just remote desktop the whole time. It's like I'm not actually compiling code on my laptop or anything. And there's a plugin for Atom where it looks like you're editing files locally, but none of those files actually exist on your machine; they're all on, you know, your machine in the cloud. And so you have this total IDE. It's even doing like IntelliSense and all these things, but it's doing a bunch of back and forth between your IDE and some service running on the other machine.

0:49:06.819 --> 0:49:19.940
<v A>So now we're switching over to some questions that came in from Discord. So this first one from BSD Tech, I'm going to give to you Jason. The question is: how do you deal with types changing in Python?

0:49:20.614 --> 0:49:22.605
<v B>How do you deal with? So,

0:49:22.605 --> 0:49:33.996
<v A>If you want to change the type and you need to go refactor your code because the thing is a new variable is a new type, and C—yeah, this is straightforward. You just keep fixing stuff until the compiler stops telling you you did it wrong. Yeah.

0:49:34.722 --> 0:51:33.700
<v B>It's a really good question. I never do untyped Python. I think that's very difficult. I mean, you know, for a script that you're doing, you know, for something simple, it's fine, but for anything at work, we have a pretty strict policy on types. So, for people don't know if you're using Python 3, there's actually typing built in. So it's I think it's called type hints, which means that they're optional. So you could say, you know, x equals three and nothing's going to crash or anything like that, but you can also do, you know, x: int = 3, and then later on in your code if you do, you know, x equals dog, it'll throw an error. And so what the way Python actually does it is there's no compiler. So you have to run a separate program I think it's called MyPy which does the type checking. And so MyPy will, you know, just analyze your code and just tell you, hey, you know, this variable you said it was an int, but then you set it equal to dog, and it won't pass, right? Think of it as like a unit test. And so yeah, everything we do at work has is using the Python 3 type system. And so, you know, yeah, if somebody has a function and the function takes an int and they decide that the first argument should be a string, anyone who calls that function will, you know, the type checking unit test will start failing. And so it's basically like writing strongly typed code at that point. It does give you a little bit more flexibility, so like there might be some very simple things like, you know, x equals the results of some function and then return x or something like that. You know, we're not super strict on putting a type every single place, but it—but all of the function parameters, you know, we type, and things like that, all the return values of

0:51:33.700 --> 0:51:46.819
<v B>functions are typed, and so that gets us around, you know, 99% of the issues. So very, very rarely will we have some issue where someone changed a type and it made it all the way into the runtime before we found out.

0:51:46.920 --> 0:51:48.659
<v A>I only work in

0:51:48.659 --> 0:52:07.812
<v B>Typed languages. Yeah, that part is much easier. So McGee asked, I'm taking a class this semester called Operating Systems. In this class, we'll be creating a basic OS in C and apparently some Assembly. What are some things to keep in mind when writing something like this?

0:52:08.217 --> 0:53:40.574
<v A>Patrick? Oh, okay. Um, yeah, I mean, so for your class, they should give you a lot of structure around this, but I mean, I think the thing to keep in mind if you're kind of starting from scratch is that you will write—you might do stuff that you might not do in a software engineering approach because you might have to sacrifice readability, legibility for that optimization that you need in order to get some system call working at a sufficient speed. Um, and so I would bear in mind, you know, do what you have to do to get the work done without holding to a stringent, you know, ideal about what clean code should look like because low-level operating system stuff is probably not the best place for it, but that's my opinion. People will probably argue with me about that. Um, and I'm not a Linux Kernel developer by any means where you'll have a lot of strong opinions about how stuff should be done. Um, but I—for me, I don't use much of the specific skills I learned in sort of operating systems class and doing low-level stuff, but understanding how the computer works definitely gets used by me day to day to help with debugging, understanding what a stack overflow means, understanding if I get an out-of-memory exception—like what would likely lead to that. Just knowing how all those things work under the hood is the really big takeaway that I've had from those kind of classes: it's the concepts and understanding what an operating system is and what it does for you.

0:53:41.012 --> 0:54:01.853
<v B>Yeah, that makes sense. I took System Software, which I think was the prereq for OS. I never actually—I don't think I actually took OS. I'm trying to remember if it was mandatory or not. I don't think it was, but yeah, the big thing was I learned how to, you know, debug really low-level things which I'd never done before. Like it's like a seg fault. Like what does that even mean?

0:54:02.157 --> 0:54:04.030
<v A>good point yeah yeah i think uh um

0:54:04.401 --> 0:54:37.679
<v B>Yeah, I guess the best advice, I guess if I had to give a piece of advice, is to give yourself lots of time because the errors are really esoteric. It's if you're used to doing something like really high-level like BASIC or Python or something like that, you're used to seeing like oh, I divided by zero and it'll actually tell you that, you know, and see, you know, it won't necessarily tell you you have an error right away. It'll just cause some undesirable behavior. And so yeah, that's not something you should be writing last minute, so fair enough.

0:54:39.012 --> 0:54:42.580
<v A>Velor asks, will we ever revisit topics on the show?

0:54:43.551 --> 0:54:44.884
<v B>Oh, that's a good question.

0:54:45.272 --> 0:54:46.774
<v A>I guess inevitably, right? I think.

0:54:47.129 --> 0:55:18.364
<v B>So, I mean, there's definitely things that have changed pretty drastically. You know, some people were asking us to cover TensorFlow, PyTorch—these things, you know—and we did cover, you know, I think we covered in general BLOS type libraries, but they've changed so much, right? So yeah, I think it will happen, but I don't think we're going to at any point say wipe the slate clean and start with C++ Blast like that. Probably won't happen, but yeah, I think we'll kind of—especially for these things are very dynamic—we'll revisit them. Yeah.

0:55:19.124 --> 0:55:49.634
<v A>I mean, I think in general the format of our show has changed a decent amount over the years, and so I think revisiting some of those things will make sense specifically in more fine points, right? Like Jason was just talking about writing using Python, using type hints, and I think something like that, you know, we could get into a discussion about some specific thing that sort of wasn't around when we first talked about Python, but I think covering Python as a whole. Yeah, I don't know. Maybe.

0:55:50.511 --> 0:55:57.227
<v B>I don't know either. It's a really good question. I mean, it's a pretty abstract answer, I guess, so it really just depends on the circumstance. I

0:55:57.227 --> 0:55:59.151
<v A>I guess in the future we will know.

0:56:00.518 --> 0:57:33.499
<v B>Yeah, so Appetite Nine. I guess Appetite Nine asks what do you listen to while you work? That's a good question. I actually used this thing called what's it called? Native of Fire. It's a Node.js binary, so it's basically a program and it will take any website and kind of wrap it up into an app. And so it kind of looks like an app, feels like an app. You can Alt-Tab, etc., etc., but it's really a website. And so I did that with the twitch.tv Monster Cat. It's just this—it's just this Twitch channel that plays basically techno music 24/7. And sometimes I'll fire that up. I have a tendency to just not really listen to too much of anything when I'm at work. Sometimes I'll listen to people who talk about philosophy, so you know because I feel like it's the kind of thing where it's pretty generic. It's kind of nice to just listen to while you're doing something. So I'll listen to like Stefan Molyneux and like other sort of just philosophers that just did like they do a whole thing on Aristotle, so it'll be like two hours on Aristotle, and I might know consciously absorb maybe 15 minutes of it, but it's really just kind of something to have going on. Same with the techno music, like it's really just something to kind of have a rhythm going on. But yeah, that's me. What about you, Patrick? Do you listen to music?

0:57:33.499 --> 0:58:41.050
<v A>Or um, yeah, that's a mix of stuff. Sometimes I'll put on some YouTube show in the background, or like I guess you were saying like a live stream or something. Sometimes I just have my headphones on and nothing playing, just like to dampen the—I mean, I don't have like noise-canceling headphones, but you know, just in general they close off the sound a little, and it's a signal to people that like I'm thinking. So which we'll have to talk about, I guess, in more depth at some other time. But yeah, same thing. I guess I listen to various electronic music. I don't know why. It's like when I'm not at work, I don't really listen to that music. I don't listen to music that much, but at work, I do. I don't—I guess it's a stereotype. I don't know. Recently, I've been like for some reason I found some good glitch music, which is—I'm terrible with music, but it's like I guess somewhere between techno and dubstep. Okay? Yeah. Anyways, I just found like this playlist. I checked it out one time, and it had some cool music I liked in there. So just various playlists on things like a Spotify or Google Play Music or Pandora. I'll just sort of scroll through whatever hot playlist they have and sort of play mostly something electronic in nature. Yeah.

0:58:41.421 --> 0:58:46.889
<v B>One time I was really into trap music, which is like techno plus rap. Oh.

0:58:47.327 --> 0:58:54.972
<v A>Actually, the name now makes sense. I never really thought about it. I didn't until you just said that. Yeah, that I didn't either, and I've been listening, but but anyway, so.

0:58:57.060 --> 1:00:05.060
<v B>So I've been listening. I was listening to this techno rap. It was like four hours of techno rap. I was like, okay. And so then I ended up going to a meeting and then going straight home afterwards. This was a Friday night. I get to the office Monday morning, and YouTube had been running for the entire weekend, and because I have YouTube Red, it didn't do commercials. It didn't stop. It literally ran the whole weekend. And I don't know how it went from techno rap to just a live stream of a zoo, but at some point the related video went to a live stream of a zoo, and you know that thing doesn't end. And so I watched a live stream of a zoo—not not actually watched, but for about a day and a half—and then YouTube will just incessantly show you, yes, for 90 days exactly. 90 days I got recommendations to watch zoo animals. Like my entire YouTube page was just dominated by that, and literally on the 91st day because I didn't click on any of them on the 91st day it switched back.

1:00:06.580 --> 1:00:11.027
<v A>Can you like not like say I don't like this video? Did you ever—I tried. Yeah, I did it.

1:00:11.027 --> 1:00:18.182
<v B>like two or three times and they're like oh well we'll show you this other koala bear yeah you don't like koala bears how about polar bears oh oh

1:00:19.887 --> 1:00:21.270
<v A>man life pro tip don't leave

1:00:23.599 --> 1:00:25.725
<v B>youtube running yeah it's true uh peter says

1:00:27.300 --> 1:00:40.407
<v A>peter says what are the best work from home positions uh sometimes it's hard to work remote but are there any positions that are a good fit does it depend more on the company culture co-workers um i'll take a stab at this sure the answer is it depends all right done

1:00:42.314 --> 1:00:42.820
<v A>we'll stop

1:00:44.322 --> 1:00:45.975
<v A>yeah i don't know i've

1:00:46.229 --> 1:00:53.620
<v B>Never actually have you ever? I mean, we've never worked remote, but have you ever done, let's say a remote project where everyone else was somewhere else?

1:00:54.660 --> 1:02:01.660
<v A>So for the most part, I haven't. And I think this largely depends on where you work in the company. So we both work in California, in the Bay Area, and so near sort of San Francisco. And it's not super popular here. It's beginning to get more notice, but in actuality, some places are kind of moving against it and trying to bring more people into less locations. Forget sort of even like work from home or or work remote for support roles. I see a lot of people covering different time zones, and that makes a lot of sense to me. But in other roles, I don't typically see it, and there are a lot of problems with it. I would love to see it work well, but I've never seen something where in the kind of work I do, which is highly collaborative, sort of a lot of speculative work, a lot of day-to-day change—it's not so much like here we have a product and we're just trying to sort of burn down bugs that have been filed against the product. Remote work is kind of hard to do. But I guess in that way, I could see that some work would be more well suited to it, right?

1:02:02.250 --> 1:03:24.229
<v B>Yeah, I know somebody who was—he they were doing a startup, and each person was basically in a different part of the globe. And it ended up actually working out pretty well because the startup was very focused. So basically, they were trying to do speech-to-text. And so what they would do is they would do a pitch, so all of them would have to fly to this customer, pitch them on their product. If the customer bought it, the customer would give them just a ton of voice recordings, then they would pay contractors to, you know, manually transcribe them, and then they would write, you know, computer programs to try to match that. And so there is let's say, you know, a person in North Carolina who is doing, you know, just trying to get the utterances right, and he had sort of a ground truth of what the right utterances were. So just he was just getting the accuracy higher and higher, but there's really there wasn't a lot of collaboration. I mean, if one part of the system got much better or changed, you know, I guess they'd have to tell everyone downstream. But in the grand scheme of things, it's not—it's very low on the scale of collaboration, and that seemed to work pretty well for everybody. But yeah, I think to what Patrick was saying, you know, most jobs aren't like that. Like in most jobs, you need to collaborate, and so being remote is pretty difficult. But that

1:03:24.600 --> 1:04:23.039
<v A>Being said, people talk about it more now than they used to, and I think there's increasing desire for people to begin to have this as an option. But I also think like just being brutally honest, some people do better remote work than other people. Like it's a—it's a different skill. Being able to sit, I guess it depends on what you mean by remote. If it's like work from your house by yourself, some people are very well suited to that; others are not very well suited to that. They get distracted; they don't work as hard. And it just depends—it's a person-by-person thing. And then your company's reception to it is different. But I'm also—I know I've tended to work at pretty large companies, and I find that being in the office having face time with the bosses, like meeting people, that kind of stuff helps me do well in my career more than straight up just like being an amazing programmer. It's also important.

1:04:23.039 --> 1:04:24.524
<v B>To do, but you know,

1:04:24.861 --> 1:04:41.460
<v A>Having that face time and having people know who you are and keeping communications open and, you know, making sure I understand what's needed and then doing those things that are needed is important. And I feel for me some of that would have been lost if I had not been in the central office where most of those people

1:04:43.204 --> 1:04:56.012
<v B>Were. Yep, yep, totally makes sense. I agree 100%. Yeah, if you can avoid remote work—I mean, I guess not, not if you can avoid it—but like definitely take into consideration the fact that face time is really, really, really important. So but I

1:04:56.282 --> 1:05:08.162
<v A>I mean, but I could see how a combination of video chatting and regular visits, and like I—I could see how you could make it work. Yeah, I just don't have any great first-hand experience with it, so I

1:05:08.483 --> 1:05:16.026
<v B>Can't say too much. Yep, same here. Riley C52 asks what are some of the best places to discover new

1:05:16.026 --> 1:05:19.249
<v A>Open source projects and contribute to them? Yeah, we get

1:05:19.249 --> 1:05:20.819
<v B>this question a lot.

1:05:21.038 --> 1:05:22.169
<v A>Right. I think um

1:05:22.574 --> 1:06:27.060
<v B>It's a really good question. This one's actually phrased a little bit in a very interesting way because it's about sort of discovery. You know, in general, my general philosophy is that you should start with sort of a problem that you want to solve and then try to find the open-source solution and then improve it rather than, you know, joining something that's doing something that you know, it's like join some astrophysics open-source library even though you don't care about astrophysics. That's probably not, you know, a good bet there, even if the code's really good and the people are good. Like you want to start with a problem that you want to solve. You can one thing I typically do and I'm looking for open-source projects is I just go into Google and I type some keywords and then use the site:github.com so that I only see results from GitHub. That's one way to do it, but yeah, in general, it's like really just start with a problem and then you know start your search there, and you'll find something you're more passionate.

1:06:27.060 --> 1:08:20.819
<v A>About. So Grant asks two questions. I'll take the second one, and then I'll leave the first one to you to go second. And so Grant's first question is about immutable versus mutable objects, and this is a discussion I've heard go around a lot recently with the current interest in functional programming. It's often the case, yeah, and I think that there are good points to making as much of your system immutable as is reasonable. And I think it's one of those gut feeling things as to what is reasonable. I think taking and saying I don't care where some bit of something is in the system, I'm going to allow all pieces of the system to mutate it. Yeah, that obviously is bad. You end up with things like you hear this global variables, global state, state balls—these things where it's just like oh hey, there's this bit of where we keep all of the interesting things in the system and all the pieces of code can call into it and write to it, and you know, it just sort of gets touched by all over the place. That ends up really hard to debug, very confusing, not great. On the other hand, saying nothing in the system, you know, can really be mutable—everything's immutable, which is what happens in some extent in functional programming, although they have concepts for how to deal with mutability. That can also run into some difficult situations where things become a little less straightforward. So in general, what I would try to say is, you know, limit mutability to as small a set of components as you can. And when there's disparate components that need to potentially mutate shared things, it's like define a good interface around them and not so much say that the whole system should be immutable or now just whatever who cares does everything be mutability.

1:08:20.819 --> 1:08:31.050
<v A>Is by default? Say like is it reasonable to have this component be immutable, and if so make it that, and then use the mutability where it makes sense. Yeah.

1:08:31.405 --> 1:09:09.780
<v B>I find these questions often get answered when you go to write tests. So if you go to write some kind of unit test that only tests one piece of the functionality, then and you have like let's say as Patrick says a huge global object, right? Then one of two things will have to happen: you're going to have to put that huge global object into the right state for that unit test to pass, which is usually really hard. Like or you're going to have to kind of break that down. And so usually when you come to write unit tests and get good code coverage and things like that, that's where a lot of these problems become revealed, right?

1:09:11.162 --> 1:09:12.158
<v A>That's a

1:09:12.158 --> 1:10:23.472
<v B>great point. Yeah, I mean, I've started—I think it's like Proto3 is immutable. So in Proto2 you could just if you had a ProtoBuf object called Foo and it had an int X, you could just say Foo.X = 2, and the next line could be Foo.X = 4. With Proto3 at least in Python, they made it immutable, and so you actually have to create a new Proto object where X is 3, and then create another second object where X is 2, and it copies does a deep copy, right? And so you know my style has changed just because of that. But yeah, I think again like the testing really will give you the answer. So you know if you go to write a test for something and your test is like you know call main did it return zero, then you say okay, well yeah, you tested the entire program in one test. Now I need to break that down. It's like oh, I can't test this function because it requires just so much state and so much overhead that I can't even start this function unless I'm running my program, and then you'll eventually get to fixing all those issues, and mutability will happen along.

1:10:23.860 --> 1:10:27.977
<v A>The way. So Grant also asks.

1:10:27.977 --> 1:11:11.869
<v B>New AI libraries like TensorFlow, Keras, PyTorch, MXNet. Yeah, I mean there's definitely you know I could see people getting sort of analysis paralysis here. In general, they're all—they're all really good. I mean it's I don't I think it's you know MXNet has some advantages, I think that's from Amazon or Microsoft, but it there's one from Amazon that runs really well on AWS, there's a Microsoft one that runs, you know, it's very compatible with Azure, so on and so forth. You know Keras is trying to be a layer on top of all of those. I don't really see Keras going very far because the owner—the kind of core maintainer of Keras, I think he went to Google and works on TensorFlow now.

1:11:12.325 --> 1:11:13.962
<v A>Yeah, so you know.

1:11:13.962 --> 1:12:31.620
<v B>Again, this is one of these things that like it's sort of like if you go to a music store and they have a whole bunch of different kinds of guitars. I'm not a music person at all, right? But but I know that they have tons of different kinds of guitars. You know they have some guitars are twenty thousand dollars and stuff like that, right? But you know if you just pick up a guitar and start playing, you're going to get a lot further along than someone who spends a year trying to find the best guitar, right? And so all these libraries are very solid. They're all backed by really large corporations. They all have sort of pros and cons, but they're the pros and cons are pretty esoteric, right? So so yeah, I guess my advice would be you know just grab one and just start running with it. You know I personally like PyTorch, but I haven't used MXNet, so I can't say anything about that. I do think that you know the ano and to a lesser degree TensorFlow 1.0 are getting pretty obsolete, so people have just learned lessons from them. TensorFlow 2, I think is coming out soon that should be really nice. That will—I mean the latest one is always going to learn lessons from the ones before it, right? But yeah, I wouldn't spend too much time worrying about which one. Just pick one and start building some crazy robot.

1:12:35.434 --> 1:12:38.151
<v A>Well, I thought it's a pretty good collection of mailbag questions.

1:12:38.151 --> 1:12:41.273
<v B>Yeah, that was that covered a really wide spectrum, right? So well.

1:12:43.129 --> 1:13:06.383
<v B>It's been a good episode. Yeah, thank you folks for listening to the live show on Discord. One of these days we're going to try and get it set up where people can actually literally ask questions and they would be on the air. I'm going to have to look into that. I know there are other—I follow actually other YouTube like podcasters and YouTubers who do that, so I know it's possible, but we haven't got it set.

1:13:06.754 --> 1:13:08.172
<v A>Up yet. We're not sophisticated.

1:13:08.256 --> 1:13:33.219
<v B>Enough. Yeah, that's right. So thanks again for supporting us on Patreon. Have fun with the coasters. We had a lot of fun kind of shipping them out. It was definitely an interesting experience, and yeah, send us a tweet if you haven't already. Post a tweet at @ProgrammingThrowdown, you know, at mention us, and send us a picture of your souvenir. And we'll catch you guys next month. Stop.

1:13:36.977 --> 1:14:07.140
<v B>the intro music is axo by binar pilot programming throwdown is distributed under a creative commons attribution share alike 2.0 license you're free to share copy distribute transmit the work to remix adapt the work but you must provide attribution uh to uh patrick and i and uh share alike in kind

