WEBVTT

0:00:00.000 --> 0:00:22.940
<v A>Programming Throwdown Episode 123: Project Planning. Take it away, Jason! Hey everybody!

0:00:22.940 --> 0:01:41.753
<v B>So we are here having another duo episode to talk about project planning, which is something that is super important. I think there might be a dedicated class—I think at my college there was a class called Software Engineering, but it was an elective and I never took it. But apparently if you take—if you had taken that class, they actually cover project planning. But I had zero experience with project planning, you know, academic experience. And so you know, it would have been awesome for me to have this episode or something like it when I started. I feel like it's something that is super important to make sure that you kind of follow through and also so that you're not just overwhelmed mentally with everything that you're able to sort of keep a lot of these notes so you don't have to kind of have a brain dump, you know? Yeah. I think I also missed out on that class. So yeah, that's all right. We'll make up for it today. You know, actually, I remember the reason I didn't take it was because they spent a huge chunk of the semester talking about UML, and I looked up UML on the internet, and I was like, 'No, no, I don't think—I don't think I want to take this.'

0:01:43.407 --> 0:01:53.565
<v A>Class? Oh man, that rings right up there. With I looked up the teacher ratings, and the teacher is rated as hard. So I didn't know. I mean, I just—I didn't say I did that. Just I hear people.

0:01:53.565 --> 0:02:09.968
<v B>Say that? Yeah, I think UML was, and I don't even—it's going to be very lucid here, but I think it was some kind of diagramming thing where I remember there's like a picture of a person, and the person goes into a flowchart, and then I guess a happier person comes out or something. I don't know that the person goes into the flowchart, but—but it was.

0:02:12.752 --> 0:02:41.592
<v A>Enough UML is interesting. We should talk about it at some point. I mean, I think it's like the idea that—I think is it Unified or Universal Modeling Language? I mean, like the idea for describing architecture that way is useful, but I think it had a heyday probably, yeah, like around the mid-2000s, the aughts. Is that what they were calling them, the zero axes? Anyways, they're on at time where they thought they were going to like auto-generate code or like you would go into the box and like type your code in the box, and then it would get hooked.

0:02:42.182 --> 0:04:39.780
<v B>Up. Yeah. Oh, I remember those auto-code actually for GUI stuff. Auto-code is still quite nice. Like I used what did I use recently? Oh yeah, I used the Qt Designer, which is for a project I was doing. I wanted a cross-platform UI, and I mean, oh man, we should definitely do a show on cross-platform UI because I spent so much time researching this. And usually it's not like me. I mean, one of the things we tell people on the show is to pick something and just stick to it, but I really couldn't find anything really that I wanted that was cross-platform that worked well, and finally settled on Qt. Initially, I was a little hesitant to use Qt because it seemed pretty heavyweight, and it has sort of—Qt has its own style and all of that. But for a programming standpoint, Qt was really nice, and they have this thing called Qt Designer where it auto-generates Python code, and then you go and fill in like when you click the button what should happen. So for that, it works well. But I think that, yeah, back when UML was getting really popular, I think people had this vision that everything would—all programming would work that way where you'd have this visual designer and then you would write little bits of code in the designer, and that's never really taken off other than one use case. Actually, there was something Patrick, you might remember this, there was something where you could build like ETL, like data pipelines using this visual designer. I think it's called a Screwdriver or something, but you would like drag and drop blocks, and then each block you would put in a bit of SQL, and then you would sort of assemble these blocks of like SQL, and then one of the blocks could be, you know, right to this key-value store or something like that. That actually was I also thought that was pretty nice, but they ended up killing that project, and I think what it was is the people who.

0:04:39.780 --> 0:04:55.765
<v B>were much better at SQL and data engineering than I was. Hated it. So it was like it was good for novices like me, but then somehow it was worse—a lot worse than just a text editor for the people who really know what they're doing. And maybe that's the.

0:04:56.490 --> 0:05:14.277
<v A>General trend? Yeah. I don't know exactly what you're talking about, but it sounds vaguely familiar. I mean, I think there are places where specifically like the opposite is true, where describing the ETL pipeline that you describe in code with pictures as like a output documentation tools is still pretty widely used. Yeah.

0:05:14.277 --> 0:07:12.120
<v B>Yeah, that makes sense. Yeah, cool. All right, so we're gonna dive into project planning, but first let's talk a little bit about home NAS. So, you know, a lot of people have a lot of data at home now. I mean, I have a backup of all my photos, you know. I know Google Photos does—they change the resolution of the photo, right? So even though they'll store infinite, and actually I think they're even—they're gonna stop storing infinite. But anyways, so I just always keep a backup of all my photos and all sorts of other documents. I have a folder called Books. I have a folder called Research Papers. You know, it has like 90 contents I've never read. It probably will never read, but it's there. You know, I have—we have a whole ton of information. We have Plex running, which is a way to stream video within your house. And so all this data needs to be accessible and even ideally accessible, you know, outside your house with the right security, you know, authentication, all of that. And what I used to do up until a week ago was I used to just use the oldest desktop in the house. And so I had this desktop that I don't even know how old it is—maybe a decade old. You know, and it has like a ton of hard drives in it, and it's barely able to run the latest Ubuntu. Like it's just chugging along and trying to keep all of these hard drives up and running. And I had a drive failure, and so it really made me rethink. Like, okay, what do I want to do here? What I ended up doing is similar. I ended up getting there's this thing called a Yata Map—Yata, Yata Master, but it's basically a hardware RAID enclosure. So it's a you plug USB into your computer, and then the other end is this enclosure which has—I think mine has five drives in it, and it does RAID 5 in hardware. So from your.

0:07:12.120 --> 0:07:34.491
<v B>view, it's just like plugging in a USB drive, but it's actually this five-drive monstrosity. And so you just get this like—I don't know, I think it's like a 12 terabyte USB drive is kind of how it looks to the computer. And so I have that plugged into a Raspberry Pi. So that's my new setup. But yeah, what do you have?

0:07:34.947 --> 0:08:59.372
<v A>Patrick, I have actually like an old Proper—was it Synology NAS that I got from someone that didn't want it anymore. Was like older, so I've used that before. And you know, also interestingly, and depending on your backup strategy, I mean we have a similar thing like backing up to the various cloud small parts of our data that's like super important, like you know pictures and documents and stuff. And then for larger stuff what I've done between various computers is—we've talked about on the show before. I think it used to be BT Sync, but now it's Resilient Sync, and so it kind of mirrors over time between computers, and even like some of the stuff that's like family important to like my brothers or my father or whatever. We have one of those folders between computers, so like some of the stuff that I put there and they put there as well, and then it backs up multiple sites, right? So like as long as if not both of our houses were taken out by some catastrophe in theory some of that data would be recoverable. But also what I've come to realize is like a lot of stuff that I was backing up—even if like hard drives are cheap, it's just like it's not worth it. It's kind of like storing stuff in your house. Like, 'Oh, it's cheap to buy these clothes. I'll just buy more and more clothes.' But then you need bigger closets. You run out of space, and you start being compelled to buy a bigger house. I think—oh, it is that Marie Kondo? Yeah, that's right. I don't know that story, but me.

0:08:59.507 --> 0:09:01.094
<v B>A digital Marie Kondo. I think the same.

0:09:02.444 --> 0:10:16.761
<v A>The thing is true. Like I don't need to back up my entire Steam library, like whatever. Steam has its own issue. I don't want to even get into that, but like if I have a Steam game and the Steam game is really big, like part of having bought it on Steam is the ability of like redownloading it and you can get into your own, like do you really own it or not? But for me personally, what I've just made that decision is like I don't need my all my games backed up because I can just redownload them if something were to happen. And basically that can cut out a ton. Same thing. Like I don't need to back up Core Windows or even Windows settings anymore. A lot of that stuff now, the folders that have like documents in them—yes—but all the other stuff, like settings, like worst case, I'll just build that back up myself. And so what I do is I do make like for certain of those things like clones locally on that computer, but for the most part, like I just will reinstall and then bring back the data that matters. And yeah, that would kill a lot of time, but it's the expectedness of it, right? Like it would take a catastrophic hard drive failure, which can happen and does happen. But what is it going to happen during like my usage pattern? It's like maybe once every X years, five years, four years, and like reinstalling looks—to be honest—is probably better than just like bringing forward all of that debris. Yeah.

0:10:16.829 --> 0:10:47.119
<v B>Totally agree. Yeah, that's a really good call out. You know, when I look at my NAS, I mean it has a lot of books I thought I would read and things like that, but I'm the same as you. I don't put games on there. I feel like anything I could read download—you know, I don't really have on there. I mean, I guess I could read download the books and the research papers, but it's more just like—I always feel like oh, one of these days I'll need to know what are all the graph theory research papers I've ever looked up. So it's more of just like a personal archive. Yeah.

