WEBVTT

0:00:00.000 --> 0:00:08.720
<v A>Hosting provided by HostTornado. They offer website hosting packages, dedicated servers, and VPS solutions. HostT.net.

0:00:15.600 --> 0:00:20.340
<v B>Programming Throwdown, Episode 19, Basic. Take it away, Jason.

0:00:20.880 --> 0:01:06.620
<v A>Hey, everyone. So I just got back from Tahoe. For people who know, Lake Tahoe is a lake that sits on the border of California and Nevada. And is that right? I think so. Yes. I've done a lot of driving, but basically, it's pretty fun. You can go skiing in winter. In the summer, you can go hiking and rafting and things like that. So we went rafting. We actually saw a black bear that literally jumped in the water and started coming towards the raft. And we started freaking out. But he didn't make it all the way to the raft. So he got about, like, 10 feet away. And then he turned around and ran back.

0:01:07.600 --> 0:01:09.800
<v B>Lucky for all the inhabitants of the raft, I guess.

0:01:10.020 --> 0:01:12.036
<v A>Yeah, exactly. Yeah, we were

0:01:12.036 --> 0:01:18.651
<v B>wondering who we should throw—feed the bear. Well, the thing is, you don't have to be able to outrun the bear, just the slowest person. What happens if you're in

0:01:18.651 --> 0:01:27.360
<v A>a raft, though? If you're in a raft, you just have to be able to throw one person into the bear. Okay. You have to be the most liked, the most disliked person. It's a huge disadvantage.

0:01:27.539 --> 0:01:31.324
<v B>Do you have time to take a vote? Yeah, you could pretty much vote someone off the raft. I think it

0:01:31.324 --> 0:01:50.832
<v A>just makes whoever's the strongest, right? Just throw the weakest person off. Maybe you can be clever about it. Like, hey, get the camera and then push them in or something, you know, when they're not looking. So there's an opportunity to be crafty here and save yourself, you know, as in many, many dangerous situations in life. Oh, man. This conversation's

0:01:50.967 --> 0:01:55.034
<v B>not going anywhere good. So bears and rafting. So we saw a bear. Near-death

0:01:55.034 --> 0:02:13.579
<v A>experiences. Okay. So first a bear jumps in the water. This is why I don't go outside. Oh, yeah. Stay inside. Look at these things on YouTube. Sometimes bears can come inside, though. You have to be careful. I lock my freshman—I don't know. Yeah. So, yeah. So a bear jumps out from the bushes, like, straight out of duck hunt or something. Like, bear hunt. I don't know.

0:02:13.680 --> 0:02:15.500
<v B>That was a dog. The dog comes out of the woods.

0:02:15.500 --> 0:02:30.980
<v A>Yeah, yeah. You're right. Dog and the ducks. Yeah, yeah. So straight out of Bear Hunt, The Duck Hunt Hack. I don't know. So then, so we're on the raft. I go a couple more miles, and then take a guess what jumps come flying out of the forest and jumps in the river? A salmon. A car.

0:02:33.220 --> 0:03:22.020
<v A>Like, and it really isn't funny. But no one was hurt, so I guess it is funny. But seriously, a car just, like, goes right veering off the road and just crashes, like, into the bank of the river, like, while we're on the raft. So, were you in a Monty Python real-life experience? Like, it was just totally. So a windshield was, like, totally smashed. But the people were okay. Were they in the car when it went into the river? I mean, there was a driver in the car, and they got out. And so it was pretty intense. I'm never going anywhere at these places when you're around, because apparently. So I've been rafting twice. And the time before, a tree, a gigantic Sequoia tree almost crushed us. So I think we're never going to go rafting again. Yes. It's two for two crazy things happening. Stay away from me. So, hey, you want to go rafting? No. No.

0:03:23.620 --> 0:03:29.940
<v A>Unless it's on the Wii. That's right. You can go rafting on the Wii U, which is coming out in, like, a couple of months.

0:03:30.180 --> 0:03:32.220
<v B>Oh. I didn't even realize I was segwaying.

0:03:33.620 --> 0:05:04.500
<v A>So what's different about the Wii U? So I haven't read too much about it, but I'm posting this article. And basically, from what I've read, the controllers have, like, a touchscreen on them. And so this. Did you ever use that thing where you could hook up your Game Boy Advance to the GameCube? Did you ever do that? And they had, like, Zelda Four Swords and some other games? Oh, okay. So this was totally awesome. This is way ahead of its time because, you know, nobody has four Game Boy Advances, right? So the idea is, like, you could play this game called Zelda Four Swords, and you would use your Game Boy Advance as connected to the GameCube. And on your screen, you would have private information, like the map, which you're revealing, but you don't want other people to see. And so as you explore the map, like as your Zelda character explores the map, you start to understand where the switches are and how to get past the door and stuff. But you don't want to give that information out because you want to be the first one to the finish. So that game was totally awesome. Loved it. The Wii U is going to come out with games like that. They've already announced they're going to make a Zelda pretty much like a Four Swords kind of game. So really looking forward to it. You're going to buy one? Awesome. So, you know, I'm going to do what I did with the Wii, where I'm not going to be lining up at the door, like killing myself, you know, to get one. But, you know, after, like, the hype has died down, maybe like six to eight months, the controllers come down in price. Yeah, I'll probably get one. What about you? No. You're not going to get one now? No.

0:05:05.160 --> 0:05:29.979
<v B>I mean, maybe when it goes to $49.99 or $100 or something. How much is it right now? It looks like $300. $300? That's what I just saw. Oh, okay. So, yeah, I mean, what I want is to be able to do that, but with my phone. Yeah, totally. So, like, I have a phone. I have tablets. Probably too many. Yeah. And everybody I know has them as well. Why can't I do it with that?

0:05:30.140 --> 0:05:30.900
<v A>Yeah, exactly.

0:05:31.060 --> 0:05:37.210
<v B>Yeah, I feel exactly the same way. Connect over Bluetooth or Wi-Fi or whatever. And I feel like that would be super awesome. Yeah.

0:05:37.580 --> 0:05:50.035
<v A>I mean, I'd give my right arm for just, like, something that would, like, hold my phone, like, have a little cradle for the phone, but it would be a gamepad. They have those. Oh, really? Yeah. I think for the iPhones, I think. Oh, man. Where can I give my

0:05:50.035 --> 0:06:08.580
<v B>right arm? Uh-oh. They have yet. Well, they even have the retro arcade cabinet thing you can put your iPad in. Oh, I've seen that. And it has, like, a joystick and the actual mechanical buttons. Yeah, that was pretty awesome. And I think it connects over Bluetooth. Oh, okay. That makes sense. So, I mean, I'm sure they have a gamepad or something like that. I think I've seen them before.

0:06:08.880 --> 0:06:13.086
<v A>Yeah, it just has to be small form factor. That's secure. It has to, like, fold in on

0:06:13.086 --> 0:06:26.840
<v B>itself. Oh, so, like, you can put it in your pocket. Yeah, exactly. Yeah, I mean, I think there's going to be some really cool things coming out for gaming, but I find myself just playing a lot more casual games than sitting down and playing it. Just, I guess, where I am in my life, maybe. I don't know.

