WEBVTT

0:00:15.792 --> 0:00:21.124
<v A>Programming Throwdown Episode 75: Arduino. Take it away, Patrick! Welcome.

0:00:22.052 --> 0:00:26.052
<v B>Back to a non-interview Programming Throwdown. I really like

0:00:26.052 --> 0:00:26.912
<v A>I really like

0:00:26.912 --> 0:00:46.352
<v B>the interview episodes. I always like talking to people. I just like talking—um, I like talking to people, but you know sometimes I was sitting down and you know picking my book of the show, and my permission, like I kind of miss doing this. Like, yeah, I've been too long without being able to talk about something I've read. So actually, I like a lot. I had a lot of books, and I had to

0:00:46.352 --> 0:01:06.147
<v A>pick one. I actually did too. Yeah. I mean, I—um, I don't know if I mentioned this in the past episode, but um Audible, you know, I—uh, uh, they reached out to me in like Christmas, and I don't know if you got the same thing I did, but they said you could pre-pay for the year, and it was significantly cheaper. Yeah, like almost like half price.

0:01:06.147 --> 0:01:07.176
<v B>Or something? Yeah. Yeah.

0:01:07.460 --> 0:01:22.009
<v A>It was—that's right. It was half price, and I got all 12 credits up front. And uh yeah, I jumped on that, and um yeah, and so I've been reading a ton of books. I pick one of them for Book of the Show, but yeah, we definitely have a backlog.

0:01:22.802 --> 0:02:06.120
<v B>I also did. I only—I did it a while before that, so I've actually had the 12 credits for a while. But oh, nice. Then you still get the access. This is—anyways, this is off topic, and you get the access to the sales for the thing, and my commute is just long enough that like I just really enjoy listening to books, and I really make through them quite quickly. Um, and so I have sort of a large catalog, but it the 12 credits like one per month isn't really sufficient. So then they have sales where they run stuff for you know two dollars or five dollars or buy one get one free. Oh, nice! Or something, and so they'll email you like, 'Oh, there's a sale going on,' and I end up almost always picking up like a book or two from the sale just to supplement the fact of you know having enough to listen to.

0:02:06.509 --> 0:02:08.179
<v A>Nice. Very cool. All right.

0:02:08.660 --> 0:03:08.580
<v B>But the first thing I want to talk about is something that I've actually talked with people about work—about when we interview people at work. This is a discussion that comes out, and so I thought it'd be interesting to sort of discuss it here what you have to say. I have some thoughts on it, I guess. Um, and then generally, you know, there won't be an authoritative answer here, but at least if people in the audience have this question, they'll have heard it. And that is: should programmers be expected to code in their free time? Uh, and I slightly changed it to working programmers because I think a lot of people listening who are our students are not paid to program or are doing some a different job and doing programming on the side only do programming in their free time. But if your job is a software engineer or that you're being paid to do programming, is it an expectation that you should have a project on the side or something where you regularly do code outside of work to show your passion for programming? So I'll let you go first, Jason, so I teed it up for you, and let's see where you

0:03:10.330 --> 0:03:10.971
<v A>All right. Drive.

0:03:10.971 --> 0:03:12.034
<v B>It's a tough question. So, okay.

0:03:12.034 --> 0:03:12.962
<v A>Here's what I'll say, just.

0:03:12.962 --> 0:03:14.211
<v B>As a preface to this, I think.

0:03:14.620 --> 0:05:09.460
<v A>That you know your job is is a kind of a gradient, right? So in other words, you kind of get what you put in. And hopefully, you know, obviously it's not an absolute, but in general, you get what you put in. And there isn't really like this binary, you know, like okay, you cross the threshold type thing. So I mean, I would say, you know, if people are doing some work on the side that's part of kind of building your brand. And so I feel like it's going to help you in the same ways. There's tons of things that could help you if you do—I don't know, speech coaching, it could help you, you know. But being when you say the word 'expected,' anytime you use words like expected, it's kind of breaking down like that view I have of work where it's sort of this bank account and you contribute more or less and you get returns. And it's turning it into more like, you know, what's the bare minimum I have to do? You know, like there's basically two paths in life, and how do I make sure I'm on the right path? And so, you know, I have kind of an issue with, I guess, the whole premise of the question. So, I would say, you know, no. I mean, you shouldn't really be expected to do anything. But it's also—I think it would help almost anybody. And so, you know, I guess the question is, do you want to get more out of your career? And then the second question is, based on what you're doing now, is this the best, you know, bang for your buck in terms of like, from what you're not already doing to better your career? Is this the next best thing? And I would say:

0:05:09.460 --> 0:05:41.547
<v A>Actually, yeah. I mean, the thing about this that's nice is typically it's some project that's not—I mean, almost certainly it's not related to your work. That's why you're allowed to do in your free time; you get full credit for it. You know, it's much more resume building than the code at work, which you generally can't share. So yeah, I mean, I don't think anyone should be expected to do this, but I would say this would probably be on my top 10 list of things to do to make your career go further. That's that's my two cents.

0:05:41.614 --> 0:06:15.600
<v B>So before I say my piece, I'll say it a different way: Would you, with not knowing anything else about a person's resume, or let's say we did a study where we gave you two resumes that happened to be identical except one of them had work that they did on the side—you know, in their free time—or pointed to a GitHub repo where they had some projects that they worked on actively, not not like in the past, but they're actively working on projects? Like how much more weight would you give that over the person who didn't have something, all else being?

0:06:16.680 --> 0:07:01.180
<v A>Equal. Yeah, I mean, probably a lot, personally. I mean, again, I mean if—if all else is equal, yeah, I mean, I would consider somebody who so there's two parts of it. One part is if the person has these side projects and they're actually popular that there's a variety of skills that make that happen, right? I mean, if someone just took tutorials off the internet and implemented them and all their projects have zero stars, and it was just like an academic exercise, that's kind of different. But if someone has some projects that they built and they actually have a following, yeah, I mean, I would say that's pretty significant. Yeah, okay.

0:07:02.412 --> 0:07:52.024
<v B>So I think this is a difference because actually you and I differ on this. So you do programming outside of work, and I almost do no programming outside of work. And so I'll bias the other way, which is I actually—and you are right, of course, with almost everything, you're safe in saying it depends. Yeah, of course. So if you have a popular like 'Wow, this is a true almost equal to a job level of project that you maintain,' right? Where I might interview you even if you weren't a programmer, even if you weren't working at a company, even if you weren't a new graduate, just because of your work on that project. Of course, like I think that's kind of in my mind a different category almost. But if you're just a person who has even a mildly popular or not at all popular—mildly popular, I guess—is ambiguous if you have something that I hadn't

0:07:52.024 --> 0:07:52.851
<v A>heard of, or.

0:07:54.505 --> 0:07:58.825
<v B>That a quick Google search doesn't reveal to me is like a very commonly used piece of software, like?

0:07:58.825 --> 0:08:03.482
<v A>How many stars? Like maybe your project has, you know, less than 100 stars or something. Yeah, then.

0:08:03.617 --> 0:08:20.357
<v B>I basically don't count that at all. I don't even—it's not even interesting to me. In fact, when people put their—and this is this is going to differ, which is why it's good that we're both presenting our opinions—sure, but I almost never go to people's GitHub pages on their on their resumes. I'm just not interested. Oh.

0:08:20.762 --> 0:08:31.529
<v A>Yes, I'm totally the opposite. I mean, but I think to your point, if it doesn't have a following—I don't know—I mean, I don't want to put a star number on it because it's much more like abstract than that.

0:08:31.529 --> 0:08:32.659
<v B>are going to be buying.

0:08:32.963 --> 0:08:51.002
<v A>Stars? Yeah, but if it doesn't have like if there's never been a pull request, you're the only committer, it has three stars, then it's the same as nothing. But no, I mean, I look and if it has some pull requests and there's some discussion and the person is making some decisions, but I can suss out that.

0:08:51.440 --> 0:08:51.998
<v B>Oops, sorry. Go.

0:08:52.319 --> 0:09:30.355
<v A>Ahead. Oh no, I was gonna say especially if there's if it's big enough where you have sort of conflicting interest type thing or you have to do some type of organizational work. And again, this is all things being equal. Here's one thing I will say just to finish my part: Is if I don't have that information? So let's say there's somebody who does nothing outside of work. Well, then I would spend more time in the interview. You know, I wouldn't really talk about their non-existent GitHub, but I would be spending that time talking to them about work situations and—you know, presumably they would they would they would be able to fill in there. Yeah, that's.

0:09:31.890 --> 0:11:26.040
<v B>What I was going to say is basically that which is I'm going to ask about anyway to understand how does this person deal with conflicting interests? How do they manage their time? What are the kinds of things they like to do? So I'm going to ask those anyways. And as far as like the expectation, I mean, I think there is a belief at least some blogs and whatever will say that you know, oh basically you it's an expectation if you're not passionate enough about programming to do it with like all your spare time, then like that's not the kind of person they're interested in hiring. And those people do exist. I mean, I'm not going to counter it, but I personally don't—I don't think that's true at all. I don't hold it as a yeah, it is definitely not a negative at all for me if you don't have any external to your work projects. But that isn't to say, and I think Jason alluded to this in the beginning, although he might have said it slightly stronger than I did, which is if you do have something, it can be a benefit—if for nothing else then for teaching you what it is you're not getting from work. And I think this is the difference: Is if you are currently, you know, and I'm just—and I'm not saying good or bad, I'm just going to pick something like if you're currently doing, you know, JavaScript front-end stuff and you want to get into distributed data processing, but at work you're literally just slammed with, you know, layout of, you know, the website, and you're not getting the education you need. It's going to be very difficult oftentimes to convince a team or a company to hire you for work in something you haven't proven yourself in doing external projects, even if they aren't popular, even if they don't go read your GitHub will teach you the expertise you need to be able to talk confidently at least at some level in an interview. Now, you should still be honest that hey, I've never, you know, I only done this in my spare time or only, you know, examples. I've never done this at my company like you should.

0:11:26.040 --> 0:11:46.114
<v B>Never be deceitful there, but you can still express a confidence that you understand what it is to do, you know, distributed data processing or whatever. And I think in those ways it is sometimes necessary as part of resume building or part of learning to do extracurricular programming. Yeah.