0:10:47.710 --> 0:11:53.624
<v A>That's a great point though. Like I feel similar, and it's same thing with like my bookmarks. Like I constantly have not a good way to like bookmark things and like keep them organized. It's just like right now I have like a billion tabs open, and a tab is like a lightweight bookmark, and there's like short-term long-term memory, like substance—short-term occasion. I want it to automatically go into long term. And it's just because searching the internet for an obscure graph theory paper—I don't read graph theory papers, let's pretend I did—like then you know searching is really quite difficult sometimes. And this has happened to me. Like I don't know that it's important until I kind of it's too late. So having like a history of what you looked at or whatever, and for like you said books or whatever what you're talking about, is you want to save the curation of them, but like the data itself is not that interesting. But all of us fall into these traps that like the tools just aren't there yet to model that. I mean, people will probably write us in and tell us some good tips. Yeah, definitely please do. But I mean, I think what you're saying is even just having a recording of the file names of your file folders, which is of course very lightweight, has a lot of the value of actually recording the data, but it's just easier to record the data.

0:11:53.826 --> 0:12:47.600
<v B>Yeah. So I think that the big reasons for a NAS for me are pictures and videos. So you know, we don't have—I don't think well, actually, I take it back. We definitely have some way to play DVDs in this house. I don't know what it is. I mean, it's probably in a box somewhere like an old PlayStation or something like that. Yeah, but you know we have all of the DVDs are have been ripped, you know, even like the DVD of our wedding and everything. All of that is ripped and on the NAS. And then—and then all of our pictures are on the NAS. If it wasn't for those two, then I would probably just run Resilio Sync on all the computers in the house. I mean, I have that as well. And so actually this is an interesting question: Is do you use Resilio Sync or Dropbox for personal things? I feel like I'm kind of using both, and sometimes I wonder, like yeah, I mean, like is I'm gonna hack my Dropbox and get forms with my address on them or something?

0:12:47.600 --> 0:13:49.200
<v A>Yeah. I mean, look, people will get your Social Security number or your tax returns or whatever and commit very targeted fraud against you. Like—I mean, it's the same thing. Like if this gets really depressing, if someone decides to rob your house specifically, they will watch it. They will decide when you're not home. They will decide what's in it and what they're going to grab, right? And then to defend against that is very difficult. What you're looking for is—you know, defending against someone just like getting onto your computer with some zero-day worm and encrypting your—you know, your computer and then trying to like blackmail you. And a thousand other people that like you know pay or we're going to keep it encrypted, right? Like could they do that? Yeah. And then what you're talking about is unless the NAS is good because it's probably a completely different stack than your desktop, so the chance of it sharing is zero-day. Although recently a lot of the NAS has had a really nasty vulnerability where they could get wiped. So I think like this analogy once or something. So yeah, so be careful.

0:13:49.403 --> 0:15:19.448
<v B>I mean, I think that—yeah, I think that Dropbox, like I totally agree with you that if someone's targeting you personally and for whatever reason they like just really want to get you and they're willing to fish you and do all these things and you're in a bad spot. But for all of us who are just normal dudes, I think that it's really the concern is that Dropbox somehow gets hacked in a way where everyone's Dropbox—but then I guess, you know, I guess to follow that train of thought, if everyone's Dropbox was leaked, my Dropbox is probably not high priority. Like, in other words, like seeing forms like medical forms from like a hospital bill with my address or something is not what they really want to see. They probably want—you know, I don't know tax returns or something. But yeah. So so you know, I guess I have a mixture of Resilio Sync, which is syncing among all the computers similar to Patrick. I have it also syncing with my folks' computers, and then I have the NAS for, you know, the pictures—we've just terabytes of pictures and DVDs and all of that. And yeah, it seems to work pretty well. I debated getting a Synology, but I felt like I already have several Raspberry Pis that run 24/7. I kind of felt like I might as well, you know, installing Plex on Ubuntu is pretty or on—I guess Debian for Raspberry Pi is pretty easy. So so I went that route, but I'd be curious folks at home, or actually Patrick, I mean, like how would you think a Synology compares to just like running an Ubuntu machine?

0:15:20.241 --> 0:16:11.693
<v A>I mean, better and worse. It's a more appliance approach. So it's not the—I'm uploading everything to Google and subject to the whims of their terms and conditions or whatever. Like you normally it's sort of your box, so there's some level you could pull the hard drive off and like mount it on your own computer worst case or whatever. A Boon Juice is nice, but then you gotta—there's time spent like updating it, choosing what to install, getting it to an—there's stuff like, you know, talk about like Unraid or FreeNAS or is it OpenNAS, which are more tailored to, you know, having a Samba share so if you want to like mount it from Windows or whatever, which is stuff that sort of Synology would come out of the box. You can figure all that out absolutely and in fact probably build a much more capable machine for cheaper unless you factored in how much like time you spend on it and put any value on that time.

0:16:12.199 --> 0:16:34.860
<v B>Yeah, that's a really good call out. Yeah, I think as someone who's already done a lot of Samba and all these things, and that was incremental, but yeah, you're right. If I was just starting out and I had a Linux machine and I needed—you know—Windows to see the hard drives and all of that, I mean, that is that is like weeks to get that right and actually have it like be really smooth and like work when the machine starts.

0:16:34.860 --> 0:16:45.860
<v A>And everything, but that's not why. I mean, most of this is a hobby, and it has a vague like in theory help to our careers longer term by staying up on tech and learning new things and being in that space. So.

0:16:45.860 --> 0:18:36.970
<v B>Yeah, that's a good cause. So maybe okay, here's our advice. So if we were to—if we were to sort of conclude with advice for people who want to set up a home NAS, maybe you have a desktop. So you know, in my case, you know I lost a hard drive in this machine and also the processor fan went out, and so the machine won't boot because it actually—it's interesting. It'll boot, but then it won't restart because the processor gets so hot that the BIOS won't let you continue. So like I had to shut it off, wait for the processor to cool down, and then turn it back on. So I lost the hard drive, the processor is dead on this thing. Oh yeah, but I had a RAID, so it was RAID one or whatever, so I didn't actually lose any data. But if you have everything running just on your desktop and you have like all the things you've ever programmed in your whole life—you know some of that stuff's like sentimental—or you might have pictures or other things, you know, definitely think about getting some kind of NAS set up. It could be as simple as just putting more hard drives into your computer if you don't have a lot of time. I think Synology. I know several people who have Synology and like it, but—but I definitely think something like that would be really important. You should check into it if you want to put in the time and effort. I think getting an Ubuntu or Debian or getting a Linux box connected to a bunch of hard drives is for me at least it's been the way to go. Agreed. All right, so jumping into news. My first news story is this pretty cool thing. It's a—it's a homebrew CNC machine. Patrick, what does CNC stand for? I don't actually know. Computer Numerical Control. And so what that it means to me and maybe I'm totally wrong here is it's basically like a drill, like a drill that you could control with a computer, and you could—you can like carve things out. Did I get that right? How would you explain this?

0:18:36.970 --> 0:19:33.535
<v A>A mill. It's normally a mill. So it's normally like so the difference between a drill is—it's braced to only go like up and down, not side to side. So no side loading. So as bearings meant to allow you to push into a material but not drag through a material versus a router is a machine that is braced with bearings on the side. So if you drag it across the material and they're side loading, that's like engineered for really. And so a mill or CNC is—it used to be a mill was these things with like handles and screw drives and like you would twist various knobs and move and shave stuff down, and that's how most like heavy machinery is still built. This CNC I assume you're talking about, I haven't looked at it yet, is like a router that can go up and down but doesn't apply a lot of up and down force, but then side to side is braced so that you can go through a material and like hog it out and it won't break the internals of either the thing that's moving the motor around or the motor itself.

0:19:33.585 --> 0:19:53.346
<v B>So you're saying if I—and this shows how little I understand mechanical stuff. So you're saying if I took like a drill, like a power drill, and I tried to go well, I'd need a special bit. Let's say I had a bit that had blades on the side or something, and I tried to like go sideways with the drill, it would like break the drill because it's like not meant for.

0:19:53.346 --> 0:19:54.173
<v A>Immediately, okay, but

0:19:54.173 --> 0:19:55.658
<v B>It would do damage. Yeah.

0:19:55.995 --> 0:20:55.060
<v A>The basically like the bearings and the internal structure isn't meant for side loading. Got it? So it's sturdy, but if you did continue it, what happens is people try to do it on their drill press. So if you have a drill press and you're trying to move the material under the drill press constantly and you give it too much, you're gonna—it's not gonna like catastrophically break. It's called runout, right? The amount of error there is in the concentricity of the spinning parts. So the spinning parts begin to wobble, and the reason why is because you're putting pressure on a piece that isn't meant to take that load. And so over time it deforms, and then you get—you know, basically more error in the exact diameter of the thing that's spinning. And when your computer controlling it there, it's open loop. So there's no closed loop, which means it—it tries to do a thing and it doesn't know if it accomplished the thing. So that's open loop. Closed loop is you do a thing and then you take a measurement to see if you accomplished the thing you attempted to change. You attempted.