0:06:27.380 --> 0:06:48.580
<v A>I've been playing The Sims free version on the Android phone, and it's pretty wild. So, this Sims, you can't speed up time, and everything takes real time. Farmville. So, it is kind of like FarmVille. It's true. But, you know, I don't know. You have been hacked, sir. You have been exploited. Prepare for your wallet to drain.

0:06:50.420 --> 0:06:52.640
<v A>Yeah, and it's constantly, like, you know.

0:06:53.140 --> 0:06:54.560
<v B>Because you can speed up time if you have money.

0:06:54.720 --> 0:06:55.679
<v A>Yeah, that's right. If you have

0:06:55.679 --> 0:06:56.556
<v B>money, you do it. I knew there

0:06:56.556 --> 0:07:11.085
<v A>was a trick to this. Yeah, of course. So, like, I put all the Sims to bed at night, like, right when I'm going to go to bed. And so, there's something kind of creepy but cool about that. But then it's like, hey, you know, your Sims could stay up all night, you know, gaining experience if you paid, like, you know, a dollar or something.

0:07:11.440 --> 0:07:21.520
<v B>To Chinese workers who farmed them for you all night. That wasn't, I'm leading into the next story. I wasn't actually trying to be mean to Chinese people.

0:07:22.360 --> 0:07:27.404
<v A>No, that's true. Chinese workers do a lot of, provide a lot of valuable service to us. So, you

0:07:27.404 --> 0:07:28.980
<v B>recently learned about that?

0:07:29.320 --> 0:08:00.057
<v A>Yeah, and there's an amazing tech talk. You guys should totally check it out. I'm going to have a link to it. And the tech talk title is The Voice of China's Workers. It's a supremely interesting story. I'll just cover some of the most interesting parts. One is all of them walk around. Like, all of the workers, they go home to visit their families and stuff. And they bring with them, like, iPads and Coach purses and stuff like that. And, like, designer Coach purses. Because they, since they work in the factory, they get these at, like, ridiculous prices. So, like, this lady, she

0:08:00.057 --> 0:08:02.340
<v B>said. The ones with little blemishes or just, like.

0:08:02.700 --> 0:08:42.300
<v A>Well, possibly. It wasn't said. But, yeah, this reporter was, like, she, you know, she had followed, like, several of these women who worked in a Coach purse, you know, factory. And, yeah, after six months, they gave her, like, just, you know, 20 or 30 Coach purses and some other stuff. And she's, like, you know, no, give this money to your family. And they're, like, what are you talking about? Like, this is, like, 13 cents or something to us, you know. And there's, like, a 100X markup. That same Coach purse sold for, like, $1,200 or something. And so, just, and they actually, you know, they're not oblivious. They know how much the things are sold for in America.

0:08:42.380 --> 0:08:45.620
<v B>But they can't; there's no way for them to be able to sell them there.

0:08:45.700 --> 0:08:50.420
<v A>Yeah, exactly. And so, they walk around saying, like, this Coach purse sells for $6,000.

0:08:50.760 --> 0:08:52.860
<v B>It's like the equivalent of leaving the price tag on?

0:08:52.980 --> 0:08:59.780
<v A>Yeah. Yeah, exactly. They leave the American price tag on, like, the purses and stuff. But they couldn't sell it for a dollar.

0:08:59.780 --> 0:09:29.545
<v B>I guess it's always the interesting thing, right? People talk about how we put so much value on things in dollar amounts. But then, like, if you're stranded on a desert island, that stuff's worthless to you. Like, you don't have food and water. And it's really all relative, like, how much something's worth. So, you know, if you're in China and there's nowhere for you to sell them and these purses are in high supply and they don't hold value, you can't do anything with them except maybe burn them for fuel to heat yourself or try to trade them for other, like, collect them all, like Pokémon or something. Like this

0:09:29.545 --> 0:09:57.827
<v A>is not, like, I don't know. Totally. The other interesting thing is they a lot of them don't feel like they're being mistreated. Like, the hours are harsh. But there's a, I guess in the Chinese culture, they're used to working really long hours even when they work in the fields. Like, a lot of them come from rural backgrounds where they worked a lot of hours there. They said that the thing that they really want is education. And then it's really hard for these factory workers to even learn English and things like that. Because

0:09:57.827 --> 0:10:00.400
<v B>it takes a lot of time. Like, you have to spend a lot of time to learn.

0:10:00.520 --> 0:10:20.740
<v A>Yeah. And there's just no opportunities. Like, there's just no; they don't have classes or anything like that. And so I thought that was interesting, you know. And in fact, the beginning of the talk was, like, you know, you guys are going to think that these workers are oppressed and they're just slaving away. But the reality is that the things they want aren't what you think they'd want. And I thought, you know, the whole thing is interesting. You guys should definitely check it out.

0:10:21.060 --> 0:10:23.640
<v B>Yeah. And we definitely weren't trying to be mean to anybody.

0:10:23.780 --> 0:10:29.740
<v A>No, no, not at all. Yeah. And you can check it out by connecting your Raspberry Pi up to your television if you have one.

0:10:30.240 --> 0:10:32.117
<v B>Did you get yours? Or did you never actually

0:10:32.117 --> 0:10:44.020
<v A>wear one? No, I ended up. So, yeah, basically I just decided I was either going to get a Raspberry Pi or an iPhone Developer's license. Okay. Because they're both around the same amount. Okay. And so I just went with the iPhone Developer's license.

0:10:44.031 --> 0:12:25.703
<v B>Okay. I see. I see. Yeah. So Raspberry Pi, we've talked about these small devices before. And they finally came into, I guess, wide-scale distribution after having, like, a huge back order and not making them in very high quantities. And so people are starting to come out with interesting projects. And this one is a guy at a university and his son built a supercomputer out of Raspberry Pis and Legos. Awesome. So the son had actually been learning programming through one of MIT's, like, more visual programming languages called Scratch. I don't know much about it. Maybe we'll have to look into it in the future. Oh, yeah. Add it to the list. Add it to Scratch. Scratch. And so they networked them all together. They put all the, you know, high-performance computing stack on it, things like MPI, Message Passing Interface. Yeah. Hopefully. Okay. Totally. Things like that. And the interesting thing is they didn't have a lot of performance statistics that I saw in the article reading briefly. But what's interesting is that, you know, it's very difficult for universities or small-scale people to learn how to write programs for this style of computing. So even if it's not a top 100 supercomputer that you're building, just having something that's more than five or six machines, but something that is, like, you know, 20, 30, 40 machines and understanding where the bottlenecks are and how to write code for that and how to optimize, that's, like, very important to do but could be very expensive. Mm-hmm. And so this person spent about $4,000, it said, to make this. And it'll be an invaluable learning tool. Now, $4,000 is a little bit much for, like, a side hobby. So, you know, it's probably hopefully for the university itself. But it's definitely an awesome learning experience that speaks to the interesting things you can do with stuff like this. Yeah, this.

0:12:25.703 --> 0:12:28.080
<v A>picture is amazing. You guys should definitely read this article.

0:12:28.080 --> 0:12:35.980
<v B>Yeah, so they built the racks and cases out of Lego. It's phenomenal. It is really cool. And then, you know, hooked them all together with...

0:12:35.980 --> 0:12:44.040
<v A>It's amazing that the circuit board is laid out in such a way where the Lego could perfectly fit, you know? I mean, that's phenomenal.