0:11:46.992 --> 0:12:16.624
<v A>Guess the question is like, I mean, if we were to come up with a list of, you know, someone comes to you and they say, 'I want to, you know, improve my career. You know, I'm software engineer, I want to be software engineer level N plus one or something like that.' Like how would you prioritize, you know, coding in your spare time versus other things? Like, you know, what would be sort of your advice? That would be better than this, right?

0:12:18.059 --> 0:12:30.968
<v B>I mean, yeah, it's difficult because I mean, I think there are things you can do. For instance, I don't think it has to be a program. I think it could be reading, like reading about how, you know, other people do stuff. Reading—you know, it sounds like goofy, but you.

0:12:30.968 --> 0:12:32.706
<v A>Know reading Reddit programming or.

0:12:33.140 --> 0:12:38.920
<v B>Hacker News. Um, you know, reading books like, you know, Coding Complete or whatever, you know, something.

0:12:39.102 --> 0:12:42.325
<v A>About how to negotiate a promotion. Sure.

0:12:42.325 --> 0:12:58.795
<v B>Something like that. Um, or even, you know, not necessarily having a project in functional programming but just trying to make it through a functional programming book. I think those kinds of things can also help. It doesn't have to be actual programming and debugging and building a project to completion. Yeah, that makes sense.

0:13:00.179 --> 0:14:22.107
<v A>I mean one thing we can both agree on is that if someone doesn't—if someone has an empty GitHub and they say they do no programming outside of work, that's not a disqualifier. I mean that's... maybe just so one of the things there are jobs where, um, and I don't do a lot of UI stuff, so I'm probably going to kind of mess this up, but I've seen jobs where somebody hands you a picture of an app like that they drew in Photoshop and they just say, 'Look, I want the app to look like this.' And for those kinds of jobs, they're really interested in throughput, right? Um. And so if you're getting a job where like throughput is the most important thing—like lines of code per hour worked or something like that—then maybe someone could say, 'Oh, you know, I'm paying everyone's salary. This person who does all this stuff on the side... maybe I could get them to do a hundred hours of work a week because you know they have more energy.' But those are not the jobs you want. Yeah, right? So in other words, the jobs where they would expect their programmers to work in their free time are probably not the jobs that you want. So I wouldn't—I wouldn't put this demand on yourself if you're a developer.

0:14:23.136 --> 0:14:57.640
<v B>Well, that was something I was going to say. Though for me, I try to get jobs, interview, change teams, move within a company, whatever is necessary to try to get a job where—I get sounds bad, but get like the fulfillment I need about programming at work. So if I'm like, 'Hey, if I'm really interested in embedded programming,' then like I'm going to go join a team that's trying to do low-level programming or weigh like how much I care about that because I want to be doing the thing at work that I'm really passionate about and that sort of get that fulfillment. And then when I get home, I don't need to—I don't feel like, 'Oh, I'm not doing the kind of work I'm interested in.'

0:14:57.640 --> 0:15:27.902
<v A>Yeah, I mean that's another issue where we differ. Like if I had that mentality, I would be quitting every three months. I would be changing jobs, but that just comes down to like our—you know, we have kind of different natures around that. But yeah, I think it's a really interesting question and I think it's very hard to have a good answer. The one thing I would say is definitely don't put pressure on yourself if you don't code in your free time. I don't think that this should be some kind of mandate or something.

0:15:29.269 --> 0:16:08.115
<v B>And for what it's worth, I do try to convince people who have this attitude that like there should be extracurricular work. I do try to convince them that this is not necessarily true because I mean there's also very personal reasons why it just might not be a good time for you to be doing things, right? You know, if you just—and it's not always you're not bringing up as an excuse, but maybe in your life recently struggled financially and had to work a second non-technical job or you know you're had a child or you had an illness in your family. You need to take care of—maybe yourself were ill. All of these things could be reasons why the person for a year or two or three years hasn't done this kind of stuff. Yeah.

0:16:08.402 --> 0:16:35.459
<v A>And on the flip side, there could be someone who's done a lot of stuff in their free time because they are just not doing well in their job and so you're kind of rewarding a bad situation there, right? So yeah, I think with anything there's a lot of ingredients that go into whether you're hiring, whether you're trying to improve your own career. And this is like—this is one of them. But yeah, anytime you see this like expectation, that's probably a red flag, you know.

0:16:35.460 --> 0:16:49.695
<v B>Well, on to news and links. My first one is a game programming tutorial using Lua, and I'm going to say it Love, but if that's wrong, I'm sorry.

0:16:49.695 --> 0:16:53.695
<v A>No, it's Love. You're right. Okay. I've actually used this before. It's a pretty

0:16:53.813 --> 0:17:46.412
<v B>good library. Okay, so Lua is a scripting language and Love is a framework for making 2D games in Lua. Um, and there's a couple of interesting things about this. So the links in the show notes, but the game being made is called Byte Path, and it's a—it's probably interesting because the tutorial takes place in a series of GitHub issues. So the person made GitHub issues that describe all of the parts of the tutorial. It's also interesting because Lua has been one of those things that like, 'Oh, I don't even know for how many years,' has been on my like list of 'I should really get you know get acquainted with this and working with it.' And I've always wanted to do some sort of like simple or retro-style 2D game in my like giant list of things I never get to. Same

0:17:46.412 --> 0:17:47.189
<v A>here.

0:17:47.419 --> 0:18:09.092
<v B>day I'll—you know, retire, but I'll actually just be super busy in retirement because I have to get through all this stuff I never did. Um and this is like one of those anyways it really struck a bone for me. It's like, 'Oh, I want to go do this.' And just talking about programming in our spare time and the fact that I don't do any of it means I didn't unfortunately follow this tutorial. But if you didn't see it when it was like kind of making the rounds, check it out. So you've used Love before?

0:18:10.071 --> 0:18:15.260
<v A>Just—I ran some demos. I made a very simple thing with it and it looked pretty cool.

0:18:15.842 --> 0:18:18.340
<v B>Yeah, I have you done much with.

0:18:19.470 --> 0:19:30.413
<v A>Lua before... um I have a long time ago. Um I actually wrote part of this thing called Diluculum, which you can look it up. I don't know if it even exists anymore, but it was basically a Lua C++ like a binding API, and you could access C++ objects in Lua and vice versa. And it's kind of like, you know, the Python API, like the Boost Python type thing, but for Lua. Okay? Um so I was really into Lua. This was... um gosh, a long time ago, and this is over 10 years ago. Um, but yeah, you know, honestly, as soon as I really found out about Python—like I'd heard about Python, but as soon as I really got into Python, which was, yeah, as I said, about 10 years ago—Lua just died immediately for me. Um, you know, the Python C API is not as nice; like it's harder to embed Python, but that kind of just slight mechanical challenge is not worth using any other scripting language or interpreter language. So I've been... I've been like pretty heavy into Python, but I did think Lua was good when I was using it. Nice.

0:19:32.522 --> 0:21:30.816
<v A>Uh so my news is, uh, it's actually a YouTube channel that I've been following for a while but hadn't really talked about. Um it's pretty cool. It's called Charisma on Command. It's very popular; a lot of people listening to the show probably have probably seen it before. Um the other one that was really cool is 'How to Make Any Story Interesting.' And in the past, I've always kind of felt like... uh, I don't know, I've always had sort of a what's the word? Like I'm giving kind of side eyes to people who who um like over-emotionalize things. You know, like when they're talking, they have too much inflection and things like that. Um it's always kind of a big turnoff, right? And I think it's still true. I mean, if you just overemphasize everything, people, you know, get kind of turned off. But this basically argues the opposite. It says, you know, part of it because you kind of know what you're going to say, and you should watch a video. It goes into a variety of factors, but in general, you know, your baseline is to under-emphasize when you talk. Um and it's just a product of, uh, you know, saying, 'You know, for one, it's like you have to think before you talk.' In most settings, most of us are doing that, and so you've already thought it through. You've already kind of played it out in your mind, and so now you're just reliving that—that, you know, uh, you're just living out that prediction. And so naturally when you talk, you're not... you're not using as much inflection as um as you want. And so it talks about that a bunch of other things, but it really goes into detail on, you know, instead of just because you see a lot of these things where it's like, 'You know, three interesting things you can say,' and it's all about the content and how to strike up a conversation. They usually look so focused on content. This is just, you know, you can't control the content—like you're gonna say X. How do you make X interesting? And I

0:21:31.440 --> 0:22:09.940
<v A>thought it was pretty cool. Um and so in general, this Charisma on Command is amazing. I've been following it for a while. The videos are really useful, really interesting. Um but I thought this one really kind of struck a chord because it was—it was not only interesting, but it's also something that I was kind of uh kind of against, and then when I watched the video, completely changed my mind. Um so I haven't really taken it into practice. I don't feel like I'm speaking more emphatically than I usually do, but um I feel like it makes you know—it's plausible now. Like it's something I would want to do, and so kind of mulling it over, but I thought it was a fascinating video.

0:22:09.940 --> 0:22:16.395
<v B>I... I feel like I kind... I don't know. I've never seen this video. I'm gonna go watch this. This sounds intriguing. Yeah, you?

0:22:18.167 --> 0:22:30.486
<v A>Should check out a lot of if you if you don't follow this guy, definitely uh go through some of his library. Um maybe watch the top five most popular videos from him or something, but it's really, really interesting.

0:22:32.933 --> 0:22:38.957
<v B>Interesting. I didn't realize that people would have like a bias against that though, but I guess that makes sense. Well, yeah.

0:22:39.717 --> 0:23:08.691
<v A>I mean, you know, there are those people you kind of tell, you know, when somebody just really overemphasizes everything. Well, I guess it's kind of, you know, I always kind of picture when someone overemphasizes right off the bat. I kind of just in my head, I imagine that this person just hasn't been through a hard life. I mean, it's like not quite the right way to say it, but it's like if if if you know the first sentence is super dramatic, I'm just going to assume that it's not going to be that interesting, but

0:23:09.889 --> 0:23:23.136
<v B>Is, but I guess there's okay. I need to watch the video, but I guess there's a difference between sensationalism or like just over-embellishing everything or going into other details and making something motivating or you know interesting. Yeah, that's

0:23:23.136 --> 0:23:26.720
<v A>true too. Yeah, and they talk about—they talk about kind of both of that.

0:23:26.720 --> 0:23:37.260
<v B>Because it sounds like what you're saying is like you don't like people who open with just this, like 'I had the worst day ever. I found a single split end on one of my hairs,' and you're just like, 'Oh, okay.'