0:20:55.060 --> 0:21:44.957
<v B>To actuate. So this guy built his own CNC machine from scratch with like three parts, and he got a—there is like inside of it all is this thing that you could buy. I've actually seen it at Home Depot. I think it's called a router or something, but yeah. Yeah, so inside of all of this is like this cheap 30 router thing, but then he's 3D printed all of this stuff around it. And I think some of it you have to buy, like, you know, timing belts and stuff. And he's—and so he's end up with his own CNC machine which looks like pretty big. I mean, I looked into this at one point. Getting a tiny CNC machine is like at least a few hundred dollars. And so with this it's like looks relatively cheap, and you end up with a big CNC machine. What's your take on this, Patrick? Does this look like a good idea or just like a fun thing to do but not a good idea?

0:21:46.493 --> 0:21:53.192
<v A>I mean, I've had one before. The one I had was a branded one which is the brand has sort of changed over time called a Shapeoko. Oh, interesting.

0:21:53.547 --> 0:23:47.318
<v A>So it's—it's more like a kit, but it's just—I'm looking at this now. Yes, that Makita router in the middle is meant for a human to hold and push through wood to—to you know, shave wood sideways. So it's using the right. Got it? These are like industrial ideas that are being made for the hobbyists. If you have a need for—so I had a Shapeoko which is the same idea as this. When I had it when I was using it, the issue is that like it kicks up a ton of sawdust. So if you don't normally do woodworking or used to 3D printing, they're relatively—like 3D printing is relatively clean. When you start to do like power tool woodworking, this bit is spinning super super fast and it's throwing tiny bits of wood dust. This picture I'm looking on their website is—they're carving MDF, which is basically sawdust glued together. So when you cut through it, it's making sawdust and blowing it into the air. I heard that MDF is toxic; it has formaldehyde in it. Yeah, right? And so yeah, be careful with it. But basically it's making sawdust. It's going everywhere—tiny bits, and it's just flowing into the air. And so—so wait, what do you do about that? Vacuum it up at the end? Oh, okay. Got it. Wear a dust mask. Okay. A lot of people try to put like a cover around it that has a vacuum attached to it, but even then like the vacuum fills up pretty quickly. Like it's a sort of constant fight. Um yeah, I would say like there's one—I think it's called the Mostly Printed CNC MPCNC that I have heard about a little bit more. There's a Shapeoko which is like a consumer grade. There's several other consumer grade CNCs as well. I mean, it's if you have a use for it, like cutting out thick pieces of wood or making a sculpture in the face or whatever, it's definitely a super interesting hobby to be in. So yeah, I mean, it's cool. Yeah. Well.

0:23:48.212 --> 0:24:21.591
<v B>Check it out. I think if you have the time, it's similar to building your own NAS if you want to—if you want to develop a skill and you have some time, this is a really cool project. I maybe would start with building your own 3D printer. I've done that before, and as you can hear, I know very little about this stuff, and I was able to pull that off. So maybe start there. But if you've done that, if you've built your own 3D printer, this would be a cool next thing to do. And I just—I think the video is really compelling. Like it does exactly what you'd want it to do. Yeah.

0:24:22.232 --> 0:24:39.951
<v A>I mean, the small size. I'm looking Shapeoko. Now they don't have the small one I had gotten. So they start much larger, but the ones that you used to make were four feet by eight feet. So they were meant to cut up like an entire sheet of plywood that you would get from Home Depot or whatever, but four feet by eight feet—most people don't have that much space in their garage.

0:24:39.951 --> 0:24:46.760
<v B>That probably costs like thousands of dollars, right? Yeah. That's right. Yeah, how much would this cost? I haven't looked at the BOM, the bill of materials.

0:24:46.760 --> 0:24:58.902
<v A>I mean, the big expense is the stepper motors and the sort of like rails and the controller, but I mean if I had to guess, probably like 500, 600 if you had to source that news. Yeah.

0:24:58.986 --> 0:25:02.952
<v B>That's what I was gonna guess too. Uh again,

0:25:03.137 --> 0:26:51.374
<v A>Cool hobby. So related actually unintentionally but in a bit vaguely related to a CNC machine is when CNC machines make cuts, you need to make curves through those—through the wood to make your beautiful shaped electric guitar that you're carving out or even a surface. And if you were to look into modeling that surface, you might run across something called NURBS or Bézier curves. Oh, I've heard of that. Yeah. So there was recently an article by—I am not going to attempt to say the person's name. Barti will okay, Bartosz Chanowski. There's a link in the show notes. There's a link in the show notes. That's right. It's called Curves and Surfaces, and so he walks through, and this guy's done a number of articles. Check out all the articles on his site. He always has like a bunch of really really good interactive visualizations. And so he starts through sort of like first principles of linear interpolations between two points. And then what if you did that at like had two line segments that were—you know, of course drawn by a linear interpolation between them, but what if you had—you know, instead of going between the points, you drew a line that connects an interpolation between the points and then a line that connects that line? And that's how you end up defining Bézier curves. Wow, this is cool. It's very interactive. Yes. And then if you start defining curves, then you could define surfaces and patches and—you know, provide smoothing on the derivatives, the first derivative or second derivative, and what the impacts of that would be and what would it mean to have kinks or, you know, sharp surfaces, and how would you handle that? I mean, just goes—it's actually rather if you make it through all of this and sort of really internalize all of it, you will have a very good understanding of how a lot of modeling is done, how a lot of 3D graphics is done.

0:26:51.374 --> 0:27:04.975
<v B>This is so freaking cool. You guys have got to go on this website I'm on it on my phone here and even on the phone. Actually, the phone is probably even better because of the touchscreen, but it is so freaking satisfying to play with these curves. So this is how.

0:27:04.975 --> 0:28:56.940
<v A>Like these curves that he ends up talking about are used like how Pixar models the characters. Like if you want to model someone's nose, right? A nose isn't made of a bunch of triangles; a nose is made out of, you know, a sort of elastic material—skin draped over a substructure of muscles and cartilage, and whatever. Anyway, so you have to have an organic shape. And so that organic shape, you need a good way of sort of defining it. Eventually, you might end up reducing it to triangles, but anyway, so this is really interesting. This comes up depending on obviously like what part of computer science you're in, but if you do much with graphics or rendering or even fonts—how fonts are rendered—fonts are defined using these Bézier curves. So how you define the like curve on the bottom of the 'S' shape, right? Like you define that in these Bézier curves. So most all fonts are defined using this style of things. So it's actually used pretty heavily even if you kind of don't know it and you might run across it. There have been recently a bunch more like very easy to understand interpretations of this. Prior to that, you would have mostly gone to a computer graphics book and tried to read, and it would have given you a lot of math and a lot of linear algebra and said, 'Here you go, here's how you define them.' And if that's not your background, you would have been like, 'Yeah, I don't get any of this.' So explaining it in sort of layman's terms really helps. You at least when you go into Inkscape and you're dragging the handles on the curve defining—you understand like what it's doing or why it loops back on itself? Like at a fundamental level, like what is the computer trying to do? So I definitely recommend people sort of go and check it out if nothing else than like the cool graphics and learning a little bit more about like I don't know, maybe 'fundamental' is overstating it, but like a very core piece of a lot of modern rendering and graphics and design. Yeah.

0:28:57.767 --> 0:30:53.840
<v B>Totally. I mean, this is really, really fun to play with, and it'll give you a really good understanding of, you know, but yeah, how 3D geometry really works. And it'll connect the thing I love about this too is—is there actually parts of it where it shows you an equation, and as you are dragging these points around, there's updating the equations in real time. And so you can kind of in your brain, you can like create synesthesia between like this mathematics and then what's actually happening in this in this picture. Super cool, man. Okay, so mine is also kind of a visual presentation, which is cool. We have amazing flow. This is—this might be our fastest flowing, cleanest flowing episode. Mine's a visual explanation of Raft Consensus Protocol. So you have this issue where, you know, we were talking about your NAS at home and having RAID storage, and so storing things on multiple hard drives. And that's not hard to do because you have this one USB cable or you have this one backplane on your motherboard, right? So there are all these hard drives are ultimately being controlled by one computer. But if you go to like let's say a database at a, you know, a really popular website, like Take Amazon or something, you know they can't just have one computer controlling everyone's shopping cart, right? And so they need to have this like massively distributed fault-tolerant database. But then they also have to have like many different what they call leaders, you know places where you can write data, and then also have many followers—places where you could servers where you could read data that you can't write to them. And so, you know, you have this huge array of leaders and followers. And, you know, because it's so large, you know let's say it's like 10,000 machines, and if a hard drive lasts three years, then I mean, you could do the math, but like there's hard.