0:12:44.040 --> 0:13:24.840
<v B>Yeah, well, it's also interesting that it's the scale, right? Like, how small it is that Legos are about the right size. Yeah, exactly. Like, you don't need; it's like four or five Legos. Like, three Legos in one dimension and like, four Legos in the other. It's like not a lot of Legos that you need. This is... Look at the power adapter. This is so awesome. We can see that Jason read the stories in advance. I'm totally busted. So, yeah, this is very interesting. And the other thing I'd be curious is people doing, and I've seen some stuff similar with Amazon, their cloud computing, right? So, you know, bringing up a bunch of computers there so you can practice and do large-scale supercomputing style work and kind of learn and work on it.

0:13:24.920 --> 0:14:27.878
<v A>Yeah, totally. Actually, along those lines, there's this thing called Common Crawl. Have you seen this? No. So, Common Crawl is a 60-terabyte snapshot of the internet. Yeah. And so what you can do, they have actually code contests constantly with different themes, which is kind of fun. But if you have an Amazon account, which, you know, if you're a student, you can get one at a discount or even free. You can write, you know, sort of algorithms that work on the entire internet. And they run on Amazon EC2. And so Common Crawl is a way to sort of make it easy for people to write things like, oh, what's the co-occurrence matrix of every word on the internet? Or, oh, like, let's try and do something cool with all of the Twitter data that's public or, you know, things like that. So they do a lot of fun stuff. You guys should definitely check out Common Crawl. Interesting. Yeah, that sounds cool. It's another way to sort of teach people about super parallel. Yeah. I mean,

0:14:27.878 --> 0:14:37.750
<v B>big data, right? Like, I guess that's the buzzword for it. But it really is important. We see it out here being where we are in California. Everybody, everything is all about big data. Billboards

0:14:37.750 --> 0:14:38.800
<v A>on the side of the road.

0:14:38.960 --> 0:14:57.220
<v B>Yeah. It's crazy. But it is true. Like, you have to take special care when you get into data that starts off the sentence. Like, for every website in the web, count the number of times that word occurs, right? How do you handle that? What data structures do you do? This is very valuable. And it is a good skill to have if you're trying to learn stuff.

0:14:57.540 --> 0:14:58.520
<v A>Yeah, totally. Totally.

0:14:58.620 --> 0:16:00.724
<v B>So our final news article is kind of a little bit silly. But somebody wrote about making a Turing-complete computer using three Magic the Gathering cards. So Magic the Gathering brings a little nostalgia for me. It is a collectible card game. So it's a card game that has all these different kinds of cards. And some are rare and very rare. And some are very common. And there's a set of rules. And basically you try to build up a deck that's your favorite deck. And, you know, you play your buddies, you know, with your cards and see who's the best or whatever. This was before the internet was really big. Well, maybe it was different than it was today. So we had to spend time outside. Did you get into it? So Intuit was different. I never, like, so it can be very expensive to acquire the very rare cards and stuff. Although they've gone up in value. Like, I kind of wish I had bought them and then, like, sold them today. But we would play. We would go buy. We would go to the store that sold them and buy the like, pack of common cards. Like, the box of like, 400 for like, $5. And then we would just play games, me and brothers and I, right? Like,

0:16:00.724 --> 0:16:01.635
<v A>the really

0:16:01.635 --> 0:16:08.560
<v B>cheap stuff. And it was, our decks were horrible, right? But it didn't matter because as long as everybody else's deck is horrible, it's still fun.

0:16:08.920 --> 0:16:09.140
<v A>Yep.

0:16:09.800 --> 0:16:28.450
<v B>So anyways, if you've never heard of it before, you can check it out. There's actually, they recently released a program for Magic: The Gathering that has a lot of cards in it and hosts games online. So I think they have, like, an iPad, iPhone. And it's actually, considering how much it can be to buy a real deck and kind of play it, it's fairly affordable, I guess. Is it? Do you

0:16:28.450 --> 0:16:29.360
<v A>have to pay per card?

0:16:29.620 --> 0:18:25.883
<v B>So the way I think it works is, like, you can buy pre-constructed decks of cards or you can pay for, like, random things. Similar to, like, buying booster packs or whatever. Which is kind of interesting. Maybe we'll have to talk about gaming sometime because a lot of cool games. But, so this person found essentially, Turing Complete is named after Alan Turing who showed that there exists a computer that if it can do a certain set of routines, can perform any computing function. It can compute anything that's possible or whatever. So it's essentially showing that if you have a programming language or a computer that's Turing Complete, that given enough time and possibly infinite time, it can accomplish any given computing task. Right. And so this person had three cards with unique properties that involve counters. And the idea of a Turing machine is it's a tape head moving on an infinite tape and kind of storing data in one place and then having an instruction that tells it what to move left or right or, you know, and then what to do when it gets there, that kind of thing. And so they were able to do that with these three cards. This is kind of interesting. It's kind of silly, but it's kind of fun to read about. Yeah, it's amazing. Yeah, it's so many people do these things every once in a while. Build the working computer out of Legos or ball bearings or, you know, Magic: The Gathering cards. Did you see the one in Minecraft that was made out of Minecraft animals and water? Not? Oh, I haven't seen that one, no. I've seen the ones where they use the, what is that called? The redstone and make the wires. And actually people built like a game. So like it have a giant screen that displays stuff and has a graphics processing unit and like everything. That's awesome. Oh, man, it's such crazy. That's great. I guess that's one of those things that people say about Guitar Hero or whatever. Like if you spend that much time playing Guitar Hero, you should learn to play real guitar. That's not exactly the truth. But it's the same thing like, oh, you spend that much time like creating Minecraft things. Like that's crazy. Like it's awesome and it's dedication. And they're having fun. So more power to them. I don't think, but it's like, wow, like I wonder what other stuff you could do with that much time. Yeah.

0:18:26.380 --> 0:18:58.654
<v A>I noticed I was watching a YouTube video the other day where somebody had a, like a Minecraft. I guess you could export your world and like send it to people and they can import it. And this guy had made a world which was like an RPG. Oh. And you had to like, the thing is, the onus was on you to follow the rules. Like of course you could just punch your way through the wall and be done. But like assuming you followed the rules, like it was this like pretty fun, like semi-random like RPG. And I thought that was awesome. And so I think there needs to be like a database of like Minecraft worlds. There

0:18:58.654 --> 0:19:32.860
<v B>probably is, dude. There's like everything. So it's so interesting, Minecraft, that the guy Marcus Pierce, is that Marcus Pierce? Yeah. Marcus Person. I don't know. Okay. They call him Notch. Yeah. You know, he like made something that, you know, took him some time and work and he's kind of become famous. But a lot of it is due to the openness. Like not just the game is an open world, but like it's open to modification and sharing levels and hacking save games and creating macros. And he kind of incorporates stuff that people do and like brings it back in. And now he doesn't actually work on it anymore. He has his team works on it or whatever. And he does other stuff. Yeah.

0:19:32.880 --> 0:19:33.687
<v A>He's working on that

0:19:33.687 --> 0:19:47.659
<v B>Space One. The Space One. Yeah. I don't know how to say it, but you can look it up. And it's kind of similar. So it's interesting that he embraced the openness of the community so much and that they've really kind of embraced him back. And people see these crazy YouTube videos and then go buy a copy of his game, right? Yeah. Yeah.