0:23:37.260 --> 0:24:12.023
<v A>Yeah, and so the thing to be aware of is apparently when when you talk kind of normally, completely unrehearsed, you're doing the opposite of that. And so by adding some more emphasis, you're really fixing just an inherent problem in the way human beings kind of think and speak on the fly. And so um at least, you know, according to this video—video—um, you know, you want to over-emphasize a little bit to cancel out the like natural tendency to under-emphasize. But wait, but if

0:24:12.023 --> 0:24:25.793
<v B>everyone knows that people typically under-emphasize, then they've already beefed it back up in their heads. So if you go around doing this, you're really just like exploiting people. Like you're just like, 'Wow, that person just has more interesting stuff happen to them all the time.'

0:24:26.704 --> 0:25:01.062
<v A>Yeah, I mean there's a question about in general, like is charisma and persuasion? Like are these things exploitive? Um, I mean maybe. Yeah, I don't know, but it's good to know either way. It's sort of like, um if you know, let's say you know how to, I don't know, choke somebody or something, right? I mean, knowing that is probably useful—maybe extremely rarely—but it doesn't mean you have to go around choking everybody. Um, but having that skill is more useful than not having it, I suppose. Well, maybe.

0:25:04.251 --> 0:25:13.617
<v A>You're persuading me to no? Okay. Yeah, everyone's watching it right now. That's just such a—such a I'm such a savant that's why our listener.

0:25:13.617 --> 0:25:14.714
<v B>Count is dropping. Yeah.

0:25:15.810 --> 0:25:16.920
<v A>Exactly, by the second.

0:25:18.460 --> 0:26:05.642
<v B>The next article I have is 'Who Killed the Junior Developer.' Uh this is an article written on Medium by a lady named Melissa, and she is saying that you know that a lot of if you look at job requests that people have and you know postings out there, it seems a lot of people are looking for Senior Engineers. And I always say I too would like a unicorn because people ask for, you know, 'I want someone with 10 years of experience in Node.js,' and it's like, wait, Node.js hasn't even been out 10 years or like right? Well, maybe it has. No, I guess it hasn't.' Um, and just say stuff like that, or 'I would like someone with five years of experience in embedded programming and 10 years of AI experience and six years of Computer Vision experience,' and it's like, right?

0:26:05.642 --> 0:26:07.720
<v A>No way. Like this person would have.

0:26:07.971 --> 0:28:07.320
<v B>To like there's just that's not a thing. Um yeah, but I think it goes a little further into just people don't want to hire. So there's that aspect which isn't exactly what she's talking about, but instead, um she talks a lot about you know how companies want what they call sort of Senior Engineer, which there's a lot of debate about what Senior Engineer is, but they want someone who can hit the ground running, who doesn't have to be mentored or tutored. Like they basically know how to get their job done. They're like they're a craftsman at the job of computer programming. And how that, uh you know she feels that and and she brings into there some issues maybe with you know how women versus men in the workplace handle the mentoring role or the mentee role. Um and I I think that's interesting, but this fact of you know companies want to hire Senior Engineers because they don't want to pay to train someone. They want to have someone who can come in and just start working right away. And not only do they not want to train someone; it's not just that they have to you know wait for the junior developer to get as efficient as a senior developer, but they also typically have to spend senior developer engineers' time, you know, bringing up junior developers, and the skill set of being a really good teacher or mentor isn't necessarily the same skill set as exactly what you need to get your job done. Um and that's not a you know a revelationary thing that you know, oh, there's a good solution here, but just kind of pointing out something that I've observed. So so I sort of bring it up here which is we kind of see this or I see this happen quite often where yeah, let's hire a senior person. I've been pushing on our team a lot for you know, let's look at more junior people because you know there are a lot of really talented junior people out there who are just looking for an opportunity. Um and you know part of the interview process is making sure that that you have the right opportunity for them, but I also believe that taking a junior engineer and helping them sort of grow into that Senior Engineer thing on your team helps them be

0:28:07.320 --> 0:28:56.640
<v B>Really productive and really good at their role, and also you know a very good fit for coming up in the culture and the situation and the team. If you bring in a senior person, they're gonna in some ways it's good because they're bringing a lot of experiences, but they're bringing on a certain amount of inertia and almost you want to say baggage or whatever. They're bringing in a direction that they're used to heading and that they think things ought to be done. And sometimes that's good, but if you have enough of those on your team adding more voices often can slow stuff down a little bit as you quibble more in re-digging up the 'Why does your team use four spaces instead of two spaces for indentation or not tabs?' right? Because this person is going to bring in maybe rightfully so, as a Senior Engineer. They come in and they start to question things, but that's not always what you want.

0:28:56.640 --> 0:29:33.424
<v A>Yeah, I think this article is super interesting. I like that point where you know looking at it at a per hour basis, like we've talked about this in the past, but you have you know certain times where you're kind of in the zone and you have other times where you just can't really be—you can't be in the zone eight hours a day just banging out code. I mean, almost nobody can do that. And so you are either going to spend that time on, you know, Twitter or you're going to spend that time mentoring a junior engineer. So I feel like the idea of saying, 'Oh, you know, it's taking away time and money from the company,' I don't know if that really—that really holds water.' No, but I

0:29:34.049 --> 0:30:09.182
<v B>I mean, I think it is something, and we're talking about this unrelatedly before the show, but I mean, I think it is one of those things where you have to be careful about what the how to do well at your job. And if your company doesn't sort of see mentoring as something good, which is very rare, I feel that even if companies don't have an explicit mentoring program or a concept of that or bringing a new person up to speed, that I've almost always found by being a person who helps the new people and teaches them like has worked out well for me. Um yeah, it

0:30:09.182 --> 0:30:10.026
<v A>has been.

0:30:10.026 --> 0:30:41.835
<v B>Something that my managers end up respecting that uh you know their managers end up you know realizing and that the people on your team sort of know how that's an easier thing to deal with because you you sort of taught them your view of what the team culture is and how the Code Review process works. So it's sort of someone who ends up being in my mind almost more compatible with you going forward and having a good working relationship. So I've never had an issue where i felt like mentoring someone was, you know, wasting time.

0:30:42.966 --> 0:31:01.000
<v A>Yeah, definitely. I mean, even in, you know, Silicon Valley, where the average person only stays was it two and a half years or something at one job? Yeah, even then, it's still valuable. So, I mean, if you're at a company where the tenure is longer than that, then it gets—it gets even more valuable, right?

0:31:01.000 --> 0:31:15.822
<v B>Yeah, and I've always appreciated when people senior to me, you know, take time to mentor me and to help. Um, I kind of wish it happened more. I really wish there was more of a culture of teaching and learning, but yeah, I

0:31:17.273 --> 0:33:11.820
<v A>I think it's difficult. It's difficult at any company to really pull that off. You have to have sort of really good inter-company communication, and the thing is, it's not just having that communication, but it's preventing a few people from kind of monopolizing it. One of the things I've learned—not to go on too much of a tangent—is you want to have like really specialized channels of communication. Like we set up a Machine Learning noobs forum, and that worked really, really well. And so you might ask yourself, 'Well, we had a, you know, we had an Engineering noobs forum,' and noobs for people don't know is like for, you know, newbies or new people. But in our case, it was literally just—you ask a question about Machine Learning. Like you didn't have to be brand new to Machine Learning or anything. And you know, we had Engineering noobs. Um, so the question is, like, well, why didn't that just vacuum all the questions away from Machine Learning noobs? Right? And the reality is, you know, there's a few people or a few types of questions that kind of just dominated that forum. Right? And then when you get even more broad to like, you know, a forum with everybody who is in this office in a city or something, then it's just a couple of things will monopolize almost any forum regardless of the size. And um and so you're getting the right channel I think will help the mentor thing a lot, but it's—it's not trivial to get right. All right. My last news item is Detectron, which is pretty cool. So, I shared a news a few months back of a GitHub repository that came with a nice tutorial for training like a Mask R-CNN network. Um and so the idea is like you'd give it some images, and it would—it would train and it would be able to find, you know, the items on the page and stuff like that. Um this is similar, the cool thing

0:33:11.820 --> 0:34:06.850
<v A>about this is they already have some models already trained. Um so if what you're looking for, if you want to build a robot or something else that can kind of find things in images as long as those things are from the set and you can search through the set of categories—I think there's something like a million categories—then then you could just use one of these off-the-shelf models. You don't have to train it or anything. Um so if you wanted to write something to detect, you know, dogs versus hot dogs or something like that, you could just use this off the shelf, and it would just work. I mean, it would also tell you other things, but you could just throw those away. Um but it would tell you, you know, where the dogs are and stuff like that. Um so it's pretty cool if you need to do any kind of image processing, if you want to build your own like paintball gun turret or something crazy, check out this Detectron on the screen. It's

0:34:10.394 --> 0:34:12.320
<v B>Time for Book of the Show.

0:34:13.043 --> 0:36:11.961
<v A>It is Book of the Show. It's been so long. We're so excited. It's we're reuniting. My book this show is Basic Economics by Thomas Sowell, and you know I talked again a few months back about, um, you know, I tried to build this economics type simulator, and um, you know, I was using some pretty sophisticated Machine Learning, but I just couldn't really get it to work. And it turns out after reading this book, I knew nothing about economics, or at least, you know, I thought I knew stuff about economics. I really didn't. Um this book is—I think it's like pretty standard reading for if you're in economics, like, you know, undergraduate or something like that. Um the cool thing is, and it even talks about this in the very first preamble of the book. It's the very first sense is, you know, you're not going to find any graphs. You're not going to find any equations. This is just about the principles of economics. It's written in a very lay terms so you don't have to be an economist or anything like that. Um it's really fascinating. It has some really in-depth case studies on planned economies, so for people who don't know that's where the government or someone sets the prices. Um so in a sense, um like garbage—or maybe not garbage—but like minimum wage jobs are I just said it's a planned economy. All right? So if you work a job that's a minimum wage job, um the government as they change the minimum wage, they're changing how much money you're making. So that's that's you know a planned economy. Like you can't unless there's a massive shortage of your job and then it's not minimum wage anymore. Um but it talks all about these different planned economies, both like massive large-scale planned economies that they had kind of decades ago in India and the Soviet Union things like that, but also, you know