0:30:53.840 --> 0:32:47.180
<v B>Drives failing all the time in these machines, and or there's other sorts of failures happening. And so, you know, you could have situations where even leaders fail, and now new leaders have to be elected. So imagine, you know, you expect to have three leaders. One of the leaders has failed, and so you now need to make one of your followers promoted to be a leader. All the followers are running the exact same code. You know how do you do that? And if you could—you could imagine like heuristics, like okay, let's have everyone report their IP address and pick the lowest one or something like that. But any type of heuristic like that will cause you to have sort of catastrophic failures. Like imagine a subnet goes down, and now it's like really confusing for everybody. And so someone a long time ago came up with Paxos, and it's a way for machines to negotiate with each other without a lot of a priori information. And to try and—so eventually, you know there is something that breaks ties. It could be as simple as just like the fact that the processors are not exactly doing the same thing, and they're not deterministic, right? So there's a way to break ties, but more importantly, there's a way to achieve consensus. So like once you have some way that ties are broken, can you use this tie-breaking to eventually pick one single leader when you know all the followers raise their hand at the same time and say, 'I could do it,' right? And so, you know, Paxos is very, very difficult to sort of explain intuitively. And then there was Zookeeper, which is an Apache project, which dealt with some of the like Paxos is an academic thing, but then in practice, just like anything in practice, there's real-world challenges that you have to face. And so Zookeeper was a project that was.

0:32:47.180 --> 0:33:44.474
<v B>Built to do this leader election and all of that distributed consensus. But that also became extremely complicated, and as Yahoo and Google and these big companies were finding issues, they were patching them in. And then maybe like they would fix a problem that required that—that meant like these 17 other patches aren't needed anymore, but they wouldn't get cleaned out, and it just became very bloated. So someone wrote Raft, and I don't actually remember where Raft came from, but Raft is like kind of a rewrite of, you know, distributed consensus. It's very clean, very elegant. And what I'm linking to here is a really nice explanation of Raft, you know how it works and the principles behind it. And it has these cool infographics where it shows how, you know, okay, this leader dies, and it represents everything with these little dots. Um so this dot went away, and now these other dots, you know need to become—need to pick a leader. And it kind of goes through how all of.

0:33:45.385 --> 0:34:32.939
<v A>That works. I think if you when you start to think like you were kind of saying it's actually a little bit mind-blowing, like when you think about if I have 10,000 computers like trying to roughly mirror the state of each other and like decide what information is correct, and you start dealing with even the speed of light delays from one location to another data center, you know halfway across the world. And of course, like it isn't strictly just speed of light relative to the speed of a hard drive or whatever or a RAM, and then start thinking like you were saying just like power outages or whatever, what is it neutrino strikes or whatever? You always, you know, like getting a bit flipped and RAM to—um, like when you increase your exposure like that, the problem is just so much more complicated.

0:34:33.529 --> 0:34:55.939
<v B>Yeah, it's totally mind-blowing. And like yeah, I mean, all these leader, all these followers—they're all you know the same. They're probably even running the same hardware, right? So they all just raise their hand exactly the same time and say, 'Oh, we saw the leader died.' You know, 'I'll be the next leader.' And it's like, well, what do you do with that at the scale of 10,000? Right? I mean, it's easy.

0:34:56.108 --> 0:35:04.022
<v A>Dude, I mean, everyone always says the thing you're saying like 'pick the lowest,' 'pick the lowest one.' Well, pick the first person who raised their hand. It's like, well, how do you even define 'first'? Like.

0:35:04.022 --> 0:35:17.978
<v B>Yeah, like who is going to be the referee there? If like once as soon as you have a referee who can define 'first,' then you've already solved the problem. But like yeah, you have to. So yeah, yeah, it's like now you have two problems. You.

0:35:17.978 --> 0:36:25.394
<v A>Just have one god machine that sits somewhere in a like, you know, special housing that just guarantees to be up. But what happens on Sundays? Then yeah. Okay, I mean mainframes—people joke, but like that's like banks and mainframes and stuff is in part because of trying to get around this what they call like big iron, right? It's just like one really big powerful machine that you just four-way redundancy on every part inside. And it sounds like in some ways silly because things like Google, Facebook, whatever went to commodity hardware roughly, but like there are cases if you're like transactions per second are low enough that maybe it just makes sense to have like one or two really, really like a leader/follower, you know config, and the one machine just has an uptime that is like so guaranteed. And you restart it, like you said, maybe on Sundays when the bank is closed. Like every Sunday during this hour you restart the machine, and the—the you know follower does the failover test, and then it goes down, you know, the next hour or whatever, and you have like a team of people dedicated to even those two machines alive. Yeah.

0:36:26.254 --> 0:36:51.859
<v B>Yeah, I mean that's definitely a real thing. I think even today there's companies that run that way, and there's nothing wrong with that. I think given as you said if the QPS is low enough it saves a lot of hassle. But yeah, the Rafting is totally mind-blowing. Definitely check it out. I've always been fascinated by it. I haven't had a reason to implement it myself, but it's always been a fascination, and it's very—it's also as I said with Patrick's article, it's like super fun to watch the animations.

0:36:51.860 --> 0:38:05.597
<v A>I do not have a good segue, so we're just hard cutting to my article, which is The Mathematics of 2048. So there's more to the article title, but I don't want to spoil it yet. So 2048 was a game that enjoyed—I don't want to call it 'brief,' because someone will say like, 'Oh no, I still play it.' It's the best game ever. But you have a grid of oh man, I don't even five by five, I think it was. It's sort of like five by five, and then there are tiles that have a number on them. So you start with like maybe the number one and the number one somewhere else in this five by five grid, and then you slide a direction to the right, up, down, or left—I mean, that's each of the four directions. And all of the tiles slide to the side of the grid that you swiped to. So like one tile is in the bottom left and one tile is in the upper right, and you swipe right. Then that bottom left tile is going to slide to the right side just like the other one. And then if two tiles that are currently the same number crash into each other, they merge and become double that number. So if you have to be consecutive or how does that work? No, they have to be the same number. So like if you have a one and a one and you crash them into each other, they'll become a two.

0:38:05.749 --> 0:38:07.960
<v B>But like what if there's another number in between the one?

0:38:07.960 --> 0:40:03.500
<v A>Yeah. So then if there's like a two and a one and then a two, and you slide down like stacked vertically, and you slide down, you'll just have two, one, two at the bottom of the screen. Got it? So if you could somehow get the one to slide away, then you could crash the two and two together. Got it? I probably butchered that, but—but you get it. I get it. Okay. And so there's of course like a bunch of descriptions of how you would um like how new tiles spawn. So sometimes when you swipe, new tiles will spawn on the screen, and they spawn with like a given distribution. And so like it's not always going to be—it's most likely to be a one, a little less likely to be a two, a little less likely to be a four. And so numbers are going to spawn on, and the idea is to keep collapsing down until you have a tile which is 2048. So 2048 is what 11 doublings from one. And wait, now Jason's count that sounds right? So 256 is eight, right? Then 512 is nine, and 1024 is—yeah, you got it, right, man. That was fast. Okay. So 2^4 is 16 doublings, right? Uh so you need to keep doubling and doubling, but each doubling requires two inputs, right? So if you think about it, if you only ever got ones, you would need to eventually have like collapsed 2048 ones together. It's a lot, right? That's a lot of collapsing you would need to do. But what ends up happening is like we—like Jason was already asking about if you have like a two and then one and a two stacked on top of each other, like you really want to collapse the twos, but maybe you don't because maybe actually you're going to collapse that one into a two and you want to collapse it into one of the other twos to make a four. So when and how you have to manage the board. So even if it's—you don't just always greedily take the, you know, highest number or the lowest number, like you need a bit of strategy because the more the board starts to fill up with this, you know—

0:40:03.500 --> 0:40:09.629
<v A>new tiles generating, it becomes too crowded and then eventually you lose, right? Normally without getting to 2048. Well,

0:40:10.320 --> 0:40:14.380
<v B>I see. So if the board gets full up and you can't collapse anything, then you're—

0:40:14.995 --> 0:42:02.775
<v A>done? Yes, that's right. Got it. Then you lose. And so of course not every game is winnable, I don't think or at least not with every decision. And so you kind of don't know what's going to happen. So you play and you just kind of mindlessly swipe right. So then the question is like what's a good strategy? So um, you know when you're playing. So in a game like Tic-Tac-Toe, right? Like the user—the other person can put in one of the nine spaces. So you can kind of like—you actually saw a T-shirt with it on, like you can have a pictorial diagram of like the optimal Tic-Tac-Toe strategy in like—I don't know—a very few states that, you know, each you only have X or O. It's your turn, then their turn. They can only go in so many places. The branching factor is really low. You can actually represent the whole tree in like a very small amount of things, which is like if you start in the upper left, basically, and then no matter where they play, you can like predeterminately know the next state. But then what about if you listen to people talking about like AlphaGo, where the number of branching factors really high? Their mistakes is gigantically big. There's—there's a whole, you know, another class of problems. So for this 2048 article, the reason why I have it here is not for building general game AI, but it's talking about something which I was hearing a lot about as you start hearing about machine learning, artificial intelligence, depending on your feeling about that, but is—is Hidden Markov Models and Markov Decision Processes, which is—I'm gonna butcher this. Jason's gonna tell me I'm wrong, but my takeaway from reading this article, which the reason I bothered to read it was because I keep hearing about these MDPs, MDPs, you know, trying to figure out what you're going to do and this modeling is that—for this game as I described. First of all, there's this random part, right? It isn't like you battling another person. The game is just randomly generating what happens next.