0:19:47.720 --> 0:19:51.962
<v A>I was thinking about getting it for the phone. I just don't know how good it's going to be. I

0:19:51.962 --> 0:20:25.800
<v B>have it for my Xbox. And the cool thing about the Xbox is since the game really is meant to kind of run in like 640 by 480 or 800 by 600, because it's really pixelated and blocky. So you can make it bigger, but you're not really getting any more data on the screen. Right. And so I have like a nice TV, you know, HD resolution and the Xbox can push that. So you can actually play four players simultaneously on one screen, like sitting there with Xbox controllers. And you, although your screen gets smaller, right? Like you still have the same data that's on there. Yeah. And so it works pretty well. So that's cool. Play with people sitting in the same room, which is kind of fun.

0:20:26.020 --> 0:20:27.040
<v A>Yeah. Yeah. That's great.

0:20:27.200 --> 0:20:28.300
<v B>But I don't have it on my phone yet.

0:20:28.880 --> 0:20:31.840
<v A>Yeah. I'll probably get the demo maybe today or tomorrow.

0:20:32.445 --> 0:20:36.411
<v B>And so if you don't do any work for the next week or two.

0:20:36.920 --> 0:20:44.629
<v A>I actually, so the reason why I don't have it on my phone is because of our tool of the bye week. Uh oh. Tool of the,

0:20:44.629 --> 0:20:45.740
<v B>we didn't say it in sync.

0:20:46.620 --> 0:20:49.911
<v A>Okay. Continue. Our three, two, two. Oh,

0:20:49.911 --> 0:20:51.852
<v B>I missed it again. Okay.

0:20:52.520 --> 0:21:10.659
<v A>Okay. Just continue. Just go. All right. So my tool of the bye week is actually a game dungeon crawl stone soup. Are you going to waste more of my time? Like am I literally going to risk getting fired for not doing work? This might, this might cause you to get fired, but it'll be worth it. You'll be, you'll be, you'll be. How can you determine if it's worth it for me? Actually worth it might not be the best choice of words.

0:21:12.320 --> 0:21:37.262
<v A>But so this is, I picked this for a number of reasons. One is, it has an awesome tutorial, which is something that like roguelikes, which this is a roguelike, are notoriously bad at. Like if you go to play NetHack, it starts off, you know, pick your role, pick your race. You don't know what any of them really are. And then it's like, go. Yeah. Try Dwarf Fortress. Yeah. Dwarf Fortress is the worst. I would kill to have an awesome tutorial. They have

0:21:37.718 --> 0:22:02.963
<v B>a book that people are like raving about that. Like it's, so it's kind of crazy. You have to read like a book. It's like a Dwarf Fortress for idiots or something. It's like an O'Reilly book. Yeah. No, actually I think it is O'Reilly, but it's not an out. Like it's, all right, look it up right now, but I'm really tempted to buy it. Cause I, everybody who gets in this game just says it's amazing. Like all these like really famous people, like even, even Not Try. Like the guy who made Minecraft, like he took inspiration from like, it's so. Dwarf Forge is

0:22:02.963 --> 0:22:09.260
<v A>my favorite game of all time for people who don't know. It's amazing. But yeah, you're a gigantic learning curve.

0:22:09.320 --> 0:22:18.300
<v B>Yeah. I really want to get into it, but it's like, I'd have to invest so much time just to get started. And then like, that's only the tip of the iceberg. Then I'm going to spend tons more time exploring it.

0:22:18.340 --> 0:23:08.033
<v A>The reason why Dwarf Fortress is great—just if I had to say it in one sentence—it would be, you know, it takes like the best of Minecraft, which is a creative, like building part, but it puts it in an environment where you really want it. It puts it in a sim. Like, in Minecraft, you have to actually walk across the map, right? Or like you have to build a house and you know what you want to build, but you have to click on all the blocks, right? So Dwarf Fortress, you can lay out like a little floor plan and give orders. And then your guys can go around, doing these little orders. Also, it has permadeath. You know, because you have all these dwarfs and you're getting like a new supply of dwarfs; if you make a mistake, like you dig too deep and there are monsters you can't handle, your dwarfs die. And so that permadeath gives you a level of suspense that I feel like you don't really have as much in Minecraft. So, totally.

0:23:08.033 --> 0:23:20.140
<v B>Awesome. So the book is called Getting Started with Dwarf Fortress by O'Reilly. I've heard good things about it. Like people are like, it's supposed to be really, really good. So if you're interested in Dwarf Fortress and like wasting months of your life.

0:23:20.360 --> 0:23:21.600
<v A>I'm definitely buying that book.

0:23:21.940 --> 0:23:29.880
<v B>If you do, let me know how it goes. Yeah, I'll loan it to you once I've done that. Okay, all right, there you go, there you go. No, please don't. My wife might not be very happy with you or me.

0:23:31.440 --> 0:23:37.868
<v B>It's also not just Marcus Persson. P-E-R-R. Anyways, so we're probably saying it wrong, but it's

0:23:37.868 --> 0:23:39.201
<v A>Okay. We're giving him

0:23:39.201 --> 0:23:40.382
<v B>credit. So back to your

0:23:40.382 --> 0:24:44.727
<v A>topic, which I totally derailed. So, yeah, no worries. This has Dungeon Crawl Stone Soup, and it has an amazing tutorial. It teaches you about getting started with the game, the different keys. A lot of people who play NetHack and Slash and these roguelikes, the thing they don't realize is if you hold Shift and move a direction, your character will walk that many steps until he either hits a wall or hits something interesting. So a lot of people don't know that, and so they keep hitting left, left, left, left, left. And they're just wasting a lot of time, you know. Because the game is kind of turn-based; it's designed for you to be able to sort of macro. And there are always macros, and they're all common across all these roguelikes. So Dungeon Crawl Stone Soup is a way to get you in there and get you working in roguelikes, playing roguelikes at the pace they're meant to be played and just getting a ton more fun out of your roguelike. On top of the tutorial, it's also just an all-around great game. I haven't played a lot of it yet, but it has a wide array of different spells and abilities you can use, and races and classes. Yeah, I've heard good stuff about

0:24:44.727 --> 0:24:49.379
<v B>this as an introduction to roguelikes. Yeah, totally. It's supposed to be really good, but it's also really deep, right?

0:24:49.560 --> 0:24:54.760
<v A>Yeah, definitely. I have it on my phone, and so it's been pretty fun.

0:24:54.820 --> 0:25:11.946
<v B>I'm looking at the screenshots and how deep and cool and nerdy this looks. There's something appealing. I don't know what it is. It's something that looks very difficult and very nerdy and like elitist. Like you want to do it just because you want to. It's like what do they call it? Wearing the hair shirt or whatever? Yeah, exactly. It's like you want to put on the thing that's itchy and bothers you just to

0:25:12.435 --> 0:25:25.041
<v A>prove I am elite nerd. Yeah, exactly. They post the high scores and they post a list of all the people who have completed the game online. So that can get pretty addictive. Like you want to be on that

0:25:25.041 --> 0:25:39.098
<v B>list. I don't think so. Oh, really? I think that's like you make it there and you feel so proud of yourself for like a day. And then you look at it and you're just like, 'Ah.' It's like getting the high score on an arcade game until they reset it, right? I'm still proud.