0:36:12.467 --> 0:38:07.380
<v A>like local, you know, in a microeconomic sense, like local planned economies. And basically like why they're all bad. So, so the book definitely has a slant towards pure laissez-faire free market economics. Um but, you know, you obviously have to take that into account while you're reading it. But it talks all about these different economies and it really explained things that I just didn't really understand. You know, I was like, how does this thing cost so much? Why is this cost so little? Why is this happening? Why is that happening? It really kind of—it covers a lot of really interesting topical cases, and these are just core things that as a society we get wrong over and over again. And it even talks about why we keep getting them wrong. Um It has to do with, you know, it's just easy to convince a lot of people to do the wrong thing, and they'll love you for it. Um but it—it covers a lot of different scenarios. It's really, really interesting. Um One of the just to explain like the simulation that I had, um you know, it didn't work for two reasons. One, actually part of it was working. I didn't realize there's going to be some agents who are just going to fail. So, so part of having a good economy is that there needs to be sort of businesses that fail and businesses that succeed. You know, there has to be sort of some risk, and the consequence of the risk is you go bankrupt. Um If no one's going bankrupt, then the economy is not really working. It means people can't really take any chances. And the other part of it is there needs to be a whole network of alternatives. So in my case, there were several businesses, but they're all doing the same thing in my little simulation, and so people couldn't say, 'Oh, the price of, you know, bread went up; I'm gonna buy carrots.'

0:38:07.380 --> 0:38:32.820
<v A>Instead. And so without alternatives, the economic system doesn't really make any sense. Um And there's—there's, I mean, I could talk for a whole hour there. There's a whole bunch of going on here, but you know, you don't need to have a super strong background in economics. Definitely read it if these are things that are interesting. Um And you know, it's a pretty long book. I haven't got through it all, but even if you just read the first couple of chapters, it would be worth it.

0:38:36.225 --> 0:38:38.470
<v B>Economics is always one of those

0:38:40.140 --> 0:39:45.582
<v B>things where I think a lot of people underestimate how good it is at explaining a lot of stuff that happens. But then there are sometimes people who overestimate, you know, what economic theories can predict. Um And so it's one of those really—I've only ever studied economics at a very small level, and so there's a lot of things like you're explaining these actually seem very fascinating, but then at some point it's always difficult to map back. Like, you know, like you said, 'Oh, every time there's been a planned economy, it's failed.' It's like, but you know, such statements always seem like very difficult to make absolutely that. Yeah, you're totally right. You know what I mean? I yeah, it feels like one of those, you know, they say, 'The science of economics.' I don't know if you would call it a science or not, but just like the study of economics always seems a little hard for me because it wants to make these absolutes, but you really can't because it's all about at some level all about humans, and it's very difficult to make absolute statements about human behavior. Yeah.

0:39:46.105 --> 0:40:06.878
<v A>And even if you did, you know, there's sort of a Heisenberg principle here, right? Like if you tell everyone, 'Look, X is bad,' then everyone will stop doing X, but then that will change the whole dynamics of the whole system. Like by virtue of everyone not doing X, maybe X becomes good.' You know. So so there's all sorts of weirdness going on. Oh, you

0:40:06.878 --> 0:40:11.097
<v B>need Game Theory too. So you got to be an economics expert and Game Theory, and yeah.

0:40:11.350 --> 0:40:22.909
<v A>I mean it's all kind of tied together. Yeah. So I would say, you know, the book—this person has a lot of strong opinions, you know. I definitely don't agree with all of it, but I learned a credible amount. So has it changed?

0:40:23.449 --> 0:40:27.685
<v B>What you're going to vote for in the next election? No, it's okay. No, I'm—

0:40:27.685 --> 0:40:54.027
<v A>Just oh, I have no idea. I could tell you that rent control doesn't work. That has been proven. And they actually just passed rent control in Mountain View, which is a city right next to where we live. And this book talks all about all the places in the U.S. that have passed rent control and explicitly like what happens, and it just doesn't work, and it's not going to.

0:40:54.027 --> 0:40:57.874
<v B>Work here either? It can't work or it just hasn't worked.

0:41:00.220 --> 0:41:56.430
<v A>I think I would say that it can't work. Basically, I'll tell you quickly what happens is people just start hedging the rent control, right? So they say, 'Well, if I can lock in a good rent, then, you know, I have a kid. My kid's 10 years old. Eight years from now he'll be 18. Let me just get an apartment and rent it at, you know, whatever the controlled price is now.' And that way if the price goes up, then my son can live in this apartment when he's of age, right? And so you end up with just massive vacancy, which is what you have in San Francisco and in New York City actually. And and he just said, 'You know, every time they've done rent control, you end up with huge vacancy rates.' Now there's a question of like is vacancy rate the right metric for success? You know, I don't know well, but I mean couldn't you?

0:41:56.430 --> 0:42:18.115
<v B>Always one of the things where people feel they're different. So, you know, Mountain View just an X rent control, but oh, but we're different, or we're doing it this time, or we introduce this tiny slight difference where, you know, basically if it's vacant, then, you know, you lose the rent control or something, right? Like you could always try a slight variation on it, or it'd be different this time. If that makes sense. I—

0:42:20.292 --> 0:42:39.660
<v A>Don't know. Yeah, I know what you're saying. Yeah, I mean maybe, you know, I mean obviously the more like the more restrictive you make the allocation of rent control, the closer it's going to get to a free or market. So there's some gradient there, but yeah, I mean who knows? It's a good question.

0:42:40.356 --> 0:43:03.576
<v B>i mean this is the uh well what is his name oh oh man now this is gonna bother me uh nasim talib the black swan i think it's a black swan is where he talks about this is the you know the turkey befriends the farmer i've probably told this story before i don't know it's actually his story

0:43:03.576 --> 0:43:04.251
<v A>I've never.

0:43:04.251 --> 0:43:33.175
<v B>Heard it? Oh, okay. The turkey's on the farm and you know every day the sort of turkey sees the farmer and you know the farmer feeds him. And so the turkey goes, 'Wow, this this farmer's my friend.' And you know, oh, this farmer's my friend.' And this goes on for, you know, like a year. And the you know, turkey's completely convinced that this farmer intends me no harm—that he's my friend. And then one day it happens to be, you know, the day before Thanksgiving and the farmer is not the friend of the turkey.

0:43:33.175 --> 0:43:33.614
<v A>Yeah.

0:43:33.614 --> 0:43:43.418
<v B>And it's like you know everything's the same and you can come up with, you know, 'Hey, look at every time we've done this, it shows that the farmer is my friend.' And then one day it just isn't.' Yeah.

0:43:44.886 --> 0:43:45.814
<v A>See your point, and so.

0:43:46.220 --> 0:44:19.733
<v B>Like you can say, oh I have a model. I have an understanding. I I have my Bayesian prior until it—until none of it works, you know? And the and I'm pretty I hope it's hit that book, and the reason why I say I think it is is because basically that's the black swan. Nobody believed black swans existed because only everyone everyone had only ever seen white swans, right? So there are only white swans in the world. The only color a swan can be can be white. And then someone finds a black swan and they're like, 'Oh okay, black swans.' Yeah, yeah, exactly. Yeah, I mean it's a good.

0:44:19.885 --> 0:45:16.045
<v A>Question. I mean, I think but to your point that's why economic systems are constantly failing. So that's another thing is, you know, there's just I mean we've seen that basically every seven years there's some big crash. But then even then there's these micro failures in the economy, and sometimes they have to sort of like they talk about in this book—like one third of Venezuela's oil was like just messed up. Like, I mean the oil was fine, but just the pricing just got jacked up, and a bunch of like World Trade Organization people had to basically just step in and start doing manual things, like like this person was you know guaranteed to buy this oil, and then they just like canceled the guarantee without any penalty. They basically had to like do this arbitration among all these people manually because the system had just failed. So yeah, well.

0:45:17.597 --> 0:47:00.349
<v B>My book is nothing so serious. It's a science fiction book, and I recommend a lot of hard sci-fi or you know sci-fi that's like I guess you would call it deep long form, sure very interested in kind of the world building stuff or whatever. And this one is not like that at all. So this is Fuzzy Nation by John Scalzi. I've recommended books of his before, and this is actually a retelling of an older book, just sort of like updated and made newer. I haven't read that older book, so I don't know anything about it other than in the sort of preface they discussed that oh, this is a retelling of an older sci-fi story for modern times. And it's it's a story about a person who is some some amount of time into the future, you know, on a different planet, some interesting things happening. But it it sort of pivots around the interactions of the people and the companies and the planet and some of the native species of the planet and a question about just like how—and when I say a question, it's not like some deep thought-provoking, oh, I really wonder. It's just a light-hearted story about kind of like what what does it mean to be sentient or alive, or how should we treat you know things as humans? And it's not asking; it's just a play on that, I should say rather than questioning it. Um and so I'd recommend it. It's a very easy read, or at least I found it to be very light-hearted, easy. Um and since I listened to it, not read it, I guess easy read and easy listen. You didn't have to like sort of oh what was happening there; I really have to focus, you know? You can just sort of listen. It's it's kind of fun and goofy and humorous at times. So that's Fuzzy Nation by John Scalzi. Cool.

0:47:01.311 --> 0:47:09.445
<v A>Yeah, I also listened to The Basic Economics. Are still listening to it? Okay. And uh yeah, we're listening to it on Audible. Yeah, is that cheating?

0:47:09.740 --> 0:47:16.026
<v B>Feel like I just say red, but no. I think it's the right thing to do. Okay? Yeah, I think red is fine. It's just too confusing.

0:47:16.836 --> 0:48:19.679
<v A>Yeah, we should—we should ask the folks at Audible. So um yeah, if you uh if you want to listen to these books and tell people you read them, um you can check out audible.com/programmingthrowdown, and we have a link to that in the show notes. And if you go through us, I think you get your first book free. Is that right? Yes, first month is free. And we also get uh thank you from Audible, which uh which is really great for us and helps keep the the server lights on on the servers. Um we're also if you already have Audible or you want to donate in a different way, we have Patreon. Um we have a custom Patreon RSS by the way. I haven't ever mentioned this on a show. I've talked about it a little bit. I mean, it's on the Patreon page, but uh the downloads are faster. Um the uptime is a little bit better. Um so if you if you go on Patreon and give—I think the minimum is a dollar—you can get access to the to the really fast RSS feed, and uh and get the the downloads a little bit.

0:48:20.775 --> 0:48:37.634
<v B>Quicker. Uh and we uh I just uh update, I guess we could do it later, but um for the people—we had said everyone who was Patreon at the New Year was going to get a little Programming Throwdown badge thing. I don't know what you call it, like a laser cut thing. I'm staring at a giant stack of them sitting on my kitchen table.