0:42:02.843 --> 0:42:15.972
<v B>It's like Sudoku, right? Oh no, but it's not because—when you swipe things, I've never played this game, so I'm just trying to piece it together. When you swipe things, there's empty space there. What happens? Like more numbers go in that space?

0:42:15.972 --> 0:44:11.299
<v A>Yes. So the—the game will roll some dice and decide, you know, it'll generate a random number and decide where and what number to place there with some probability. Okay. Yeah. So you control your action, but you don't control the other person's action. It's not like the game is trying to beat you, right? It's just randomly happening. So you can't even apply really Game Theory and that like the opponent is like I can know what they're going to do because strategically they're going to do this. So each state you have a choice—you can swipe left, right, up, or down—and depending on what the game is going to do will determine if that was a good or bad thing. But that doesn't mean you just pick randomly. You can know that hey, I swipe up, the game state is this, the distribution is that the probability that that's a good move is, you know, 0.2 best move, and this other move is 0.4 best move. And the way you might try to do that is by basically marching the states forward, figuring out like if you're in a winning or losing state and then propagating it, you know, back to your state. So roughly I'm giving a high-level vision of without going into a full explanation of Markov Decision Processes because I'm no expert. But sometimes you'll end up in a state where you'll lose, and there may be a choice where no matter what you do, there's some probability of losing, but maybe you pick the one that minimizes that probability, right? And maybe there's a really good state you want the computer to give you. And so you want to like try to increase the likelihood that you'll get an improvement. So he starts with or she—I don't know—the article writer starts with a two-by-two grid and I think getting to 64 and then running this Markov Decision Process as a way of showing how this would happen in a—in a sort of much more bounded problem set where you can sort of reason about this, and then talk about how you would extrapolate it to the full game and to playing to 2048, where you may not be able to hold all possible game states in your memory at one time because it becomes too high. And how would you apply?

0:44:11.299 --> 0:44:31.950
<v A>Heuristics? How would this Markov Decision Process work? And just a really good introduction. So if you in your ramblings about the internet have come across Markov Decision Processes, which is related in a not way that I'm entitled to speak about Hidden Markov Models themselves, then you know this may be an article that is pretty interesting to you. Cool.

0:44:32.811 --> 0:45:19.791
<v B>Yeah. I mean, you did a really good job cover. So just like people don't know like that was my whole PhD was on MDPs and POMDPs and everything. And yeah, the article is super super interesting. Definitely check it out if you've played 2048. It's really cool to see something that you've played, you know, connect—connect this tech to something that you've played. It really like makes it real. But yeah, I think you nailed it. I think—it's, you could say that like maybe it's a partially observable MDP because you don't know what's coming next, but you can model it with an MDP. And as you said, it just means that sometimes you'll lose anyways just because you're unlucky, and that's okay. And you just kind of model that into the system. Okay? Well, I'm glad that.

0:45:19.791 --> 0:45:31.340
<v A>You reaffirming that? I like got a takeaway actually makes me pretty happy because that means maybe I'm advancing my—you never know, right? When it's a topic you don't understand, you read a thing, you're like, oh, I kind of get it. We don't know if you're right or wrong.

0:45:31.340 --> 0:45:46.640
<v B>Yeah, I know. I think you nailed it, man. So yeah, I've always had a big fascination with—with, you know, puzzles and games, and the way that they're solved. And so this kind of stuff definitely like scratches that itch. Definitely check out this article. It's really solid.

0:45:47.449 --> 0:45:50.672
<v A>I think it's time for our book of the show.

0:45:50.672 --> 0:47:47.599
<v B>Of the Show: My Book of the Show is a podcast. I'm totally cheating, but I've been binging on this podcast. It's called Manager Tools Podcast. You know, originally I found it through a literal search. I actually literally wanted tools to make me a better manager, but what I found instead was their interpretation of tools. They really mean like techniques or skills or advice. And so while I didn't get any literal tools out of this podcast that I could use to make me more efficient, I'm learning a ton of information, and I would recommend this to anybody. I mean not just managers, like anyone who is working in a job or plans to have any job at all should check out this podcast. You know, I have a lot of these situations are things that I've had in the past, and it's some of these are lessons I learned the hard way, and they kind of explain it in so much better detail and candor. Candor. Some of these things are things that I was doing—I think I'm going to change some of them. Are some of the things they talk about are reaffirming things that I felt like were good ideas. But in general, it talks all about being a leader, and I think it's they do a lot of talk about project planning, which is our topic today, so it's also a good reference there. And I was listening to an episode today, and one thing that really was funny was they were talking about sort of how do you delegate? So imagine you have a giant project that you're leading, and you need help with that project, right? You could be a manager, and you're given a project with large scope. You could be an engineer, you could be just a high school or a college student, and you have some team project that you're working on where you're trying to get help with other people, and it talks about you.

0:47:48.527 --> 0:48:02.584
<v B>know how do you sort of share that responsibility? One of the funny things is they said that one of the people that they talked to said, 'Oh, I wish I was CEO because then I wouldn't have any direct responsibility.' And

0:48:05.959 --> 0:49:09.240
<v B>I think the idea there was like if you're the CEO, you just tell people what to do, and then when you tell them what to do, now it's their responsibility. And most people I think don't could see where that's going, but just to make it explicit, that doesn't work that way. When you ask someone for help, what you're doing is you're just doubling the responsibility. Responsibility. Now you're responsible and that person's responsible. But it's necessary because you can't do everything by yourself. But it's not—you're not actually reducing any responsibility by becoming a leader. It doesn't work that way. That was a really funny thing that came up in today's episode of their show, but definitely check it out. I've been having a blast listening to it. The people have good candor. They're ex-military people, and so they speak like ex-military people, and so I kind of enjoy it. It's kind of gruff and like straight to the point and stuff, which is that is I think kind of good for easy for me to listen to, but give it a listen. I've been binging on it. I've been really.

0:49:10.422 --> 0:49:36.375
<v A>Enjoying it. My Book of the Show is also not a book, but it is print, so I guess it counts. More pages. It's Make Magazine. You know, I'm pretty sure that I probably have this like as a reference or something on here before, but people probably at this point have heard or seen Make Magazine. Yeah, it used to be like at Barnes & Noble and stuff. It might still be—right? I think it still is. I mean when you if you ever go to those stores, yeah, if Barnes & Noble

0:49:36.375 --> 0:49:37.911
<v B>even exists. I mean, I don't know.

0:49:38.704 --> 0:51:05.205
<v A>goes through ebbs and flows of like, I guess, popularity. You know, there was like the really big boom of like cosplaying and hobby stuff, like when the internet was still in its infancy, and like Instructables was really huge. I remember—oh yeah, I remember that. Yeah, I mean it probably still is around. I mean, I know it is around. I think it got bought by a company anyways, so you know this thing has become went from like the first making it big to like actually even though it was a niche magazine, it became too generic, and more niche magazines that were like hobbyist electronics, hobbyist cosplay, making, hobbyist CNC—like all those things became their own topics with enough ability for people to look into them that you know maybe it sort of robbed some of the like Make Magazines. Yeah, kind of shine, but I always thought that although there's been very few projects I've ever done out of Make Magazine, always appreciate that like they go through document describe and have a way of covering a wide variety of things from like crazy dangerous like Tesla coil making to like you know, hey, here's an air pressure—you know, soda bottle rocket you can make in your backyard. And I just still subscribe to it. I even keep the magazines because I feel like having it in hard copy on is just cool. Oh, you have the physical magazines, like recent ones? Oh yeah, yeah, yeah, yeah. Oh, I would show people, but we're only audio right behind me. I'm looking right.

0:51:05.205 --> 0:51:07.855
<v B>now, and I'm seeing thousands. I'm just kidding. I don't know.

0:51:09.160 --> 0:51:18.587
<v A>that I've kept. Everyone, but you know, I keep them always like, 'Oh, there's something in here I want to make or reference or look at.' It's just good. I don't know. Maybe I'm an old person now, but it's nostalgic. No, I think.

0:51:18.587 --> 0:51:22.553
<v B>It's kind of like the NAS, right? It's satisfying to just have it.