0:25:39.098 --> 0:26:06.621
<v A>of it. So NetHack has a server of it like this sort too. And I've ascended in NetHack on the server and I'm still proud of it to this day. Like I still every now and then I look back and I'm like, 'Yeah. Good job. Good job, sir. Pat on the back.' And Slashem, which is a harder version of NetHack, also has this. And I've tried, you know, on and off for half of my life. You sir are a far better nerd than I. And I've never done it. Never ascended in. One time I went like halfway, which, you know, is like 40 hours of gameplay. I

0:26:06.621 --> 0:26:11.540
<v B>don't. By the way, if you're a game developer or thinking about becoming a game developer, please stop putting 'How many hours I've played your game.'

0:26:11.700 --> 0:26:21.220
<v A>Oh, I know. Please stop. It's so bad. Please stop. Why don't do that? Don't do that. Steam does that on all the games now. And it just makes me depressed every time I look at it.

0:26:21.920 --> 0:26:59.560
<v B>Yeah. Okay. My tool of the bi-week is not a game. Yeah. It's Wireshark. That's a great tool. So Wireshark used to be called something before: Ethereal. Yeah, that's right. Yeah. So this is the kind of thing that you either love and you use it all the time or you hate and you've never used it before. Or like you get into a bind and you don't know how to do something or what to do. And then you use this. And that is anytime you're going to do like network programming. And it's so hard to tell what's happening when you try to open that socket and it just doesn't work. You don't know if packets are getting there. Are they malformed? Like, 'What's going on?' And Wireshark is kind of the answer to that.

0:26:59.899 --> 0:27:13.733
<v A>Or if you're like using BitTorrent and it's telling you, 'Hey, you know, your port is closed or whatever,' and you just can't seem to figure it out. Like Wireshark will tell you like, 'Oh, you know, you have packets coming out of your computer.' So it must be somewhere else in the chain. Yeah.

0:27:13.980 --> 0:28:16.179
<v B>So what Wireshark does is it puts your Ethernet port into a mode where basically it can read all of the packets you're getting along with everything else still getting the packets like normal. So everything acts like normal. But Wireshark is getting a copy of all the packets as well. And then what it does is just kind of displays like a hex dump of the packets, like the header, the information, whatever. But then it has these processors that get layered on top to understand like HTTP traffic. So like, 'Oh, this is a Git request,' you know, and it'll actually like try to kind of tell you in an intelligent, readable way all of those things that you might want to know about that kind of information. And it's just one of those things that if you need this, it's just really valuable and works really well. So, but it can be, it's like a power user's tool. Like 90% of people probably never—who do a lot of computer program, never use it and never get into it. But, you know, it can be really helpful and it's good to know about. Yeah, definitely. No, this is good. Especially if you're doing any kind of network development. Yeah. I mean, if you're doing even—I made that 90% up. No, I'm thinking about it. I have no idea what percentage. Like 99. But I don't know. Okay. Sorry.

0:28:16.500 --> 0:28:41.460
<v A>But, you know, it's awesome. I wrote a peer-to-peer app and Wireshark was like crucial. Because, I mean, you know, it was sort of kind of like based on a heuristic who would connect to who and things like that. And Wireshark like explicitly was telling me, 'Oh, you know, these ports are talking to these ports,' you know, on the same machine and things like that. So, if you're doing any kind of network programming, this will save your life. Yep. Save your time.

0:28:42.159 --> 0:29:18.186
<v B>All right. Time for BASIC. So, the history of BASIC is that it was created in Dartmouth College out of a research paper. So, some programming languages are created by programmers and some by researchers who I guess could be considered programmers as well. But, we're kind of doing research topic. And we're talking like way back in the day. So, what we were saying is like the 60s or pre-60s, like in the 50s. Yeah, totally. We should get the year. I think like the early 60s. Totally unprepared for you. I'll look this up. It's okay. And it was based on a—1964. 1964. All right. And so, it was called Beginner's All-Purpose Symbolic Instruction Code. So, in the whole—That's

0:29:18.186 --> 0:29:18.996
<v A>what the acronym is.

0:29:19.040 --> 0:30:01.184
<v B>The acronym is BASIC. And the whole idea was that, you know, there were programming languages at the time. But, it all kind of like assumed you were like a hardcore programmer. Like you wanted to really get into this. And this was supposed to be accessible. Which, I mean, I think it succeeds at. Yeah, totally. Like trying to—And this is something we talked about a little before we started the show. Jason and I both have—We'll get to him in a minute. You know, experiences with BASIC. But, I mean, this idea, this romantic notion of creating a programming language where you just describe in English sentences or insert whatever language you speak, a native language. Yeah. You know, just normal conversational text to a computer and have it do what you want. I mean, this is like the Jetsons, right? You tell Rosie, like, 'Hey, I need this.' Right? And you just speak to the computer normally, and it decides what to do. Yeah.

0:30:02.112 --> 0:30:12.020
<v A>Yeah, I mean, you know, you can't get more accessible than, you know, it being your operating system. Like you turn on the computer and BASIC starts, you know?

0:30:12.159 --> 0:30:38.340
<v B>Yeah, so that was the way. You know, Commodore 64s, TRS-80s, Apple IIs. They booted them up and they just were in a BASIC interpreter. Yeah. And it worked well for that because you could say things like it wasn't printf or cout or what are these things. It was like print. And then you just gave it, you know, this thing you wanted it to print. And then the next line, so you say print hello world. And the next line, go to previous line, right? Go to 10. 10, print hello world. 20, go to 10, right?

0:30:38.340 --> 0:30:55.977
<v A>You know, yeah, if you think about it, GO TOs are, so, you know, you hear all these things like 'GO TO is evil' and all stuff. And then somebody proved that, you know, this wasn't a hard proof or anything, but that you could basically, like, if you use for loops and breaks and returns, you can, like, take any program that has GO TOs and turn it into for loops and breaks, right? So

0:30:55.977 --> 0:30:57.240
<v B>GO TOs aren't necessary.

0:30:57.720 --> 0:31:28.480
<v A>Yeah. Yeah. So, yeah, they're not necessary. And they're also not evil. Like, you could do the same thing. You could do equally evil things without using GO TO. But there's, like, appeal to it. You know, the idea that, like, I'm going to label this line as, like, line 8 and then somewhere else, like, go to 8. Like, it's so much more intuitive than, like, a for loop where you have to, like, count up and each time this i has a different value. And, you know, it might not be the most useful, but for somebody who's just starting out, it makes more sense. Like, they look at that and they know immediately what's going on.

0:31:28.480 --> 0:31:56.560
<v B>Yeah, it is true. I mean, the for loop concept takes a while to get around. You just kind of have to get to that epiphany stage. Like, 'Oh, I get it now.' Yeah. And, I mean, the whole issue that us programmers would understand is you need to be able to be very precise to the game. And actually saying GO TO this line, I mean, that's, like, very—if you say return, it's, like, return to what? And early BASIC didn't have functions or procedures. It was just, you know, straight down the line, imperative programming, just, you know, line after line.

0:31:56.600 --> 0:31:59.419
<v A>Yeah, actually, we should mention that we're not covering Visual Basic.

0:31:59.419 --> 0:32:10.497
<v B>Yes. Okay. We'll go through. So, like, the first generations of BASIC, right? Like, there was—you had to have every number of lines. And, you know, there weren't procedures. You could do these GO TOs. And you could have, you know, kind of Boolean statements or whatever. Yeah.