0:48:37.634 --> 0:48:40.772
<v A>Nice. Um so we did a couple of trial runs. Yeah, I was.

0:48:40.772 --> 0:48:58.300
<v B>Gonna say we ran into some manufacturing difficulties, and so Jason and I had to iterate this more than I anticipated. We were going to have to—I thought oh, this will be easy. It'll be great. And yeah, it turns out this is why Kickstarters are hard, and this wasn't even a Kickstarter, and people aren't even, you know, anyways.

0:48:58.300 --> 0:49:20.007
<v A>Yeah, I mean nobody's really written in saying, 'Hey, where's my uh you know uh like where's my thing?' And so uh yes, thank you for your patience. Yeah, thank you a lot for that. Um yeah, definitely mass producing things is hard. Um uh you know props to Cafe Press for for drop shipping our T-shirts. Um yeah, they have like you know the system, but uh you know.

0:49:20.327 --> 0:49:24.023
<v B>For us it's like once a year thing, so we don't have a real system in place, but

0:49:24.023 --> 0:49:32.933
<v A>We're gonna get it done. We went through some manufacturing issues, but the latest set has been solid. Yes, and so yeah, manufacturing issues what we

0:49:32.933 --> 0:49:55.967
<v B>mean is like when I when Jason makes the design and I laser cut them, and then I mail them to him, and working out that like how thick the plastic should be and how do we mail it so that it doesn't crack on the, you know, so that you guys don't get just like bits of plastic instead of a nice programming throwdown logo. So exactly, it's been fun. Well, we should talk about it. So I'm going to write it up anyways. It is.

0:49:55.967 --> 0:50:01.519
<v A>Kind of interesting. I have all the pictures. We should make like a little kind of blog type post about.

0:50:01.519 --> 0:50:10.060
<v B>Yeah, but I do have what? What is this? Is about 25 of them or more sitting on my sitting on my kitchen counter. So, it's very cool. I'll be sending them your way shortly.

0:50:12.640 --> 0:51:53.819
<v A>Very cool. So yeah, oh sorry, my tool of the show is Hyper.js. So um, I was doing some work on Arduino, which we'll talk about later, and I wanted to have a good Windows setup. And I was also doing some Raspberry Pi work and stuff like that. And I have the, you know, Ubuntu Bash for Windows thing. I don't know really what you call it, but the thing where it's like Ubuntu is running inside of Windows, but it still runs in the Windows, you know, command line app, which is not that great. And I found this Hyper.js. It's really, really cool. It's basically it—it's all implemented in JavaScript. It's built on Electron, which is what, you know, a lot of apps nowadays are built in so they could be kind of cross-platform. And, you know, it's just a super super nice terminal. It has tabs, has multiple windows, all the things you kind of expect from like a really nice terminal. And the thing is, you—you know, you can use this on anything. So kind of if you learn the shortcuts and how it works and stuff like that, you know that knowledge will carry over to any machine you could be on: Mac, you could be on Windows, you could be on Linux. Hyper.js works on everything. It's super super cool. I'm actually thinking about—you're trying to make it my de facto terminal. I use iTerm right now at work, and I'm using this at home, and on a couple of the computers at home, I'm still running the like Gnome Terminal. I'm thinking about just, you know, taking the plunge and just doing Hyper.js for everything, but so far I'm really liking it.

0:51:55.180 --> 0:52:16.334
<v B>I know that. I think I recall when this was first came out or gained popularity, and people were sort of complaining that, you know, oh look how long it takes from when you type or punch a button on your keyboard to when the letter appears on the screen. And I know they have the same complaints about Atom, which is an Electron-based text editor, about being slow and problematic.

0:52:16.334 --> 0:52:19.860
<v A>Yeah, that's—that's actually fixed. Yeah, I was gonna say yeah. Well,

0:52:19.860 --> 0:52:23.033
<v B>They did fix it, but before, it was a legitimate complaint. Yeah, I

0:52:23.978 --> 0:52:58.380
<v A>I saw the, you know, GitHub issues like kind of complaints about it. Like some of the GitHub issues are still open, but basically yeah, they—they just did a bunch of work on the back. I mean, I don't know specific. I know one of the things they did is they wrote their own terminal emulator instead of, I guess there's this thing called HTerm that's built into Google Chrome and that was slow. They'd replace it with something else, but yeah, those—you're gonna see those issues on blogs and things like that, but I haven't found that to be a problem anymore. So yeah.

0:52:58.380 --> 0:53:11.464
<v B>What I was gonna say is like I've used Atom, and there are faster things. I've not tried this, but but I think a lot of it just depends, so I wouldn't be dissuaded off of stuff just because of bad blog posts. Like anything you got to try yourself. Yeah, that's true.

0:53:12.510 --> 0:53:19.834
<v A>Too. I mean, I didn't try it when it was slower. I mean, maybe it's—it's still slow. I just don't care. That's what I was gonna say is maybe this stuff

0:53:19.834 --> 0:53:42.075
<v B>is slow, and I just run on fast enough computers that it doesn't bother me. Yeah, like I tend to run on computers that are quite well specced, I guess for stuff like text editing, but I can imagine—I mean, it's a legitimate complaint like there is no reason a text editor has to take that much RAM. But for most people, it probably just doesn't matter. Yeah, I mean.

0:53:42.818 --> 0:54:26.828
<v A>I will say, you know, HyperJS. It's all JavaScript and HTML, so you know, in other words, if you press L on the keyboard, you know it's actually updating some HTML component. And so yeah, that's going to be—that's going to be way slower than any other terminal, but I mean, it's completely imperceptible. I mean, things that would bother me would be if I ran a command that generated, let's say, effectively an infinite amount of output and I had to kill it, and that command wouldn't die. That would be really frustrating. But I tested this out. I did like a find slash where it's just going to list every single file on my hard drive, and I killed it, you know, instantly. So yeah, I haven't had any issues.

0:54:28.499 --> 0:55:17.504
<v B>Tool of the show, based on the previous manufacturing defect thing, is that I have a laser cutter. It is a very low-end cutter from China called the K40, and normally you have to install, which is why I actually didn't buy it even sooner than I did, ended up buying, which I've really liked. And it's worked well for me, although there are tons of caveats around it and stories of people's stuff catching on fire, so always a fire extinguisher near. Oh my god, never leave it unattended. Well, it turns out if you're, you know, cutting stuff with a laser and like it makes fumes, and those fumes could ignite, like yeah, of course, like you need to watch what you're doing and have proper fume extraction and air blowing to disperse the fumes and keep an eye on it. Wow, okay, that was really.

0:55:18.060 --> 0:55:22.684
<v A>Terrifying sounding. Patrick is sacrificing his life for our Patreon subscribers, and be careful what you cut just.

0:55:22.684 --> 0:56:03.994
<v B>If you're if you're gonna get a laser cutter because some stuff you cut will release toxic gases. But there are laser-safe materials anyways. Okay, long story short, the software that you're supposed to use to run this is like—like ranges from well, is there any way this could possibly work? To I'm definitely getting a virus from installing this. Um and so I was really not wanting to do that, and you have to like, you know, sort of plug in a USB hardware dongle to run what some people sort of say is like a counterfeit version of some software or a pirated version of some software, and then there's a plugin, and it's just like, oh, I really don't want to be messing with this.

0:56:03.994 --> 0:56:10.542
<v A>Why? Why is this so hard? Like you basically have to just point the laser using a couple of stepper motors and then turn it.

0:56:11.520 --> 0:57:48.029
<v B>On correct. But these—these are made for people who use some specific software package to I think it's actually said that this is for making sort of stamps based on your name in Chinese. Um but they've just found out they're generally kind of cool and useful for hobbyists, and they're really cheap to make. And so um they've been sort of re-tasked, and this is the whatever company that sells them. This is their solution, and it's just not very good. Um got it? So instead, one option is you could replace the controller board that controls the stepper motors to just take G-code like a 3D printer would be. Um and there's lots of people who do that, and I've considered doing that because you can actually get more control over it. Um Sure, but what you could also do is somebody basically sniffed the protocol and figured out what this definitely virus-laden software was doing with keyloggers. Um they basically figured out what protocol it was doing, and they wrote a very simple UI where my workflow is basically uh JSON kind of makes the pattern, and I—I think maybe use Illustrator or Inkscape, I don't know. Uh and then I sort of edited up in Inkscape to be you know sort of what we need, what I need, and then you import it into the software K40 Whisperer. So the name of the laser cutter is K40, and this—this guy made this free software um and has a source code for it, K40 Whisperer, that will allow you to control the laser and cut your designs without having to install horrible unknowable software uh on it, and it's been awesome. I've really liked it, and it's it's crazy what people do and then just sort of like release for free. I'm always sort.

0:57:48.029 --> 0:57:51.218
<v A>Of yes, it's nuts. I'm always sort of, you know, shocked that I—I.

0:57:51.336 --> 0:57:54.525
<v B>Guess this guy is doing programming in his free time because he's not. I was.

0:57:54.525 --> 0:57:56.247
<v A>Gonna say, would you hire him? I mean, I don't.

0:57:57.580 --> 0:58:01.427
<v B>Know. I've not looked at the software, but I am appreciative that he's doing the work.

0:58:02.254 --> 0:58:03.402
<v A>Yeah, that makes sense, although.

0:58:03.503 --> 0:58:56.322
<v B>It is an interesting thing. I was thinking about this because I think it's a quite difficult problem. So we were talking about 3D printers, the slicers. Um right? Most of the slicers are sort of free, and so you—I guess you get what you pay for at some level. But um they do a lot of random things that seems like they should be able to do better. And it is a really tricky problem, but you know these are people doing this in their free time, and a lot of them are probably I assume probably self-taught. Um And the complexity of the things they're doing it is actually quite astonishing given those constraints. But it's like, wow, it really seems like you ought to be doing better because there's often where you'll just get these movements where the print head or the laser cutter will just sort of like cut down in the bottom left and then move all the way up to the top right and do a little more cutting, and then move all the way back again. And it's like, huh, it really seems like you should have been able to run some optimization and not do that.

0:58:58.229 --> 0:58:59.740
<v A>think you found your next side project.

0:58:59.740 --> 0:59:03.820
<v B>Oh no. No, I keep thinking that I'm like, no, I bet this problem is way harder than I think.