0:51:22.688 --> 0:51:45.570
<v A>Yeah, exactly. And you know, just physically thumbing through it when you're on an airplane or whatever where it's still like electronics is a bit of a chore, although that's even becoming less and less. I kind of used to look forward to going on an airplane and not being allowed to use electronics; I catch up on reading. But now like that's not even a thing—well, not going on airplanes, but also airplanes that allow your electronics and having well, yeah, that's.

0:51:45.570 --> 0:52:01.703
<v B>true. You know what I've done now is I've put my phone in even when the airplane has internet, I still put my phone in Airplane Mode, you know, without the Wi-Fi, and that way it's like I'm at least unplugged and I can won't be able to use the internet.

0:52:01.720 --> 0:52:18.207
<v A>But also the thing I'll recommend is like you know of course they have a blog lots of articles. I appreciate what they do these stuff, so I think I've also sort of tapered down or even gone away to some extent, especially now with COVID, but they used to have Maker Fairs where people would come and just celebrate Make. That was always really cool.

0:52:18.207 --> 0:52:19.185
<v B>You ever gone to?

0:52:19.185 --> 0:53:21.707
<v A>That? Yeah, I have. Yeah, yeah, I went to the one in the Bay Area, and that was probably three years ago. It was super fun. I always wanted to go back, and then I wasn't able to go the next year, and I think it rained, and then the next year was COVID or whatever. So yeah, I don't think that happened. And then I think they've gone through some sort of restructuring. I didn't follow it exactly. The other thing I'll say is, you know, if you have other people who are peripherally interested, it may be very hard to spam them a link or convince them to go to a website or watch a YouTube video. Or if you have children, right? Or whatever, like having the magazine around and someone picking it up and just looking at it, and like, you know, the sort of lower commitment of that, and then becoming intrigued. You know, my kids call it the 'Robot Magazine.' They're like, 'Oh, look at the Robot Magazine!' Yeah, look at it. And I think, you know, just having that stuff laying around where you can sort of bump across it as opposed to your, you know, normal kind of filter bubble for maybe other people even if yourself, you know, could find it and look for it. There's some value to that anyways. But I appreciate what, you know, Make Magazine sort of has done and the influence it's had.

0:53:22.433 --> 0:55:20.860
<v B>Very cool, man. I kind of on a related note, I actually learned to solder. So, I've soldered. Yeah, I've soldered things before, but usually soldering to me was like I would just turn the temperature of the soldering iron way too hot. This was the other thing. I bought the soldering iron from AliExpress, and it didn't tell me Celsius versus Fahrenheit, and I just assumed Fahrenheit being an American, it was actually Celsius. I was like, 'Man, it's like so freaking hot.' And so that was a big problem. But then also I would basically just end up with this huge glob of—was it flux? I guess no solder or solder? Okay, I don't know. But just and and I've never had to solder something on a PCB before, so I've never had to be that precise. Anyways, it was usually just repairing like, you know, like my son pulled a plug out of the wall too hard or something. Yeah. So like you didn't have to, but I know. But just this huge glob of metal like and you just be this giant like—a puff marshmallow metal man just hanging off the end of everything, and that was my way of fixing things. But I bought a tiny speaker which I'm using for an Arduino project, for an Arduino Halloween project, which we did. And as someone who doesn't know how to solder, I was like, 'Well, I'll get the one where I can screw, you know? Yeah, like it has like a screw when you screw it puts two plates together. It squeezes the wire—yeah, terminal screw terminal. There you go.' But the screw, the wire, the speaker was smaller than I expected, and the wire was smaller than I expected, and it wouldn't stay in the screw terminal. And I flipped the PCB over, and there was like contact points there that you could solder to, and I was like, 'Okay, I rolled up my sleeves. Like I'm gonna learn how to solder for real, like a real like a professional solder.' Oh, professional solder? Okay. Yeah, well, I'm gonna try. I'm gonna—I'm gonna at least get to the amateur level. And so you know, it just took me a lot of practice. And and yeah, I got it to where like

0:55:20.860 --> 0:55:28.260
<v B>I had this really nice shape, and it was like also holding the speaker wire, you know, pretty well. So,

0:55:28.260 --> 0:55:48.452
<v A>I mean, I will warn you, like I assume the speaker wire was probably stranded and not solid, and soldering stranded wire is much harder than solid wire, and soldering wire in general is harder than soldering like actual components, like resistors, diodes, you know, through-components. So yeah, you didn't take on the easiest thing for sure. Yeah.

0:55:48.959 --> 0:56:27.029
<v B>I mean, it was just thrust on me, right? But but yeah, I mean, I also—yeah, I was worried that one of the strands would, you know, cross over and short circuit. Um, but that hasn't happened yet. So I was so satisfied. I did all that work, and then I started the Arduino up, and it was probably even an Instructables site, but it was a project where it would play like the Mac boot-up sound, like that, you know, and it worked. And like it came out of the speaker, and I was like, 'Oh, it felt so satisfied.' It was unbelievably satisfying to do that. And then I looked around at like all the other really terrible soldering jobs, and I'm like, 'One day I'm gonna—I'm gonna fix these.' Yeah.

0:56:27.197 --> 0:56:45.507
<v A>It does. Wait till you learn about doing surface mount soldering with like 0.1 millimeter pitch, like pieces of pins between things, and so those people get crazy. Oh man, I can't even imagine. But then of course they also use like ovens to basically melt the solder and the pieces together in one go.

0:56:45.726 --> 0:56:53.505
<v B>Oh, okay. Yeah. Yeah. One thing I realized is I'll need some kind of—I think they call it 'helping hands,' but it's like these hands with a magnifying

0:56:53.505 --> 0:56:54.872
<v A>glass alligator clips on them. Yeah. Yeah.

0:56:54.974 --> 0:56:55.800
<v B>Right. Yeah. Also the

0:56:56.948 --> 0:57:38.500
<v A>trick with the wire while we're at it, and then we can move on is get some—is they call it pre-tinning the wire? So if you twist the strands together, right, like just twist them, just like one wire's strands, like all together. And then take your soldering gun and just apply solder only to the wire, and then cut it to the length you want. And then what happens is you have basically already soldered on the wire, solder on the pad, so you just have to touch them together and briefly touch the iron—the soldering iron—to both of them, and then the solder will flow together. And the solder more readily flows to itself than it flows to either of the other metals, and so you basically reduce the like time you have to spend sort of trying to get that to work.

0:57:38.984 --> 0:59:04.320
<v B>Oh, interesting. Very cool. All right. Well, in the interest of time, we'll—we'll go a little quicker here. We've had so many cool things to talk about, but we'll want to give time to the—to the task at hand. So my tool this show is Workflowy. This is very simple. It's a recursive Google Doc. So you know, you can write a Google Doc, or you can write a workflow. You write a document, and at some point in a document if you're doing something that involves planning or something, at some point you're going to have a bulleted list—it's inevitable, right? It's like things to do or what have you. Anytime you create a bulleted list in Workflowy, you know, you can have a nested list, and you can actually collapse the list. Um, and then if you tap on one of the bullets, it actually opens that bulleted list as like its own sub-document. Oh, and so that way you don't have this enormous massive bulleted list. It's like with all the levels, like instead you have, you know, maybe five bullets they're all collapsed, and when you tap one, it takes you straight to that, you know, it unfolds that in a new document. So the high level thing here is Workflowy. It's on desktop. It's on mobile, so it's on all the important platforms, and I've found it really, really useful in keeping track of stuff, I think even for project planning. I've found Workflowy to be super useful. Um, so I've used it for many, many different things. I highly

0:59:06.008 --> 0:59:07.965
<v B>Recommend it? Nice. Is it on your?

0:59:07.965 --> 1:00:18.233
<v A>Nas, uh, tie it all together. Next up mine is GitHub Desktop. I don't always use GitHub or Git. Um, well, I should say I do use Git for our workflow at work, but I am not very good at it. I often find myself Googling how do you do this thing again? Yep. Um, GitHub Desktop, which if you have specifically if you're using a GitHub at all, or even if you're just—I think it works even if you're just doing it locally. The nice thing is that it's a GUI for the Git workflows, so it allows you to visually see some of the things, especially for me helpful if you get into more complex circumstances or rebasing and yeah, some things like not going quite right. I don't normally need it if I'm just doing, you know, `git commit -m check-in`. You know, I don't need, you know, GitHub Desktop to do that for me, but visualizing if I'm a—if I'm doing a refactor or a whole bunch of files are open, or I'm wanting to see something, right? I think it actually has been really nice, and I'm appreciative that they kind of took time to make that. So why is it GitHub? GitHub Desktop is what it's called, but

1:00:18.638 --> 1:00:25.540
<v B>Is it—is it called GitHub because they made it, or yes? Or okay, got it. So it's for any Git? It's just made by GitHub?