0:32:10.639 --> 0:33:04.100
<v A>So, for people who don't know, the way the computer—and Patrick will probably know a lot better than I will, so I'll let him correct me. But the way I understand it is you have a program counter. So, you know, if you have a multi-threaded—the CPU has a program counter. The CPU has a program counter for each thread, right, which says, like, what instruction that thread is on. Or in the case of BASIC, you just have one, which is for your thread. But—and so it just—the program counter keeps stepping through until it encounters, like, a branch. So a branch might be, you know, an IF statement. So if something is true, then you're going to go to the next program counter. Otherwise, you're going to skip all the way down to the end of that IF block, right? Or a GO TO is an explicit branch. You're actually saying, you know, take the program counter and set it to this other instruction. Well, in BASIC, it makes that, like, very explicit. Like, in the first version of BASIC, you literally wrote the program counter for all of your instructions.

0:33:04.719 --> 0:33:54.497
<v B>Yeah. Well, so you write the memory location essentially is what you're doing. So we say 10, and that's, like, a line number. Because line numbers don't have to be sequential. But you're essentially kind of stating, like, this is an abstracted version of memory. So the processor would just execute the first memory instruction, then go to the next one, and go to the next one until I encounter, like you said, one of these things which said affect the program counter in this way. Yeah. Change it to this or, you know, minus one or plus one or whatever, you know. And so BASIC, yeah, you had to put the line numbers there so you knew where you were, and they had to be increasing so that you would, you know, keep moving forward in the memory and going up unless you, you know, did a GO TO. And then the second generation, you know, oh, we should say that Microsoft got its start in creating a version of BASIC. And that's kind of where they started. So we won't get into that large history. I don't know if

0:33:54.497 --> 0:34:00.520
<v A>this is still true, but the last time I checked, which was XP, it actually has QBasic in it.

0:34:00.699 --> 0:34:01.080
<v B>Oh.

0:34:01.260 --> 0:34:21.560
<v A>Like if you just scan your whole computer for QBasic.exe. Now, I don't know anything about Vista or 7, but I know, like, '98 and XP in these 2000. Nice. I actually had QBasic. And they actually, in the same directory, there is a bananas.bas, and it's a game where you're like a monkey and you have to throw a banana.

0:34:21.699 --> 0:35:06.807
<v B>So it's a game written by QBasic. I don't believe you. I'm going to go try that. I'm going to go try this right now. So that was the first generation of BASIC. And then the second generation came out, and, you know, this is QuickBASIC, like you're talking about QBasic. So this is where this came out. And these, you didn't have to put line numbers if you didn't want. You could have more, like, just labels as opposed to line numbers. And then you could actually have procedures. So essentially functions. You could go to a function. And then, like we said, that notion of return from a function is kind of vague. Like, where are you returning to? Well, it depends on where you came from. So when you say 'go to,' you're going to a line. And then you have to later say 'go to' some other line. It's not just like the return is go to something that was stored previously. And that's the stack. So the stack will store—have we talked about stack? No, I don't think we have. All right.

0:35:06.807 --> 0:35:07.262
<v A>Don't you cover?

0:35:07.262 --> 0:35:08.039
<v B>It? I think you'd

0:35:08.039 --> 0:35:19.160
<v A>Be an expert on this. So for people who don't know, Patrick majored in Computer Engineering, and I majored in Computer Science. And then that alone makes him much more applied and knowledgeable, which is useful. I mean, no crazy.

0:35:19.160 --> 0:35:20.200
<v B>I think we're overstating this.

0:35:21.220 --> 0:35:34.971
<v A>But then, like, on top of that, I did all theory. Like, I tried to stay away from all of the, like, databases and networking. And so that makes me even more—even, like, less useful when it comes, like, close to the metal stuff. So, Patrick, why don't you explain

0:35:34.971 --> 0:37:27.400
<v B>Stacks? Okay. So a stack is a data structure, but also it's something that is represented in the hardware in CPUs. And it is what's called a Last-In, First-Out data structure. So this implies that the last piece of data that you gave to the data structure, when you go to get something from it, it'll be the first thing that comes out. Right? So think of it as, like, it's called a stack. It's like a stack of papers. If you put one paper down and then put another on top and another on top, when you go to pull that last one—to pull the one on top—it's the most recent one you put there. Yeah. So if you think about functions, that's the way it works. So if I have function A calls function B calls function C, when I return from C, I want to go back to B. And then when I return from B, I want to go back to A. So I want to go in the reverse order that I just came. And so that's what this return does. So you need somewhere to stick this address of where you came from—the stack, yeah, the pointer, the Program Counter of where you came from. So you stick it on one of these stack structures, and then you go to your other function. And then when that function finishes or calls another function, but when it finishes and returns, it takes the thing on the stack and goes—jumps to that location. And hopefully, if everything worked out right and nothing bad had happened, you'll go back to where you left. So if you were in function A and you called function B, it did its magic, and then returned, then you'll be back one line past the line where you called function B in function A. Yeah. So that line plus one. And that's also how things get passed to functions. So you also stick the things—the parameters you're calling the function with, you stick them on the stack, and they get popped back off too. And that's how things get returned as well. So you can get the results of the function, as it were. And so that's what the second generation did of BASIC was add these procedures and allow for procedural programming, which comes before Object-Oriented Programming, which is what the third generation attempted to do.

0:37:27.700 --> 0:37:48.000
<v B>And that's where you get things like Visual Basic, so VBScript, which is a way to script Microsoft products, maybe others as well. I don't know the licensing agreements there. And like Visual Basic .NET and these kinds of things. They tried to introduce the notions of Object-Oriented Programming to BASIC, but we're not really going to talk about those today. This is a nostalgia trip.

0:37:48.000 --> 0:37:57.080
<v A>Yeah, totally. I mean, VBS.NET has all sorts of awesome stuff in it, and we'll cover it in another show. But today we're going to just focus on BASIC.

0:37:57.940 --> 0:38:28.600
<v B>So, you know, we both had experiences doing this, and we—you know, it's one of the things that I consider programming in BASIC to not have been really programming. You know, it was, and it is, but I fooled around with various, you know, like I said, the PRINT. Oh, I guess I didn't say this on air. So it's like, you know, my first program I remember is like 10, PRINT Patrick rules; 20, GO TO 10, EXECUTE, right? And then 'Patrick rules,' 'Patrick rules,' 'Patrick rules,' 'Patrick rules,' 'Patrick rules,' 'Patrick rules,' 'Patrick rules.' Like all the way down. And then like you call in your brother, 'Hey, look, man, the computer knows I rules.'

0:38:30.080 --> 0:39:22.279
<v A>We would have this arms race. So my cousins were all kind of techies, and most of them were older than me. And so we all had like the Commodore 64 manual, and we used this as sort of a way to sort of like see who the alpha programmer was at the time. So, you know, someone started with the, you know, 10, PRINT 'Lynn rules'; 20, GO TO 10. And my cousin was like, 'Check it out,' you know. And then I figured out a way to like print mine so that it like moved; it like kind of bounced left and right on the bottom of the screen. Because like it'd just go back to 10, but it put a bunch of spaces in front. And so it looked like it was kind of bouncing. And then like another one of my cousins found out you could actually write to specific places on the screen. Like you could say, 'I want like this row and column to have like a letter in it.' And so she actually made her name like bounce like as if it was a little Pong ball or something. Yeah. Yeah, it was super fun.