0:59:06.312 --> 0:59:23.001
<v B>Yeah, so I won't fool myself, but K40 Whisper it if you're in the very small minority of people listening who has a laser cutter and that laser cutter happens to be this thing and happens to be one of the ones compatible, I would definitely check this out. But you probably already know if you are. But anyways, shout out to these guys. This is

0:59:24.064 --> 0:59:24.942
<v A>Amazing. Yeah, very.

0:59:27.321 --> 0:59:49.343
<v A>Cool. All right. So we are going to try our best to cover Arduino. There's a lot to talk about. I mean, we could go all day about maker whatever, but yeah, we'll talk about Arduino kind of specifically, and if you have any questions about any maker stuff, just post on Facebook or anything.

0:59:50.879 --> 1:01:20.468
<v B>Like that. Yeah, so Arduino, I think a lot of people have probably heard about it, and Jason sort of said the kind of maker movement or making things. I mean, Arduino, I remember when it was sort of first coming out, and people were, 'Wow, what is this overpriced thing that is coming out of Italy and is underpowered, draws too much current,' and is sort of laughable. And that was sort of the people who did embedded programming, which is something I was involved in at the time, which is why I was sort of peripherally aware of this. And in a lot of ways they were right. Objectively, the Arduino shouldn't have worked. It was made by people who kind of didn't know—at least from reports that I can understand—they were students at the time. They kind of didn't know what they were doing, and they made a bunch of sort of what would you call, I guess, like rookie mistakes in designing the PCB for Arduino, the sort of power adapters they've used. And then, what is, you know, a great show of it—kind of often doesn't matter. It's not the best solution that wins all the time. And I guess Arduino hasn't won in that. It's not by any means the most commonly shipped microcontroller, but it almost, in my estimation, probably single-handedly created the behemoth of using microcontrollers for this maker and hobbyist movement that it is today.

1:01:21.936 --> 1:02:01.626
<v A>Yeah. I think a big part of it is they're pretty well connected with the maker community, but they're also very accessible, and not only are they making this board, but they're also writing all these tutorials. You know, they have a bunch of assets. There's a whole class of, 'Oh, here's a Bluetooth chip that's designed for the Arduino,' which means that there's a library—which we'll get to later—that you can link into to make use of this chip. And so it's kind of like all of that extra work probably matters a lot more than, you know, do you have the best design.

1:02:01.795 --> 1:03:16.399
<v B>Yeah, and I don't think anyone had attempted to think that was a market before. You know, yeah, there was BASIC stamps—I don't know if you know about these basic stamps anyways—where you could write code in BASIC and use microcontrollers. And I knew about these or whatever, but they were always like quite expensive even compared to these, and just never caught on because, like, you said, there was never this enough of a network of tutorials and people using it and easy to use as a priority kind of thing. They just never seemed to catch on. And then also one of the things that it was—one of the very early things that is probably not the first by any means, but it's one of the things I remember as being kind of an example of open hardware and open software where you know before people would say, 'Well, here I'll open the hardware, but I'll keep my drivers and firmware closed,' or 'Here's open source software, but I am not going to tell you the exact details of what I put on the chips and in the board.' But the Arduino stuff is open—both the IDE, the software that goes on the sort of so-called firmware that goes on the chips, and the boards themselves are all completely open. Yeah.

1:03:18.104 --> 1:03:29.325
<v A>Yeah, that's right. So yeah, there's no reason why someone couldn't make a perfect replica of an Arduino and sell it themselves, and we'll talk about that. But I

1:03:29.865 --> 1:05:28.460
<v B>mean, I think the difference is that you just can't use the name. But yeah, so the Arduino really is this—as Jason was already sort of talking about—more than just the board. It's the board, the communities, the libraries, and we'll probably accidentally use the when we use the term Arduino for me, I really mean all of those things together. Yeah. It isn't just any one of them. So the first thing to talk about is sort of this Arduino IDE. It's really not an amazing IDE. It's relatively simple. In fact, I think Arduino Project used it from—I believe it's the Processing project or something—where they already had this IDE and they sort of reskinned it, ported it. There's not really much to write home about. But what's interesting there is that because the Arduino is often the first embedded hardware, and unless you've done phone development—is common now, I guess it's pretty similar where you do cross-compiling, where you have an IDE, and unlike Visual Studio or GCC, where often you compile code and then run it on the computer that did the compiling—you're compiling code on your computer and then sending it to a different kind of computer. In this case, the Arduino, which we'll talk about in a minute in AVR. And so you're doing this cross-compiling. So you know, that's sort of one interesting nuance. And the second thing is that you then need to do the quote-unquote programming—not the write your program programming, but the putting your program on a board called programming. And so one of the things that the IDE is responsible for doing is making sure that you're doing the correct protocol for programming the board you have plugged in and sending that code over, and then also doing the remote debugging where you can sort of if your program goes awry, you can debug it from that IDE. But it does so over the USB connection to the board because it—the program

1:05:28.460 --> 1:05:36.860
<v B>isn't running locally. Your IDE is running locally, but the actual code is running on the Arduino, right?

1:05:36.860 --> 1:05:58.214
<v A>Exactly. Yeah, I've used the Arduino IDE for this robot arm I'm building, and yeah, I thought it was—it was pretty reasonable. I mean, as Patrick said, it's nothing to write home about, but you know, it seems you got the job done. It has some basic functionality; it'll tell you if you have errors, things like.

1:06:00.104 --> 1:07:54.179
<v B>One of the things that is interesting about Arduino is that it is just really C and C++ that you use to do the programming in the Arduino IDE. I guess I should say that in actuality you can run the same compiler that the Arduino IDE is running under the hood, and you can do everything yourself. You could write in any language that has a back end that supports that, which I think there's probably LLVM support for the AVR back ends, so you can probably write in almost any front-end language you want—so you know, probably C, C++, Java, I don't know, any whatever LLVM supports, which is basically everything. But what is interesting about the C and C++ that the Arduino uses is this thing called Wiring, which is really just a set of they call it a core. The core is a set of functions for doing things like turning a pin from a low voltage to a high voltage, which could turn on an LED, for instance, or reading a value off of a pin so that you could, for instance, tell what voltage is being applied to that pin, which you could know control from a variable resistor. And those are really just function calls, but you write them—they're C function calls—but you write them in the sort of skeleton app that the Arduino IDE provides. You really don't even know that you're writing C; for the most part, you're not doing the things we traditionally associate with C or what I would associate with embedded programming, like using, you know, bit masking to set register values—that's all hidden away from you in a set of C function calls that you could think of as the Arduino API, or is this Wiring language, or what they call kind of the core? Yeah.

1:07:55.259 --> 1:08:18.833
<v A>So you're operating at this layer where you're just saying, 'Hey, you know, is the pin seven high? Like is there voltage coming across pin seven?' And it just says yes or no. So it's some boolean function, but under the hood they're probably doing all sorts of wizardry like I guess they're checking the voltage that's above some threshold or something like that. Yeah.

1:08:19.289 --> 1:08:43.200
<v B>What they're doing is they're reading and writing what they call registers, which are memory-mapped ports that give you use and access as if they were bits of RAM, but they're not; they're physical circuits. But that's—you're basically just scripting it, but you're scripting it in C. So this very accessible maker thing is really written in C, which is somewhat...

1:08:45.225 --> 1:08:48.955
<v B>Not what you would expect. I guess that that would be what caught on.

1:08:49.340 --> 1:09:01.180
<v A>Isn't there another language though, like Scratch or something? Or am I just making that up? But I thought the Arduino came with like a language that they were pushing and the C was like optional thing.

1:09:01.180 --> 1:09:08.060
<v B>I think—I mean, this Wiring is this set of functions. I don't know that it's any other language than just C.

1:09:10.319 --> 1:09:13.272
<v B>Oh, okay. So there is something called a Sketch, and a Sketch that's what...

1:09:13.272 --> 1:09:14.807
<v A>It is Sketch. A Sketch just means...

1:09:15.340 --> 1:10:21.312
<v B>A program though, but different than if you sat down and wrote a program for your computer. You would know start it in C; you would start with, you know, int main, and then the I'm not gonna say it out loud because it gets hard, but the type signature necessary for main, and then you would write your code in there. But one of the things that a Sketch does is it really just says, 'Hey, I need you to provide two functions for me: the first is setup, where you do your setup, and then a function called loop, which is I'm gonna call it in a big loop for you, and I want the thing that you want to do repeatedly, you should put in this loop function.' And what it does is the Sketch has an external file that has that main, and it calls the underlying platform—the board setup. It configures all the clock speeds and everything in this init function. Then it just calls your setup function and then just calls your loop function in a basically a while true loop. So it's a while true loop.

1:10:21.312 --> 1:10:23.725
<v A>And it just calls your loop function.

1:10:24.079 --> 1:10:56.226
<v B>And so a Sketch is a file which you—I think they have it .ino, a .ino file or whatever, but that's really just a C bit of C code that they embed into this other framework, and they just call your setup function and call your loop function. And you are just writing C in there, but you often call these other functions that do all of the heavy hardware lifting for you. Yeah.

1:10:57.441 --> 1:10:58.369
<v A>That makes sense.

1:10:59.247 --> 1:11:32.929
<v B>You know, when you kind of know what's going on, it's surprisingly kind of simple, but it is rather clever to do it this way because it really makes all of the explanation you have to do to someone about why main has a bunch of parameters that come in and why is void main considered bad? Like why are you supposed to have int main, and yeah, exit codes and all that. Yeah, like no one wants to explain that stuff. Like it's actually not really—it is important, but it isn't the most important thing to a beginner. Yeah.

1:11:33.554 --> 1:12:45.762
<v A>The other thing that's really cool is there's a list of example sketches, and they're all in one file because you know all the main and everything else has been done for you. And there are so many other libraries, etc., etc., so most of the time you can do something simple in just one file. And so there are sketches that just—one of them turns a stepper motor like 360 degrees clockwise and 360 degrees anti-clockwise and just keeps doing that in a loop. Another one has like a little joystick, and yeah, like you wire up a joystick to the correct pins, you run this example sketch, and then it'll just tell you the X-axis of the joystick. Like it'll just print it to the screen. So if you move the joystick to the left, you start getting negative numbers; you move it to the right, you start getting positive numbers. And so these sketches, these example sketches are just like right there in the IDE. You just go in a file, Example, boom, you get a list of like 30 examples. They all require some hardware, which we'll get to later. There's packages that have all of the example hardware, but yeah, just having that resource is super useful. Yeah.