1:00:25.540 --> 1:00:55.307
<v A>You know, I'm gonna assume it is, but I actually don't know. But yeah, I mean if a lot of people for hobby projects are using, of course, like open public GitHub repositories, and so you know, I still think it has use even for there. Um, but yeah, being able to visualize this if you have a GitHub workflow, and I think it's super valuable for a lot of those more complex things that really help by being visual. Yeah.

1:00:56.303 --> 1:01:03.620
<v B>It's—I think it has extra features if you're using a GitHub Git repo, but it works for regular Git as well.

1:01:05.060 --> 1:01:14.730
<v A>I also learned about some really powerful like Git tooling, and then it required me to first learn Emacs, and so I failed. And this is my—this is my—

1:01:17.110 --> 1:01:35.858
<v B>Alternative. Oh man, poor Emacs. I used to use Emacs every single day, all the time, and now it's like Visual Studio Code just really is just so nice. It's very hard to match that to the convenience and the integration with the OS. It is just a lot nicer, which is a shame for Emacs, all.

1:01:37.360 --> 1:01:40.100
<v A>Right. Well, I think it's time to plan our projects.

1:01:41.309 --> 1:01:51.569
<v B>That's right, project planning. So what are different types of tropes? Like there's a lot of these like Waterfall and Agile, and yeah, when

1:01:52.142 --> 1:03:46.900
<v A>We were preparing for the show Jason, and we're talking about this, which is a whole other subtopic. First of all, you know, this is by no means expert, and we're actually going to talk about these briefly, and then not talk about them again and talk about more practical thoughtful common ways of planning projects. But there are rigorous approaches to this process, and in fact, if you are—which I suspect most people are of a software engineer inclination or a product or project manager who regularly interacts with this—you will probably be more at home with what we're going to talk about. If your profession is managing projects, you will probably find this appalling. So I apologize. But you know, there the traditional way people kind of build software is, I guess you call it Waterfall. You do step one, you get it kind of done, you get your thing, then that flows into step two, then more work is done, right? You flow into step three, and if you found a problem or issue, you would go back to some previous step and sort of start over. And then once you got to the end of your Waterfall, your product would be built. Right? People realize that was pretty inflexible—that requirements change, that there are issues. Then really popular was the Agile method where the as the name implies, the idea was to be more agile to sort of get something up and working and then sort of find the next bit to be added, the next feature to be added, and work in smaller units of time so you could get feedback from your customer. And I think that had a lot of really positive impacts on the industry. I think there's a lot of cases where maybe some of the assumptions about how you could or couldn't get feedback and how long stuff would take—like there were adaptations of the Agile method, and maybe some people took it to be more of a stricture than even the originators intended it to be, and so it got its own sort of like, you know, stigma. But what I would say is at least in the people I work with in the domains I work with, most people fall into some sort of hybrid approach.

1:03:46.900 --> 1:04:30.819
<v A>Definitely not a very rigorous, you know, the Agile methodology, you know, with the full Scrum, you know, all that stuff, but definitely not the original Waterfall, you know, with its strict representation. And I think there are uses for both and important features of both, but most of the stuff that I see happening falls kind of like somewhere in the middle with some hybrid practical adaptation of learnings from both. But I also will say that in the industry and current part of the industry I work in that there is project planning is needed because we always need organization, but the interaction with the customer isn't a contractual thing where you would definitely want to make sure that your organization was such that it can be communicated externally.

1:04:31.380 --> 1:06:26.820
<v B>Yeah, I totally agree. I mean, I think Patrick and I both are in a similar position where we work on longer-term projects that don't have a lot of like tight SLAs where there's someone you know someone files an issue and you have 24 hours to respond to it. Yeah, type thing. So it's going to have that bent to it, but I think that yeah, Patrick's—I think Patrick's totally right. I mean, I think you always have a Waterfall in a sense because you always want to accomplish things that like you want to scaffold, like you want to build something and then you want the next thing to be derivative. But then at the same time, you want to be able to respond to the environment which changes massively. You know, someone might write a research paper that scoops your idea, and now you have to pivot, or they write a paper that causes you to have to change the way that you want to go about doing something. And so you have to constantly adapt to that, and so you need some of those Agile methods as well. So that you know there's a lot of different concerns. I mean, one is, you know, you adapted so many times at the end it's really hard to know what you really did, so you want to keep track of all of those changes correctly. And ultimately, you give people like this security that they're working on that they're marching towards a goal even when things are really erratic. I mean, that's what Agile is really good at. So one thing, no matter whether you choose one of these approaches or you do a hybrid or you go your own route, there's going to be several different factors of project planning that are always going to come up in every plan. You know, the first thing is headcount, so how many people or how many portions of people's time is dedicated to this project. The second one is is going to be scope, right? Now typically for a project—well, second one is going to be scope, and the third one is going to be time, right? And there's this famous triangle. It's like a headcount, scope, and

1:06:26.820 --> 1:07:34.739
<v B>Time, and you can only control two of those. So if you want things done quicker, you can add more people, or if you want things done quicker, you can reduce the scope. But if you're not willing to do either of those things, you can't get things done quicker. Like once you've solidified two of those three points in that triangle, then the third one is automatically decided for you. So I guess diving into all three of these. Um your headcount is relatively straightforward, I think. Where headcount gets more complicated is its relationship to the other two. So being able to answer at the margin and say, 'Okay, you know, if we hired another person, then X would happen.' Right? Then we would have X more scope or we would be done this many weeks quicker. And so that's what makes the headcount part kind of interesting—similar to, you know, answering these counterfactuals. You're also prioritizing. So you can answer counterfactuals the other direction, you know, if I took a person off this project, what would happen? And so that's I think what makes the headcount part not just an accounting thing.

1:07:35.734 --> 1:08:06.531
<v A>I think also the tricky part about how to count—which everyone knows but everyone always forgets—is like Jason is saying, 'Like if I add if I have one person and I add another person, I can do two times scope or half the time.' Oh no. Like no, no, no, that's definitely not how it works. Yeah, no, it's not even an equation. It really depends on the work, and sometimes you don't know when you're getting started. Like, can you usually segment this work? What are the communication barriers? And I think there's just so many nuances to that, but it's something I see that everyone forgets constantly.

1:08:07.544 --> 1:08:53.460
<v B>Yep. And also I think that you know the teams are usually heterogeneous, right? And so you know we had a situation where we ended up with way more research scientists than engineers on the team for a portion, and so there were things that couldn't get done that were high priority even though we had the headcount, but we didn't have enough of the right type of headcount. So that becomes an issue as well. And then even there's some things that you know you have to look at the team—there's some things that people just don't want to do—and so that becomes part of it too, right? So I think all these things make headcount a little more complicated, but I would say it's the simplest of the three. And for that, I've generally just used an Excel spreadsheet. What about you, Patrick? What tool do you use for headcount?

1:08:53.460 --> 1:09:35.108
<v A>Planning nothing so formal. I don't know. That it's always been, you know, I guess not one monolithic project where we brought people on. It was always—we have a variety of projects, and the question kind of like you're saying to management was like, 'If I could get another person, I could keep this up or take on more work.' If you took a person away, please don't, then you know we would not be able to do these things. And so it's never required; there's always been—I guess at least for us—like a pretty hard constraint on getting new people. So it was always make the most with what we have, and then occasionally you were successful enough that people wanted more of something, and then basically you were offered like, 'Would it be useful to have another person?' Yep. Yeah.

1:09:36.610 --> 1:09:38.580
<v A>And then the answer was already kind of a given. Yes.

1:09:39.620 --> 1:11:26.550
<v B>Yeah, yeah, I totally agree. Yeah. So I think for headcount planning you don't need anything too fancy. I think just a spreadsheet or a Google Doc is more than enough. So the second one is scope. Now, for scope, this is where I think having some kind of task reporting tool is really important because—because scope usually is a set of work items or things that you could be doing and you want to track those things. So what I've used in the past has been some variation of Kanban boards. So Kanban is basically you have, and I'm probably going to butcher this too, but you have different categories. You have one category of things that you know we want to work on or things that we're going to work on, but we haven't got to yet, but they're imminent—things that you're working on, things that are done. And then you have this other category called like the 'ice box,' where it's these are things that we haven't committed to working on them yet, but there are ideas that you know we've. So usually things get put in the ice box; they're not created in the ice box, right? And so you know most of my scope planning has followed along those lines. And then with each of these items, you'd want to assign some type of priority. So again answering that question: if somebody leaves, you know what's the item you would kick out? You know, definitely would be the constraints notwithstanding, it would be the lowest priority item. And if people join, you know what things from the ice box could we bring and start working on? Yeah, that's—that's effectively it goes. The issue is is people are constantly adding new things. If you're planning six months in advance, you know, halfway through that plan there's a hundred different things that have been added. So there's a scope creep that you have to deal with.