0:39:22.940 --> 0:40:00.580
<v B>So, I mean, but that kind of encouraging that kind of fun experimentation is really a good way to learn. Yeah, totally. It takes—it's still another leap to go from programming as a, you know, getting things done kind of thing. Yeah. But those early lessons are valuable. And the fact that it's so approachable BASIC was for kids, like it's easy to get started in. And even though you might move on to other stuff, those early lessons, you know, about—you know, oh, I want to move. But then I want to go back at some time. So I need some sort of loop that's counting. Right? You're introducing kind of—even if you don't know it—you're learning these four loops. And then later when you learn the proper concepts, you can map them back to those early things that you were doing.

0:40:00.840 --> 0:41:29.700
<v A>Yeah. I mean, I noticed that like I've taken a lot of different classes and things like just on the web. Like I recently took a Rails for Zombies. Have you seen this? I have seen that one. Yeah. I took this class and pretty much nothing stuck. Now you're a zombie. Yes. Brains. Rails. So nothing stuck. And like when I went to make a, I recently made a website in Rails. I forgot everything, like everything I had to go back and relearn. And the thing is when you are, like when you have a vision in mind, whether it's printing your name over and over again or making a website or whatever, and you're learning something as part of fulfilling that vision, that's when it seems to stick. You know, it's so much more effective than trying to learn something through a class or something like that. Yeah, that's true. And basically gives you the ability, it's easy enough where you can start with zero. You know, like you could start not knowing anything about programming and just have like a vision of, oh, I want to make like a little dot move around the screen or something. I mean, you can't have a huge, you can't say I want to make, you know, Quake or something. I was just thinking Quake. That's awesome. Or, you know, Minecraft or something. Or Fortress. Yes. Maybe, actually, that might not be out of bounds. But anyways, so if you have the book, apparently. So, yeah, I mean, but, you know, if you have like a simple vision, you could start with nothing. Just start typing in basic. And every time you can't do something, you look it up on the Internet and get your way through it. And it will be just an incredibly fulfilling learning experience.

0:41:30.000 --> 0:42:03.332
<v B>So, I mean, in some ways, I guess, as programmers, you move on from BASIC. But, I mean, there are a lot of people who get valuable paying jobs, you know, just writing, you know, essentially BASIC style things. And that's great. And it is amazing that something that was written so long ago kind of still sticks around. Even if it's not vitally important like it once was, you know, it's still with us. Like we all have fond memories of it. There's still, you know, things you can find—we'll talk about later—like on the Internet or whatever. You can just find versions of it free that keep being updated. And every version of Windows apparently was shipping with a version of BASIC. Yeah.

0:42:03.484 --> 0:42:23.920
<v A>Totally. Yeah. I mean, there's a—so there's VBA, which is Visual Basic for Applications. And it actually started off as just, I guess, BASIC. But like in earlier, really early versions of Excel and stuff like that. And you would just write BASIC to, you know, manipulate the cells and things like that. And there are people who, as Patrick said, just do this even to this day.

0:42:24.140 --> 0:43:00.819
<v B>Yeah. I mean, so we traditionally go through like strengths and weaknesses. I mean, we can do that. It's a little strange for this one. But it's so—like Jason said, it's so easy to sit down with essentially a blank line and get something to happen. And that's really rewarding. Yay, I made the computer do something, right? Like I programmed it. And that's amazing. And that's in part due to the approachable syntax. I mean, it does read a lot. Like we said, instead of like printf or cl, it's like Print, GoTo, If, right? I mean, these things are somewhat more understandable and closer to what people know already in their, you know, normal way of communicating.

0:43:01.560 --> 0:43:09.347
<v A>Yeah. And something that I just remembered, when I was in college, there's this guy who was going crazy over DarkBASIC. Dark? Is

0:43:09.347 --> 0:43:09.972
<v B>that like the

0:43:09.972 --> 0:43:21.767
<v A>Vampire BASIC? Yeah. It's sort of like Rails for Zombies. Oh! That's a lot in common. But so DarkBASIC is—I think it's commercial. Let me see. You write games in

0:43:21.767 --> 0:43:26.180
<v B>this. I think I do remember this. Yeah. So it actually allows you to do like graphics programming and stuff.

0:43:26.440 --> 0:43:58.000
<v A>Yeah. I'm not sure if it's free or not. But basically it's a way to get access to DirectX, which is Microsoft's like rendering library, like a rendering platform. And so you can write BASIC programs, but instead of just kind of printing your name and doing cheesy things that we were talking about, you could actually like create little sprites. You could load images and have them move around. And so for people out there like budding game designers and people who want to sort of write a game really quick but have no experience in programming, you should definitely check out DarkBASIC.

0:43:58.060 --> 0:44:47.000
<v B>Yeah. I remember—I mean, those were the first games I wrote. Not that I've written many games, but, you know, something like you were talking about. But I actually—like there was a way to draw to the screen, and so I would learn about like erasing the screen and then drawing a little square and making it bounce off the corners and learned about flipping the velocities, right, which I didn't know it was a term. But like, oh, I need to move five pixels to the right. But when I hit the screen, I need to know where the screen's at, and then I need to make that negative and move plus minus five pixels, right? Yeah. And like learning how—like that's how that works and figuring it out and that sense of triumph you have. And then also I may like try to make like a little Pac-Man thing where the mouth would open and close. Oh, nice. Instead of using—which later learned they have sprites to do that, right, like just various animation. I would actually draw like a pie circle like with the angle, and then the angle would get smaller and bigger, right? Oh, that's awesome. And it would kind of go across. You know, you don't know any difference, so you just make do.

0:44:47.260 --> 0:46:04.460
<v A>So this is kind of like a little segue here. But they—I was reading this really interesting article on—I've been doing a lot of drawing lately, as I mentioned a while ago, maybe in an earlier episode. And I have one of those Wacom tablets, those USB drawing tablets. And I've been reading a lot of books and papers on drawing as well. And one of the things that I thought was just fascinating, and I didn't believe it until I actually saw examples of it, is if you have two frames. So imagine like you have one frame where Pac-Man's mouth is open and another frame where his mouth is closed. And you just like flip-flop between these two frames. It will look weird and cheesy and it won't look right. But if you have three frames, or I guess in this case five frames, so you have like mouth open, halfway closed, closed, halfway closed, open. Like if you just add that third frame, there's something in your brain where your brain can't remember three frames back, and it looks like fluid motion. Like this sounds crazy, but if you just Google that or something, or maybe I'll post a link on the blog, they have examples where they show like a kick. So almost all of Street Fighter 2 is like three frames, like all the kicks and punches. Like it feels really fluid, but it's just three frames. And they take out the middle frame, and it's just dramatic. Like you look at this and you're like, 'This is garbage.'

0:46:04.740 --> 0:46:14.922
<v B>I guess it makes sense because the guy's standing there, not punching, and then the arm is all the way out. But you don't really know how it got there. But if you draw one in the middle, like your brain fills it. It's just amazing how three is enough. Interesting.

0:46:15.380 --> 0:46:22.400
<v A>Yeah, it's just shocking. Like three is like the magic number, and it's based on some psychological or neuroscientist. It's a scientific thing, yeah.