1:12:46.285 --> 1:12:57.473
<v B>I mean oftentimes this has become my now my thing with picking a Linux distribution is I just want a Linux distribution that's most likely to have the answers to the question before I ask it. Yep, and

1:12:59.295 --> 1:13:34.109
<v B>That sounds really dumb, but I guess I've somewhat optimized my life around this for several things now. Where if I know I'm getting into a hobbyist thing, I just kind of want to pick something that I know is going to have answers before I have a problem because otherwise I'm going to waste all my time trying to get them. And Arduino is really successful there, as Jason said. Like they've already given you examples on how to do a lot of things: read a resistor, a variable resistor value, a knob move, a motor turn on an LED. You're not going to have to post a question on Stack Overflow to figure out how.

1:13:35.020 --> 1:14:37.137
<v A>To do that, right? And some things have specifications. For example, there's an LCD panel where you can wire up—I think it's like four or even eight pins. It takes, I think it takes four pins, but with those four pins there's an entire protocol that's saying, okay, you know set these pins at these times. And with just those four pins, you're going to display a whole bunch of stuff on this LCD like—like you could fill the whole LCD full of characters, right? LCD, sorry. And generally, that would be kind of a huge pain. Like it's some custom protocol; it's probably based on timing and all sorts of stuff, but Arduino just has a library for that protocol. So you know, you import this Arduino library, and then you just say, 'Hey, I want the LCD to display JSON,' and that's it. You know, like you don't have to think about the protocol. It does all the work of sending the right thing at the right time to just make the LCD display whatever you want.

1:14:38.082 --> 1:15:17.660
<v B>And the thing that Arduino does—one of the things Arduino does really good—is instead of exposing you the 20 parameters that that protocol has, it just picks at reasonable defaults and doesn't bother you with the details. And you probably can get the details if you want them. But traditionally, you would have been exposed to a giant function setup where if there was already a library, which there probably wouldn't have been, you would have had to go to the data sheet and figure out yourself. And even if you did, you would have had to answer 20 questions: you didn't know how to answer about timing, how fast you wanted to refresh, and what amount of power do you want it to draw?

1:15:17.660 --> 1:15:54.940
<v A>Off. Yeah, exactly. I mean, I plugged in an LCD panel with Arduino, and yeah, it's just, you know, put in a string, and boom, it's rendered. So yeah, Arduino is—and maybe it's because you know Arduino knows the hardware, maybe that's part of it. So there's only so many—there's an Arduino Uno, there's the Due, there's the Mega. There's only a handful of different Arduino chip sets or boards, so they probably just handle these cases for you and they know what the right defaults are.

1:15:55.980 --> 1:17:55.097
<v B>Well, yeah. So we'll talk a little about the processor. Originally, the first ones were targeting 8-bit Atmel AVR chips, which are quite cheap chips. And the fact that they were 8-bit doesn't mean you could only do 8-bit math; it just means the processor is natively 8-bits. And so doing anything more than 8-bits takes multiple instructions. I won't get off right that right now, but they're surprisingly sort of on low amount of resources and low amount of speed, but people still manage to do a lot with them because you're not doing things like rendering full graphics to a display. And so you can do kind of a lot with them more than you would think. But now there are, as Jason was saying, there's a whole bunch, and they have moved on to other different kinds of processors. And the other thing to point out is that although the Arduino line itself is actually still—although much bigger than it was, still pretty small—there isn't anything from stopping you from implementing this core for other processors. So people have taken before Arduino had a Wi-Fi option, took chips that had Wi-Fi on it and imported it. They've taken faster processors and ported the core to it so you can write Arduino sketches for other boards. But one of the things that was pretty distinctive, and other boards have adopted them as well, that wasn't just this easy-to-use interface over the processor, but they also did this certain board shape where they had these female headers facing up, which are headers you could plug into, and they exposed a lot of the almost all of the pins on these headers that face up so that you could just poke a wire down into them to use, which is when Jason says he hooks up a screen, you may

1:17:55.232 --> 1:18:24.700
<v B>just be as simple as literally like plugging a wire into that header. And then they had what's called shields, which like sit down on top of that in this form factor and plug right in and you know expose all the proper pins that you're going to have on this shield, this extension board, this add-on is going to be exposed right there. And that was something they did that maybe other people had done that before, but that was the first time I had seen something that that did. Then it was really quite clever.

1:18:25.439 --> 1:18:46.667
<v A>Yeah, I'd never seen anything like it before. The other thing too is you might say like, 'Oh, these shields are so underpowered,' etc., etc. Let me just get a Raspberry Pi.' The Raspberry Pi is like $20, right? The thing about it is, you know the OS is, as Patrick was saying, the OS is super super lightweight, and on top of that, the OS is—wait, there is no

1:18:46.667 --> 1:18:49.367
<v B>OS to be clear in the Arduino?

1:18:50.620 --> 1:18:56.700
<v A>Well, what is it called then? I guess firmware. I guess the—I mean, I mean the program.

1:18:58.277 --> 1:19:00.471
<v B>Yeah, okay. That's sure you could call it firmware. That's.

1:19:00.471 --> 1:19:46.860
<v A>Fair. Yeah, yeah, yeah. So, uh, you know Raspberry Pi. Let's say you miswire something and you want to, you know, shut down the Raspberry Pi, plug in some different discreet and turn it back on like it has a boot-up sequence. You could corrupt the file system right on the SD card, right? It's not really designed for you to be constantly plugging and unplugging things. Um, you know, it's gonna take a long time to boot up, etc. The Arduino, you know, just starts within I don't know two seconds or something. Um there's no disk like no file system that you're going to corrupt or anything like that. Um, you know, and it has uh, you know, the Raspberry Pi has a lot of the same pins but uh, you know, for development it's going to be a very painful experience to develop on the

1:19:49.071 --> 1:19:57.677
<v B>Pi. Yeah, as Jason pointed out, I mean, the Raspberry Pi processor is way more powerful than what's on the Arduino, but they're not really meant to do the same thing, right?

1:19:59.500 --> 1:20:12.038
<v B>Yeah. So you're not you're not meant to be rendering Windows in a full Linux distro. Uh if you they actually do have an Arduino now that I think has a full Linux distribution on it, um which is sort

1:20:12.038 --> 1:20:14.198
<v A>of confusing, but for the most part that's

1:20:14.198 --> 1:20:27.664
<v B>for the most part that's not what people use the Arduinos for. It's more like Jason said just you would have it to toggle some pins, turn on some LEDs, move some motors, um and doing that from Linux is to me actually slightly awkward. Yeah.

1:20:29.335 --> 1:20:48.140
<v A>Um yeah, I mean, and if you wanted if you needed the horsepower to run like a camera or something like that, um you could always take something that works on Arduino and, you know, as long as you're using the same pins on the Raspberry Pi or just some mapping or something like that. But you don't want to be doing the development on on a Pi; that'd be bad.

1:20:50.380 --> 1:21:40.429
<v B>Yep. And so one of the things about um the all the different hardware as Jason already mentioned is that they have these really awesome libraries that you can, you know, download and use. Um so there's a bunch of included ones for things like moving stepper motors, but then there's all sorts of other ones for like I want to know the barometric pressure outside, I want to know the temperature from this chip, I want to record sounds, you know, all sorts of little chips that go into cell phones and cars and airplanes and you name it. Uh, you know accelerometers whatever these kind of devices get made in the by the millions and millions and people mount them on, you know, adapter boards, little PCB boards to work with Arduino and then provide these libraries so that they're just become really quite easy to use. Yeah.

1:21:41.425 --> 1:22:39.947
<v A>I mean one thing that kind of shocked me when I first got started with Arduino a few months back is uh the fact that yeah, I mean if you need drivers for everything, right? I mean like even if you get let's say hypothetically you get a USB adapter, like a USB—I think USB is just four pins, right? So you could, you know, take a USB device and you could plug it into four pins in your Arduino. But at the end of the day, like you need a driver like with Linux or with Windows. You plug in a USB joystick and there's like a generic, you know, HID driver that covers almost any joystick, right? With Arduino, I mean that might exist also for Arduino. I haven't actually looked about joysticks, but but but you know it's a completely different universe, and so things which are very simple um when you have I guess just to use Patrick's when you have an operating system uh you become very hard in Arduino as well. So but

1:22:40.386 --> 1:23:36.860
<v B>that is the way it works. So, you know, this is actually great education and there is a lot of job opportunity for this. Um which is things like, you know, you'll hear things like I²C, SPI, serial. These are like communications protocols that chips use to talk to each other. Um and unless you're doing some very specific work in Linux, you're unlikely to ever know that, you know, the exact protocol that's running over USB that allows your joystick to work or that your phone processor uses to talk to the camera to control it. Um but if you're on Arduino, you're going to be thinking about those things and there are a lot of libraries to help you out. Um but but you're going to learn about how those things work and what it means like what are the trade-offs for running those protocols faster or slower or over long distances um and about what happens when different devices require different voltages to work at

1:23:38.460 --> 1:23:40.765
<v A>Yeah, I still haven't figured that one out. But

1:23:42.402 --> 1:25:33.659
<v B>there's so we talked a little bit external hardware, but the Arduino also has some internal hardware. So it has some voltage regulators for providing different voltages on its output pins. It does have um some analog to digital converters which are what allow you to read external voltages. So if you hooked up a microphone or a light sensor or um you know like we were talking about uh uh, you know a potentiometer, a variable resistor um that you were using to use as like a knob to control some, you know, the position of something, um those all ultimately produce a what's called an analog voltage. It's just a voltage that moves smoothly between a two set value. So it might go zero to five volts and it could be just any value in between. Um but of course the Arduino can't represent the infinite number of values between zero and five, so it has to make them into discrete steps, and it's called sampling. It samples them and makes them into the discrete set. So if you say zero to five and I'm going to use eight bits, so I have, you know, 256 values to represent between zero and five, and so you cut up the range zero to five into 256 buckets, uh and then you see which bucket the voltage currently falls in. That's what an analog to digital converter does. Um and the Arduino has some of these internally so that you can use them and libraries for making it really easy where you just say I think it's just analog read and it just gives you a zero to 255 answer for which bucket the voltage is currently in. Yep, yep. Um then you can do uh it can do analog out, which I believe the base Arduinos don't actually have digital to analog converters, which would give you this. So instead they do what's called pulse width modulation, which I won't get into. It's actually really complicated, but basically it