1:11:27.158 --> 1:13:25.140
<v A>I guess I'll try to tackle the third one, and then maybe since it was yours, you can follow up with whatever I missed. But when we talk about time, I think you were mentioning right like this is a triangle. So if you have headcount and scope, then sort of the question is, 'Okay, well fine, time is constrained.' But what is the time going to be? And I'll call it here that for me at least I find it very difficult for people to remember the distinction between the number of hours a person can work on the project versus what calendar date the project will be delivered on. And so people will say, 'Oh, you know, you ask an engineer how long would it take you to do this thing?' And I'll say, 'Oh, it takes me six hours.' Like, okay, well it's cool. I'll put it down for you to have tomorrow.' And it's like, 'Well, no, no, that's not how that works. Like, I'm not going to work six hours until next week or until these five dependencies come in.' And so saying time is correct, but yeah, a little bit ambiguous. And then also, you know, when we talk about—you've had scope and then now you say time—so you just try to define the feature well, but there's always variability to how long it's going to take to implement that feature. And so you know people do 'Oh, it's T-shirt sizing. Is it a small, medium, or large?' You know, project, and you can take those approaches and try to roll them up, give them points—say the points don't matter—but then someone has a rubric for how many points equals, you know, how many hours. Or it always kind of ends up that way. And an interesting discussion I kind of want to try is if you sequence out all the things that you need to do and your estimate for not just how long you think they would take on average, but how sure you are about that time. So in other words, there's some uncertainty on each. Then what you could kind of roll up and get the minimum and maximum, right? So if something takes one week plus or minus a day, and then something else takes two weeks plus or minus five days, you could roll all those up and all those plus or minuses, and you get some absurd I'll finish somewhere.

1:13:25.140 --> 1:14:23.114
<v A>Between one month and one year, right? Like you're gonna it's going to be areas not super useful. Or what you could do, which I saw someone saying is sort of place a Monte Carlo, you know, drawing from those distributions and actually show like, 'Oh, the bulk if you assume that they're normally distributed or not.' And then you drew each of these sequential things and did a stack up, and you're randomly choosing and then looked at the outcomes. What you'll find is 95% of the time you're going to finish, you know, around six months plus or minus a week, right? And then that way you can kind of communicate what the spread of that distribution kind of looks like, what the shape looks like, not just the extent. And then people can kind of internalize like, 'Oh, as it gets closer, you would expect it to narrow in.' And you know, hey, that they landed two weeks out from what they said is actually perfectly reasonable. They did a good job. I've never seen someone be willing to play this game, but it sounded interesting. Yeah.

1:14:24.413 --> 1:16:23.804
<v B>I mean, no, it makes sense. I mean, I think the high level thing is to definitely record these kind of interactions so if you're chronically over-budgeting or under-budgeting, you want to be able to adapt to that. You don't want to just like continue to sort of recursively fall victim to like your own hallucinations. It's like you over budget and then be kind of forgot you over budgeted, and then well, you know nobody got fired, and then next half like you double the over-budget. Right? So you want to actually have that accounting so you can say, 'Oh, no, I actually thought we were going to get a lot more done this half,' and I need to sort of realize that and pivot for next time. Another thing that's really important, you alluded to this with time, is the dependencies, right? So if something's going to take a day but you're waiting on another team, then it's going to take a day plus however long that team takes to do that thing that you're waiting on. And that could be a month, it could be a year, right? And so for time tracking, for project time tracking, it's good to use a Gantt chart, which—a Gantt chart, if you haven't seen it, is a way of representing sort of a graph of events. And so the events that depend on other ones start when those events end. And so the way the Gantt chart works is, you know, anything that can be done right away just starts at time T equals zero. And then when those things end, the new things that are now possible start when those things end. And so you can kind of see, you know, if you had—the way the Gantt chart works is, you know, if you had effectively infinite headcount and your goal is to just like go through these items taking however long they take, this is how long the whole thing is going to take. And some things that might only take a little bit of time, they might be really tiny intervals on this Gantt chart, but they might be way out into the future because they depend on so many other things. So yeah, I mean, I think.

1:16:25.300 --> 1:17:42.407
<v B>The timing part of project planning might be the most important because you know especially if other teams—you know, let's say another team—let's just see if a project you think is going to take three months and your whole project plan is six months, but it depends on something, and then that thing comes four months late. Well, now you know in advance um that you're going to be late. Like, you know, that you can't get that done in time because you weren't able to start at the right time. Just kind of a meta point here, but in my opinion, you always want to announce your failures as soon as possible. Yes, that's yeah. Okay, you agree with me on this because this is my opinion on it. I haven't actually asked anybody else's opinion on this yet, but yeah. I mean if something is going to fail two months from now and you know it, you want to—I mean not announce the whole world like write an email to everyone at company, 'Hey, I'm a failure.' Like that's not how it works. Like you want to tell like the stakeholders like this: 'You know, it's six months out, and it's I'm already telling you it's not going to happen,' and this is why. You want to do that quickly. And project planning, especially a living document, will give you that information when you need it. Yeah, I mean.

1:17:42.779 --> 1:18:31.700
<v A>I think there's a whole thing we could get into here that talks about like risk and the critical path. And we're like really running out of time, so we have to zip through these things. But I mean, I think what you're saying is exactly right, Jason, that you can't know what parts you should decompose or de-risk or bring forward earlier parallelize until you sort of see like what the transition of features you need to go through that is going to take longest and therefore determine. And also if you run ahead of schedule, which seems to never happen, then like yeah, good luck else can move into the critical path that wasn't before or something stretches longer. You need to know when it moves from off to on the critical path at what time delay. And so a Gantt chart is really in some ways underutilized—in other words, overly prescriptive in some cases—but there is a balance there where it's a very useful tool.

1:18:32.740 --> 1:20:32.019
<v B>Yeah, I guess to wrap this up, a couple of things. One thing is don't get too caught up on tools. When I started—I mean, I was looking at the Manager Tools podcast, and what I realized was the tools actually aren't that important. Like you can use a spreadsheet, you can write it by hand in a notebook, and the tools will help, but unless you're project planning all day as your job, if you're spending let's say five hours a week or ten hours a week project planning, the tools aren't going to shave that much time off of those five or ten hours, right? So don't worry too much about the tools. It's really about building those processes and gaining that experience. One last bit about project planning is to be cognizant of the time scale and recognize that all three of these scales I'm going to mention are important for different reasons. So you know in the short term—let's say, you know, two weeks or a month ahead—you want to have very clear kind of work packages so you know people are being productive, you know people aren't frustrated if someone's overwhelmed that, you know about that as well. And so that's what we call the Agile would call those sprints, right? But effectively, you think of it as like the short term—you know, a couple weeks to a month. You want to have in the medium term, let's say six months, you want to have milestones, or maybe a year you want to have milestones and you want to be able to have sort of a state of the union where you kind of reflect and say, 'Okay, in the past six months, you know I have our team has done these things,' and then the next six months we're going to do these other things. And you want to really broadcast that and announce that and make that part of the sort of ethos of your team. And so that's in the medium term. Now the long term is looking out maybe three years, four years, and you might say, 'Well, why do I even need a long-term vision?' Especially if you're doing let's say research or you know you're.

1:20:32.019 --> 1:22:29.620
<v B>working on some or you're doing some project that's in maintenance mode. Like why do you need a three-year, four-year vision? And I think the answer is because ultimately your project planning and your sort of culture will start to kind of blend together. And you're setting that long-term vision will also kind of set the kind of culture and the kind of environment that you're going to have on your in your project or on your team. And so even if your long-term vision, it might be hard to say three years from now, you know what research are we going to do? Like practically speaking, there's no way to know that. You're really going to use that long-term vision to describe kind of your overall philosophy and sort of delusions of grandeur that you can create about the future where you want it to go. And so depending on how you structure that, it will kind of guide the people who are interested in working on that project, right? I think a person put it to me in a really good way that basically said, 'You know, someone's going to take a sort of big risk on something that has a big reward.' And so that long-term vision is a way to sort of show that big reward to people so that they feel like they're jumping into something something that has a lot of mass. So I think all three of them are super important. Yeah, again don't worry too much about the tech, but we gave hopefully a lot of good tips here on how to do that effectively and how those things interplay. Nice. That was really fun. Cool. All right, everyone, thanks again for supporting the show on Patreon. We really appreciate it, and hope you all like the transcripts that we were able to add and the variety of other features that our producers have been putting together. Thanks again for listening, and we'll catch y'all in a couple weeks.

1:22:39.222 --> 1:22:41.348
<v A>Music by Eric Barndorler Programming

1:22:42.850 --> 1:23:08.100
<v B>Throwdown is distributed under a Creative Commons Attribution-ShareAlike 2.0 license. You're free to share, copy, distribute, transmit the work, to remix, adapt the work, but you must provide attribution to Patrick and I, and ShareAlike in kind.