0:46:22.700 --> 0:46:28.460
<v B>So weaknesses of BASIC. We've been singing the praises of BASIC. Yeah. Be the bearer of bad news.

0:46:28.580 --> 0:47:18.420
<v A>Yeah. Sadly, BASIC is not going to let you make Quake III. Aw. Well, maybe DarkBASIC will, but of course you're leveraging all those C++ libraries. But BASIC by itself, it's just not only because it's interpreted—because we've talked about interpreted languages before—but specifically BASIC, just kind of the way that it's designed with like no stack frames. You have to manually manage that yourself. And there are a lot of other reasons. It'll never be high performing. The other thing is it doesn't have a lot of the bells and whistles that would make your life easy as a developer. So, it doesn't have multi-threading. It doesn't have object-oriented paradigm. So, you know, it's not going to let you make that killer app. You know, at least it's going to teach you what you need to know to get there.

0:47:18.960 --> 0:47:56.240
<v B>Yeah. It's definitely such a juice. Yeah. And then tools, like we said, there are many versions of free BASIC that are around. It's actually really hard to search for BASIC, as I found out, because BASIC programming, and then they just talk about introduction to programming. It's like, no, I want BASIC programming, not simple programming. So it is a little hard to search for. But you can find information about it. And there are many web-based versions, free interpreters to download. And it's still a great thing to start today. I think if you have kids or you do one day, I think it would be a great way to introduce them, you know, to programming. And this is, like I said, this is how my earliest programming was done in BASIC.

0:47:56.400 --> 0:48:13.240
<v A>Yeah. And BASIC is, I don't know if this is still true. It probably is. But it's in all the Texas Instruments calculators. So, you know, when you get that fancy like scientific calculator in like seventh grade or sixth grade, wherever they start requiring that, you can program in it. You can make games in BASIC, as we both did.

0:48:13.299 --> 0:49:13.965
<v B>Yeah. So we were actually talking about this. So getting one when we were in high school, I had a TI-83, I think it was. But I think even like 82s and I don't remember all the numbers now. Yeah, I had an 82. Okay. Yeah, they had a version of BASIC. And you had to type on the keys weirdly to get the letters. Yeah. And somehow, like I guess as crazy as we think it is, people doing SMS messaging on like the nine or ten. Yeah, the T9 thing. Oh, man. But people doing the same kind of thing. We were doing that on calculators. And, you know, it started off like, you know, a math class. Our teacher would say like, oh, you know, you couldn't—eventually there was a way to download from the internet. You could download programs and run them. But if you could program something yourself, like you could use it for geometry to compute the hypotenuse of a triangle. Yeah. Right. So we coded simple formulas into our calculators. And then eventually, yeah, like I wrote—both of us turned out like a little RPG. Yeah. You know, it was like a little turn-based fighting game where you were generating random numbers and deciding if you would hit the guy or not. And you just really simple things. But, you know, you learned a lot.

0:49:13.965 --> 0:50:15.559
<v A>Yeah, totally. I mean, the other thing is we had this awesome arms race in our math class. So, for example, we started writing programs to solve a lot of the geometry problems. And then the teacher, she caught on to it. And she was cool with us writing the programs. The problem is that they were getting into the hands of like all the students in the class. And some students like were just using the program. They didn't really know what was going on. They were just putting in the answer. So she decided that she's going to make you wipe your calculator. But I didn't want my calculator to get wiped because I had all these games on it that I was working on, right? So I wrote a program that looked like the 'wipe your calculator screen.' But when you hit it, it didn't do anything. And then like, and then, you know, when you're in middle school or high school, you want to be cool. So I started showing it off and other people started writing it. So then we all had the program. Then the teacher found out about the program. And so we ended up with this arms race of like, could you keep your stuff on the calculator? That's horrible. Yeah, we didn't have

0:50:15.559 --> 0:50:33.200
<v B>that. But we did have people who learned—you know, she would allow, the teacher would allow, maybe it was a he. I don't remember now. Would allow programs. But they wouldn't actually write programs. They didn't know how or didn't care to learn. And I wasn't about to get in big trouble or lose my ability to use it. So I wasn't going to share. I guess I'm meaner than you or something.

0:50:33.360 --> 0:50:37.560
<v A>So you ran like a geometry program mafia or something.

0:50:37.560 --> 0:50:42.947
<v B>No, no, no, no. I just wouldn't. I just wouldn't share it at all because I wanted to be able to use it. Oh, you didn't have

0:50:42.947 --> 0:50:46.080
<v A>the circle of trust. No. The circle is just you. Yes. There's a point.

0:50:46.080 --> 0:50:49.020
<v B>I was the earliest Google Plus with only me.

0:50:52.144 --> 0:51:03.700
<v B>And so, yeah, but people would just instead of writing a program, they would just write like a cheat sheet in the code. Right? So the code could never run. It wouldn't work. It would just like write out all the formulas and equations and everything.

0:51:03.700 --> 0:51:08.700
<v A>The teacher in Spanish class is like, 'Wow, these kids are using math to solve Spanish.'

0:51:10.660 --> 0:51:13.180
<v A>Oh, man, that's pretty funny.

0:51:13.180 --> 0:51:18.480
<v B>So this hasn't been an especially serious version of Programming Throwdown, but it's a trip down.

0:51:18.600 --> 0:51:31.024
<v A>We had some heavy episodes, and we had Go, which is like heavy systems programming, like, you know, coroutines and all that stuff. And we had Java, which is like so much stuff in Java. So we want to keep it light this time. Yeah, have some fun stuff every

0:51:31.024 --> 0:51:31.700
<v B>once in a while.

0:51:31.879 --> 0:51:32.160
<v A>Yeah.

0:51:32.359 --> 0:51:49.140
<v B>There are a lot of programming languages out there. So we've got to cover the fun ones sometime, too. Yeah, totally, totally. All right. Well, thanks everybody for kind comments and emails and Google Plus replies. And we went through a little bit of changing with the servers, which was fun for Jason.

0:51:49.580 --> 0:52:05.520
<v A>Yeah, I thought I could host Programming Throwdown in my house. So thank you all for DDoSing Jason's house. So, yeah, first of all, we have a lot of fans, way more than we thought, which is totally awesome. I'm going to start seeing if I can collect some metrics to find out exactly how many fans we have.

0:52:05.520 --> 0:52:06.765
<v B>We will find you. Just kidding.

0:52:06.765 --> 0:52:28.419
<v A>Just kidding. And their houses? No, I'm just kidding. And their address? No, but we have tons of fans. We love you guys. It's awesome. Way more fans than we thought. And, yeah, you guys totally DDoSed my house to the point where I couldn't even check my own email. Oh, sad. So we're back on reliable hosting, though. So this episode, you should be able to download it at full bandwidth.

0:52:28.580 --> 0:52:33.319
<v B>Yeah, so apologize for any inconveniences anybody had with that. But we are back on track.

0:52:33.500 --> 0:52:34.560
<v A>Totally, totally. All right.

0:52:34.620 --> 0:52:36.660
<v B>Until next time. See you guys later.

0:52:37.560 --> 0:53:00.460
<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, or to remix, adapt the work. But you must provide an attribution to Patrick and I and share alike in kind. Follow that. Follow that.