1:25:34.140 --> 1:25:58.853
<v B>makes a square wave that is on for a certain percentage of the cycle and then smooths that out with a capacitor so that you get a voltage that's roughly, you know, corresponding. That so you could do analog right? Or if you want to move a servo motor which uses PWM directly, that would be how you actually move it to a certain angle. That's right. So,

1:26:00.068 --> 1:26:38.299
<v A>I have, you know, the robot arm is just done with a bunch of servos, and if you, as Patrick said, if you give let's say three-fourths of the voltage, then it's going to move three-fourths of the way. You know, if zero is, you know, all the way to the left, and you give it three-fourths of the total voltage, it'll move, you know, three-fourths of the way from left to right, and you can control it. And Arduino abstracts all of this away to where you literally just give it the degree. Oh, really nice. Yeah, yeah, exactly. You just say like I want it to go to angle, you know, 45 degrees, and it just figures it all out for you. That's really nice.

1:26:38.299 --> 1:26:44.432
<v B>Yeah, and then we talked a little bit about shields. So I mean, do you have some? Have you used any shields, Jason?

1:26:45.360 --> 1:27:12.765
<v A>Haven't. There is a servo shield. Um the so there's not to get into too much detail about this, but there's stepper motors and servos. Basically, servos can only go, I think at most 270 degrees, so they can't, you know, spin around in a circle or anything like that. But the servos are self-aware, so you could tell the servo, you know, go to degree 23, and it'll just go there. Right? It's a closed loop.

1:27:12.765 --> 1:27:13.997
<v B>Closed loop. Yeah, and

1:27:13.997 --> 1:27:37.960
<v A>when it starts, it knows what degree it's at and everything. Um well, it's more than just closed loop, right? Because because um yeah, stepper motor, I believe, is also closed. No, no. Well, the stepper motor, you give it a difference. You say like I want it to take two steps, and then it will make sure that it takes those two steps. This

1:27:37.960 --> 1:27:52.169
<v B>is getting really off into pedantic stuff. It's not important, but okay. Actually, the stepper motor, if you're holding like the motor or it's like over-torqued and you tell it to move and it can't, it won't actually know if it succeeded or failed.

1:27:53.063 --> 1:27:54.582
<v A>which is why if you're

1:27:54.582 --> 1:28:06.664
<v B>if you ever have your 3D printer hit the print and skip where it like misaligns, that's what happens. It lost steps. It hit something and couldn't move, but it didn't know it couldn't move. The

1:28:08.149 --> 1:28:09.904
<v A>servo, the servo is closed loop.

1:28:09.904 --> 1:28:17.599
<v B>it will continue to fight you, and if you hold it, it will just keep fighting until it gets to the position you

1:28:18.831 --> 1:28:48.818
<v A>told it to. Interesting. Okay. So but anyways, the stepper motor takes—I don't know why—the stepper motor takes so many more pins. Um it's probably just whatever the different technology is. The servo motor takes it takes two pins and the stepper only takes one. And so there's a shield you can buy which gives you just a lot more pins, so you can control, you know, eight stepper motors or something like that. But yeah, I haven't had a need to do that since I'm only using servos mostly. Yeah. So but there's

1:28:51.670 --> 1:29:42.210
<v B>shields for everything. So you can imagine a printed circuit board, a PCB, is like a piece of fiberglass with metal traces and the circuitry sitting on it. And that's what the Arduino board itself is. But then you can basically get another board that plugs into the Arduino board that is shaped often similar to the Arduino board, and you could have a display on it. You could have, like Jason was saying, a whole bunch of connections for servos and stuff. You could have it, like be able to control lots and lots of LEDs there. There's all sorts of crazy ones. There's ones with batteries on them so you can actually run the Arduino without it being plugged in. Oh cool. Yeah, so you can find all sorts of shields, and these shields are just like a common shape and a set of libraries is normally what's expected that allow you to plug into the Arduino and add functionality, add hardware that it didn't start out with. Yeah.

1:29:43.949 --> 1:30:14.620
<v A>That makes sense. So I think we've talked about—we've mentioned GPIO. We haven't said what it is. GPIO just means General Purpose Input/Output. And so what that means is the you know, you can plug something like a servo into one of these pins and send signal out to a servo. You could also plug in something like a joystick; that's—that's you know sending data into the Arduino, and the same pin can do either or.

1:30:14.620 --> 1:30:26.524
<v B>Yeah, so sometimes a pin could be an input and sometimes a pin could be an output. And it can switch back and forth. It's programmable.

1:30:27.267 --> 1:31:14.027
<v A>Right. Um, so yeah, as far as things you plug into the Arduino, so um yeah, there's—I mean a ton of stuff. There's—there's, as you said, motors, LCDs, panels. Um you know, there's things that sense water, so you can have a little thing which is like it looks kind of like a long circuit board, but what it's actually doing is it's telling you the water level. So it's just I guess—I'm not quite sure from a physics standpoint how it works, but you would stick this and it—it will just tell you like, you know, how much of this board is full with water so where the water line is. There's all sorts of crazy stuff, you know, cameras, there's like depth sensors things like that, but ultimately everyone

1:31:16.710 --> 1:31:20.271
<v B>wants to make a robot, is that right? Like I feel that's the—yeah. Yeah.

1:31:21.132 --> 1:32:27.340
<v A>I mean everyone at some point wants, you know, some type of motor or some set of motors and then some type of input, um you know, that it's like a camera or or some kind of like a stop sensor or something like that. And all of that is totally doable with Arduino, and the libraries make it—make it super super easy to use. So there's like a depth sensor that's compatible with Arduino, which typically when they say compatible with Arduino what they mean is that they've—they're providing some type of software. Um the Arduino IDE also has a sort of repository of libraries. So someone makes a depth sensor, they can upload the depth sensor library to the Arduino, you know, cloud I guess, and um so you'd put the part number and you'd get their library. And yeah, the libraries are really where the magic is because like I've been getting kind of more into it. I really thought that I was gonna have to learn a lot more than I actually did, and it's because the libraries are just hiding all of the complexity from me.

1:32:29.500 --> 1:32:39.162
<v B>Yeah, I mean I think Arduino is really awesome. It isn't something where you would ever get a job using an Arduino. I mean maybe there are, but it would be—it

1:32:39.398 --> 1:32:41.100
<v A>an exception. Yeah, highly unlikely.

1:32:41.100 --> 1:33:09.267
<v B>Very unlikely, but it does introduce you into a world. It's a bridge because to go from not knowing how to program to doing embedded programming is a really big jump with a lot of things you have to pick up. And so what the Arduino has really done—um or has at least brought into the mainstream is the ability to use a little bit of programming and a little bit of understanding of electronics and still do really cool things. Yeah.

1:33:10.870 --> 1:34:05.207
<v A>Exactly. And so there's—there's a lot of kits and starter packages. Um I'll say the one I got—I think my heuristic was basically a lot of Amazon reviews, so I didn't do a ton of research. Um but they're also not very expensive. So um which is really nice. So I got the Elegoo Ultimate Arduino Kit from Amazon. Um but basically it came with a—you know, Elegoo is a company that manufactures electrical components, and so they made the, you know, following the spec that open-source hardware specification, they made their own Arduino. Um and so you get this kit. It's—I would say it's maybe like I don't know 16 or 18 inches by about 12 inches. It's kind of like this, but it's—but it's about two or three inches high, so it's relatively thin, this box.

1:34:05.595 --> 1:35:30.038
<v A>comes with like a bunch of resistors, voltage regulators, all sorts of sensors, motors, servos, stepper motors—all this stuff. The Arduino um and then you can go on their website or you can using the CD that's included. I literally didn't have a CD reader, but I got everything off their website, you know, a PDF manual, and it's a really long manual. You don't have to go through all of it, but it's just a ton of different things you can do with Arduino. So for example, um you know I want to build this robot arm, so I went straight to the servo section, and the cool thing is it has pictures. So it has a—a sort of schematic of what it should look like once you've plugged in the servo and everything, and then it has like actual real-life pictures of what it should look like. So if you have trouble reading the schematic, you can see the picture and say, oh, like I'm doing this wrong or what have you? Um the other thing I—I've yet to, you know, blow anything up. Actually, I did blow up a stepper motor controller. That was completely my fault. Um it's kind of a long story. I basically touched it on this like box, this metal box, and it shorted out. Um so yeah, just quick PSA: don't have like a lot of metal things around when you're—when you have just like bare PCB and when you

1:35:30.038 --> 1:35:38.897
<v B>say blow up? I assume you mean you let the magic smoke inside the chip that makes it work come out. Yeah, exactly, like caused an explosion. Oh no.

1:35:39.218 --> 1:36:33.180
<v A>No, it was just a tiny pop, and some smoke came out. And that stepper motor controller was only like 80 cents, so it wasn't a big loss. But yeah, nothing like I was in danger or anything. But yeah, so I went through this kit, and it was fascinating. I mean, I learned so much by going through the kit. They also explained things like how to read a resistor. So the resistor has certain colored bands, and there's a certain procedure where you can look at those bands and then know the level of resistance. So it talks about a lot of it covers, it touches a lot of different areas, and you end up with like real, tangible things that you could take pictures of, show your friends stuff like that. So check it out.

1:36:35.850 --> 1:36:36.964
<v B>All right, that's well.

1:36:36.964 --> 1:36:37.825
<v A>Pretty much. We.

1:36:37.825 --> 1:36:42.482
<v B>Must have had a lot of pent-up discussion because this has become a very long episode. Yeah.

1:36:43.900 --> 1:37:20.687
<v A>Yeah, there's a lot going on. It's been a it's been a long time, but thanks again for everyone for your support. We're definitely going to get the Christmas gifts out ASAP, so probably in the next, you know, a few weeks or a month or so. Yep. And yeah, definitely if you've built anything with Arduino, send us some pictures. We'll post it on Facebook, and we've gotten a lot more Facebook followers. We're up to something like 6,000. So thank you for that. And yeah, we'll we'll post to all 6,000 people a picture of your Arduino experiment to send it to us. So yeah.

1:37:22.274 --> 1:37:24.349
<v B>Then everyone will start your GitHub repository. That's.

1:37:24.990 --> 1:37:30.441
<v A>Right, that's right. Then you can get the raise you've always wanted based on your GitHub repository. All right. Until

1:37:30.509 --> 1:37:31.470
<v B>Next time. See.

1:37:32.044 --> 1:37:32.540
<v A>You later.

1:37:40.785 --> 1:38:07.099
<v A>The intro music is Axo by Binar Pilot. Programming 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.

