Podcast Lookup

Ruby

Programming Throwdown

  • October 12, 2015
  • 1 h 10 min
  • Episode 47
Episode page
About this episodeThis show covers Ruby: a multipurpose interpreted language for rapid development. Book of the Show Jason: Paranoia RPG Player’s Handbook…

This show covers Ruby: a multipurpose interpreted language for rapid development. Book of the Show Jason: Paranoia RPG Player’s Handbook Patrick: Lock In

★ Support this podcast on Patreon ★

Transcript

From the publisher

This transcript comes from the podcast’s own feed, shown as the publisher wrote it.

Ruby

00:00—
  1. A

    Programming Throwdown Episode 47: Ruby. Take it away, Jason! Hey everybody.

  2. B

    We have a cool episode coming up on Ruby. We also have a lot of interesting questions and feedback, and a lot of mail. Actually, the mail has gone up by what? Maybe a factor of like five or something. A lot. Yeah, there's

  3. A

    A lot of new people out here. We don't know where you came from.

  4. B

    But welcome. Actually, you know, okay. Yeah, if you guys just shoot us an email or post on Facebook or G+ telling us where you found—if you're new to the show, let us know where you came from because we got a ton of people in the show very recently, at least based on the emails and our very loose hand-wavy statistics. So yeah, let us know. We're curious. So cool. One of the emails we got is from Yaroslav Pikorski (pisgorski). Sorry if I messed that up, but so he's—I don't know if he's a statistician, but he knows a lot more about statistics than Patrick and I combined. And he added a lot of information on R. One of the things about R that we didn't know is that the syntax in R, for people who don't know R was the language we covered last month (Episode 46), that's right, so the syntax of R is almost identical to the syntax in statistics textbooks. So you can open up a statistics textbook, take some equations from that, and almost type them verbatim in R, which is pretty cool. Also, he mentions a lot of things R does. There's a lot of—the things there's overlap there with MATLAB and with NumPy and SciPy, but they're worth mentioning; they're interesting. So definitely go to programmingthrowdown.com, check out our blog, and go to the R episode. He has a ton of information there if you're into R and you're

  5. A

    a statistician, especially? Or are you—did you post up his?

  6. B

    Comment. He posted it in a comment. Okay. Actually, we can link to his comment from this show. Oh.

  7. A

    That's meta.

  8. B

    Yeah, yeah. Look out. That's like—yeah, it's like Inception or something. So yeah, that's pretty cool. Definitely check it out. A lot of interesting stuff. Another question we got is from Ash Booth, and he was saying basically what's the difference between kind of doing projects in school and working in industry? Wow. Like where do we begin? Right. There's no difference. Yeah.

  9. A

    Right. So

  10. B

    I mean, I'll say a couple of things. When you're most of the projects that you do in school are individual, and so depending on the scope of the project—if you're doing like a PhD dissertation that takes four years—then you probably have some kind of source control and things like that. But even still, like if you're developing by yourself or with one or two other people, you don't really have to document; you don't have to write a lot of tests because hopefully both of you or the three of you have almost all of the same assumptions, and the code doesn't have to—you know, doesn't have to live for a very long time. And so definitely when you're working in industry, you have to program very defensively because there's a lot of people on the team; there's people on other teams who could break your code, and sometimes you write tests to make sure that other people can't break your code. So—that's something to think about is actually someone put this really good in a really clever way. They said if you're an industry—you know, your code has to be peer-reviewed, so presumably one or two people have to look at your code. So right off the bat, your code has been read, you know, three times more than it's been written. It's been written once and read three times, and that's before it even gets committed, right? And after that, it's just going to get read even more. And so new coding in that environment is very different than coding in school.

  11. A

    Yep. You pretty much summarized what I would say, but yeah, I think the big difference between school and industry is your projects tend to be very short-lived, and you tend to almost never use existing code. So you tend to almost—what we call, I guess, greenfield like code where you're starting from scratch. Yep. Versus in an industry on the whole, you're very rarely doing that. And even at some point, even if you started that way, after, you know, six months of working on something, it's no longer that way. And so you have a lot more maintenance, a lot more digging into code bases you're unfamiliar with or have been unmaintained, and that's something that you don't really get experience with in school, at least not in my schooling when they never gave us like a huge code base and said, 'Here, go fix something or add a new feature.' The closest we got was for our operating systems class; we needed to add a feature to the BSD kernel. Oh, that's cool. Yeah. So we had to actually dig through and understand it at some level to be able to add it, and that was pretty representative of the work you end up doing a lot. Also, for me, I didn't do graduate work, so I got a Master's degree, but you know, it's mostly just normal classes; I didn't do any research. And so for me, the projects also tend to be much, much smaller, and I didn't work on them eight hours a day for literally months—years. Yep, which can be very common.

  12. B

    At work? Yeah, I mean you could work the same job for 10 years and you could literally be staring at the same code—you know, 40 hours a week for 10 years. So I mean, hopefully, you don't have to keep coming back to that code, but you'll be building on top of that for years to come. So or if not, someone else will, right? So I think

  13. A

    You said about peer review as a reason for writing it well, or whatever. But I mean, that's something else, that's really big difference, and many places have some form of peer review or needing unit tests even. And this is something I never did other than theoretically in school. You may have to write unit tests for the unit test portion of some class, but it wasn't something we did for real. Yep. but in work i do it for realsies yeah

  14. B

    Yeah, I mean like I said, if I don't write—I mean this has happened to me where I don't write a unit test and then another team that we're sharing the code base just breaks my code. And it's not that they're jerks or anything; it's just that they invalidated some of the assumptions I made, and without unit tests, there was no way for them to know they did. That, right? Um cool. So our last question—Quang Nguyen asked—um basically what are our thoughts on programming competitions? So Patrick and I have both done programming competitions. One thing I can say is it's so the situation is like this: Programming competition in terms of your time, right? Like I spent—I don't know—I spent maybe two or three thousand hours working on programming competitions, like either practicing doing comp, going to competitions, doing online competitions. I mean, spent like probably more than three thousand hours. Um if I had spent that much time doing work on open source projects or modifying the BSD kernel or something like that, it would have made me a better software engineer, right? But coding competitions make you a better interviewee. And so both are—you know, you could argue about whether the interview process is broken because of that. A lot of people say that, and I don't disagree. I don't really know what we could do better, but the fact is at least right now, coding competitions will allow you to pass interviews that you would not have otherwise passed. But you know again, taking that same time and putting it into working with a big team, you know, using source control and things like that would make you a better engineer. So um so yeah, use that information however it best suits you. Yeah, I don't remember.

  15. A

    The exact question. So I don't know if we're answering or not, but on that topic, it is true that I think there are two aspects to coding competitions. One is doing stuff at speed, so like making a stab or guess or you know doing the big order approximation—big O approximation of a potential thing and understanding what the impact of that will be off the cuff, um thinking of an algorithm and implementing it sort of correct at least the first time. Like these things at speed are really great for working on a programming interview. The second part is like the algorithms, like actually learning various algorithms and tricks and data structures and understanding, like you know when you're in grade school and they give you those word problems and you have to learn that certain words mean addition, certain word subtraction, certain multiplication—like learning those keywords, like how to take a guess at what the data structure might be. Um I think those are two different parts, and the algorithms part has some usefulness outside, like learning what all these algorithms are and when to apply them and how to apply them. It's more generally useful long term. The coding at speed is really good up into a certain point, and then the diminishing curve kicks in really hard, right? So like once you can do it fast and you're familiar with all the standard libraries of the language you choose to use and you can sort of get done in the time frames that the competitions normally have, getting much faster will make you do better in the competition but not in real life, right?

  16. B

    That makes sense. Even.

  17. A

    For a programming interview, I don't think it really matters. You don't have to have super speed; you just have to be quick, but not fast. Yeah, so maybe

  18. B

    So maybe the best advice here is especially for people in college and things like that is—is you know to be like decent at TopCoder and these other sites, but you don't have to be great. Maybe that's. Yeah, I would think.

  19. A

    Like the way I would view it. So to use TopCoder specifically is I think it's valuable to get to the point where be honest with yourself. Like on the easier—there's like an easier mode and a harder mode or easier level in a hard level. Is like on the easier level, you really should be solving the easy one correct the first time, the easiest question, the middle question, you should be getting right in the time frame, and you should often get the hard one right, and all of that within the time frame that they set for you so you can do like practice competition or whatever. Yeah, but it isn't important I don't know about absolute fastest. Well,

  20. B

    I don't know about you, but I—so for me to do one of the hard ones, it takes me about a full day.

  21. A

    On the easy one? Oh.

  22. B

    You're talking about the division, the easy division, yeah.

  23. A

    Yeah. Oh, yeah.

  24. B

    Right, right. Okay, that makes sense.

  25. A

    Yeah, sorry. Yeah, so I think the hard division gets into competitiveness, so you should be able to do the easy one, but the easy one on the hard one is typically—oh, that's so confusing. The Level Two easy one is typically the Level One medium one, yeah.

  26. B

    Just to recap, so there's two divisions in TopCoder. I'm confusing people. There's Division Two, which is—think of it like the minor leagues, and Division

  27. A

    Two has.

  28. B

    It's fine. Division Two has easy, medium, and hard, and they typically, although not always, but they typically take the hard Division Two problem and make it the easy Division One problem. And then now there's another medium and hard in Division One. I don't know too much about Division Two, but in Division One, I've never gotten a hard problem right in the 90 minutes that they give you. Um, and I've only gotten hard problems right—I mean, this, the smallest, the lowest time has been something like five hours for me to get a hard problem right, so there's definitely no but I'm

  29. A

    saying I don't. I would go further, so but you actually did. So I did competition too, but you did a lot more than me. But that's what I was saying—like I don't actually think Division One is necessary at all, right? I think you need to be able to do Division Two in the time frames they give you as like are you doing well enough? Yep, I think.

  30. B

    And we talked, I think.

  31. A

    That's sufficient. We talked.

  32. B

    About this in an earlier episode, but one of the things—one of the things you're kind of going back against what I said earlier, playing, I guess, devil's advocate against myself. Well, one of the things that those protein competitions do give you is an ability to look at problems and kind of eyeball how difficult they are. Yeah, that's what I was

  33. A

    trying to say? Maybe I said it. Yeah.

  34. B

    Yeah, like, you see, like, like, like.

  35. A

    An approximate estimate, like just a swag at it. Like, yeah, this is really easy.

  36. B

    Like a top coder, it's explicit. Like you just see this problem and it might, like,

  37. A

    There's not true because sometimes, like the hard one and the medium one are similar in difficulty. Oh.

  38. B

    That's true. That's.

  39. A

    Better to do the hard one first. Yeah.

  40. B

    Well, in Div Two that might be a Div One. The hard ones are almost always impossible, like to do in 90 minutes. It's like always some math or statistics trick, and you've either memorized all the tricks. The people I know who get the hard ones right are people who have just memorized a ton of number theory tricks and theorems, and they just see it and they know, 'Okay, that's this theorem. Let me start coding.' And for the rest of us plebeians, it's like impossible. But yeah, to Patrick's point, I mean you can look at a certain problem and say, 'You know, your boss can come to you and say, okay, we need to get this, you know, access time down to 10 milliseconds. Is there some kind of caching or something we could do?' And you can look at that and say, 'Um, yeah, that's doable,' or 'You know, that's going to take years,' and it might not even happen, right? So like, uh, like we could write some function to do that, or there's a bunch of heuristics we need to, you know, do data science and figure out if we can, you know, if there's some trick in the data or something, right? So, so yeah. Anyways, that's sort of long-winded answer. The answer is yes, they help, but only to.

  41. A

    A point. Yeah, only.

  42. B

    To a certain extent, but that's

  43. A

    True of most things.

  44. B

    In life. That's right. It's it's actually an uncanny valley if you are in the top maybe 50 people in the world on top coder. Then now you're like kind of pseudo-famous, and that's great. If you're anywhere between there and like the bottom 50 percentile, it doesn't matter. And then anything from there to maybe the bottom one percentile is better than nothing. So anyways, your mileage may vary.

  45. A

    Although I found that a lot of the nasty tricks I learned in coding competition helped me be really fast at debugging code on the fly, like just hacking print statements in or whatever is necessary in a loop to just get something out. And you learn like how to make the compiler be quiet and just like how do I force with the minimal lines of code to get it to do what I want. Yeah.

  46. B

    That's a good point. I think that, and you would.

  47. A

    Never code that way. Like I would never check in code that way, but when I'm writing test code or debugging something, like people always look at me. I'm like, 'What? You can do that?' It's like, 'Sure, you can cast this thing that way. You shouldn't, but you can.' Yep, yep.

  48. B

    Yeah, I think that there's it's sort of like those people who work—who actually worked in a newspaper—who have to produce a newspaper every week. They just have a ton of tricks. If you just wanted to write an article yourself, like they could just, they could write it 10 times faster. And it's because they were put in a position where they had to write an article in 30 minutes, and they just figured out how to get it done. And it's usually things that go against your intuition that you would think are kind of bad, but they really work. And it's the same with coding. There's just like hideous things that never make it into the final product, but are stepping stones to being very.

  49. A

    Efficient? Yeah, all right. Cool.

  50. B

    Time for the news. News. So first news article is something we talked about on last month's last.

  51. A

    But it's

  52. B

    This is a very—this article goes into a lot of detail on it. The title of the article is Amazon's $23.7 million dollar book about flies, and basically this guy is a I think a biologist or ethnologist. I know he studies insects, and he wanted to buy this book. You know, the book typically retails for around 40, and these two sites, they each had it for 300. And he said that's kind of ridiculous, and he went to send the link to somebody else, and by the time he sent it to them, the book was worth like 400. And then that really kind of got his attention. So sure enough, after a month or so, the book was worth $23.5 million. It's just a 40-book, and at the very end it ends up being worth like 40 again, but this is all about sort of he actually deconstructed the algorithm they found.

  53. A

    They were increasing by a set factor, right? So like one was under, one was over. Like one was trying to be the cheapest by some margin, but only a little margin, and the other was trying to be slightly more expensive than that one. Yep, yeah. And so it just had this race condition. Race condition is not the right word, but

  54. B

    Yeah, it was like an unstable equilibrium. So, yeah, one of them increases the price 20 percent, the other one increases the price 19 percent, and then the first one, you know, sees that increase and increases the price 20 percent. It just keeps going until a book, you know, 40-book is worth 20 million.

  55. A

    Yeah, and eventually someone realizes it's crazy and just manually resets the price lower.

  56. B

    Yep. Yeah, they must have humans in the loop that look at—you know, everything that's retailing for more than 20 million and do something manual. I mean, so yeah, I was trying to think if there's

  57. A

    a way to exploit this behavior, but I don't think they're—I mean, you could make people's prices be driven up, but it doesn't really matter. They just won't sell the.

  58. B

    Book. Well, I thought about this, right? What if you what if you lie to Amazon and say you have the book for a dollar? Wouldn't that make them lower the price? Yes, except

  59. A

    Then if someone buys it in that time period? That's right.

  60. B

    Yeah. You have to—that's the problem, right? You have to say I have the book for a dollar, hoping that there aren't that many people buying books on Flea Markets. But then maybe they would buy your book. Now you're kind of in trouble, like the people who are selling the $23 million book would buy your book and

  61. A

    There might be people out there—which I would not be surprised, but I've never heard of it—who are like watching for, like they historically track books with enough, like this one's probably rare enough where they don't, but books with enough volume or just anything with enough volume. And they look for used price discrepancies. And if it's a big enough discrepancy, they buy it, right? And then you know essentially try to sell it back, like there are people on eBay that do that—search for misspellings of words. Yep, it's like the or certain like old objects that people don't know what they are, so they say, 'Oh, I found this weird bottle opener,' and turns out it's not a bottle opener; it's an antique surgical instrument, right? But if you search like 'weird iron bottle opener,' you find these really rare collectibles. You know. Yeah.

  62. B

    Yeah, totally. So, yeah, I think the answer is yes, you could take advantage of it, but you will probably get in trouble and get yourself in a sticky situation. So um especially if it's about Flea Markets, so don't.

  63. A

    Buy books about flies? That's the

  64. B

    Moral of that story, right?

  65. A

    Exactly. So the next article is at regex1.com, which is an interactive tutorial for learning regular expressions online. So Jason actually found this link, this article, and I find that this is going to be awesome. I am going to try this tomorrow because I stink at regular expressions. I'm a big fan of the quote, 'What is it? If there's a problem and you solve it with regular expressions, congratulations—you now have two problems.' Yeah, exactly. Yeah.

  66. B

    So this is actually a user listener request. So Nicholas Barry yeah sent an email saying, 'Hey, can you talk about regular expressions?' And so this is for you, Nicholas. We're talking about regular expressions. Um I'm also in the same boat as Patrick here where every time I need to use regex, I always have to fudge my way through it online and I get it wrong nine times, and then 10th time it finally does what I want. And it's—it's one of these things like I think it'd be good for me to just bite the bullet and like dive into regex for a week and then and then get to the point where I could just write the regex correctly the first time. So yeah, I'll also be trying this. Website. Um yeah, the next one is 'Interesting Things I Was Unprepared For as a Lead Developer.' So you know most teams the way they're structured is you have your team and you have a manager who typically manages, you know, maybe I don't know 10 or 15 people, and then you have a Tech Lead who is in charge of maybe, you know, two or three people. And the Tech Lead typically also, you know, writes code himself versus the manager typically just manages. Um so this person moved from an established company to a startup. Um at the startup he was lead developer, and uh this is just sort of like a monologue, sort of like a diary about his experiences as lead developer, specifically things he didn't expect. And I thought this was really fascinating. Um so it's definitely worth reading. won't spoil it but no go

  67. A

    ahead no uh well

  68. B

    Yeah, I'll spoil it. So the one that really stuck out to me was, you know, as a Lead Developer, you obviously you're in the trenches and so you spend a lot of time with the developers. But at the same time, you're given sort of a more high-level vision. And so in his case, you know, he's at the startup and so he's learning things like, you know, if this product isn't successful or if it has severe bugs, then they're going to shut down the startup. And so the people that he's managing, like all of them are just going to be out of a job. And then one of his employees comes to him and asks him if he can, you know, learn Ruby on the side. And he wants to do that. But in the back of mind, he's thinking like, 'Dude, our startup's going to die in a month if we don't get this done.' And you're asking me if you want to learn Ruby on the side? And but, you know, again, his job as the Lead Developer is to insulate his team so that they don't have to worry about the startup going under or whatever, right? So, part of that is answering that question rationally, pretending like he doesn't feel all this other gravity and then saying, 'You know, yeah, go ahead and learn Ruby. It's not a big impact on the team.' Or, 'No, you can't learn Ruby right now.' Not, you know, what are you doing? No company's gonna die, right? So I think that sort of in a nutshell is a lot of his issues is sort of walking this sort of double life, leading this double life. So it's definitely interesting. Highly recommend reading it.

  69. A

    So the next article I have is actually not that important, sounds weird. Anyways, it's about JetBrains, uh developers of IDEs and they changed their licensing—or originally changed their licensing and changed it back, and they changed their mind anyways. I want to use this as an opportunity to rant about why everything is going to web-based subscription licenses. So JetBrains originally announced this so before you could buy, you know, a license to the software for a flat fee, then they were going to now you need to pay a monthly subscription in order to have your software. And if you stop paying, it, you don't own it anymore. And the companies tend to think this is good for you as an individual, but in all the cases I tend to look at it, it seems bad to me. So the problem is they're collecting subscription fees, which is great. And as far as that like if I stop use—if I only want to use it once in a while, I can pay a subscription fee and then stop using it and stop paying, which is nice. And it sounds cheaper up front. But then the fact that like long term I don't own it, and if I stop paying, I lose it, is it's not great for me. And also if there's new versions of a software release, the company needs to—and they don't constantly improve the version I have because they're not really incentivized to. So that's kind of bad. But they're really incentivized to make it awesome for the next one or I don't pay again. And when you go to a subscription model, it's a little loosey-goosey to me as to far as like why would they continue to give updates at an awesome rate because you're paying to use it? You really like it. You need to keep using it. And it's not like if you stop paying, you just stop getting new features; you lose access, right? Yeah.

  70. B

    Mean, so a couple of things about this one—BitTorrent Sync, which I had as a tool to show a while ago. They had a subscription model for the Pro version, and I never bought it because there's something about subscription models. It's sort of like I think it's a psychological thing, but you—you just actually, I'll get to that later because like there's a whole separate rant about that. But they switched to a one-time purchase model. I think it's just $50 now, and I bought it immediately. So I mean, they went from not getting anything from me and me doing everything I could to use the free version and get the most out of it to like them just immediately getting $50. I see the other side of it though, which is they're basically never going to get money from me again. So so that

  71. A

    Who cares? Because like for BitTorrent Sync, they don't have a maintenance cost, so why should they continue to get money from

  72. B

    You? Um that's true. Yeah. So presumably now they should use all of these $50 investments to build another product that they're not. Who cares? Well, they have to keep their company going, right?

  73. A

    Sure. I mean, if they want to, right? But they could just make a product and be done. Like that's okay too. Um yeah.

  74. B

    Maybe. I mean, you would.

  75. A

    Like them to keep it updated, right? And they want to continue to make sales. It probably is worth it to them to keep it maintained because then people will keep buying the existing version at least, right? But what I'm saying is like for people that run a service or server and there's cost to it, I understand, right? Like you have costs to keep this thing up. I have to pay you because you have to pay for me to

  76. B

    continue using it, but

  77. A

    for things like Photoshop or an IDE, right? It's I'm using all my own resources. All you're doing is keeping a license server up.

  78. B

    Yeah. I mean, you're—you have to assume that they are spending a lot of money like improving the product. If they don't do that, then you're absolutely right. It's just you're throwing money away. But presumably, you know, ten dollars a month or whatever it is goes to allows them to hire some engineers to work on it. Um but I guess

  79. A

    Costs aren't typically that drastically different, right? Like in the short term theoretically, right? Because if I pay you a hundred dollars once and I buy your new software every year, or I pay you ten dollars every month, like it's roughly equivalent. Yeah, that's true.

  80. B

    That's true. The big difference

  81. A

    for me is just like if I stop paying, I can't keep—if I'm happy with what I have for now, I can't just continue to use it without paying.

  82. B

    Right, but to be fair, there's a barrier of entry. Like if I try JetBrains and I don't like it, I can cancel, and I only paid one month. No, I understand.

  83. A

    Yeah, if I have

  84. B

    to pay three hundred dollars, then I might just never try it. So yeah, they have to do some kind of freemium there. There's

  85. A

    a lot of, yeah, like 30-day trials, right? Yeah, right, that's a common

  86. B

    thing. Yeah, that's true. Yeah, I mean, I'm definitely with you. I mean anything that's been a subscript—I'm trying to think of anything. Um, I can't honestly think of anything other than Netflix and Hulu that are, and those don't even really count. Those are more like

  87. A

    utilities. Yeah, video and music, I do, but I don't, right? Really, I'd rather—I'm not sure if that's a great idea for me or not. Like I haven't—I'm not fully sold on that, I feel.

  88. B

    Like those are those are basically like utilities. I mean, the difference between, you know, say Spotify and JetBrains is that Spotify is, you know, presumably putting out new content all the time, and you're paying for the content. Well, man,

  89. A

    they're not responsible for getting the content, right? Like they have to sign up, but like the artists and stuff are making the content. They just have to make sure to keep doing

  90. B

    the deals, right? Right, and the deals cost money, hence the—hence the subscription, like.

  91. A

    Otherwise, the point is like if I really like this IDE and I pay every and again, this specific IDE is really kind of irrelevant. I don't use it, so maybe it's a bad thing to pick.

  92. B

    It's good. It's a good.

  93. A

    The discussion is that like if I really like where it's at and I don't just particularly want to pay for it right now—like I don't need to upgrade, I'm happy where it is, and I just want to keep using it. I don't have.

  94. B

    That option? That's true. Yep, that's true.

  95. A

    So like this is what I do for some Adobe products. Like I have Lightroom for my pictures, but I'm not on the newest one. I'm on like several versions ago. Yeah, I have the same thing with Illustrator. Happy with what it is right now. Like I

  96. B

    Don't need to upgrade. Yeah, the whole Adobe Creative Cloud thing. I just can't deal with it. Like the idea that like because this is a problem is I don't use Illustrator often enough to make the monthly fee worth it. Like for a product that I'm going to use once every four months, you know? I can't justify spending fifty dollars a month. It's ridiculous.

  97. A

    But you could justify buying. I think it cost me like a hundred dollars when I bought it right? Yeah, but I've used it for two or three years. Yep.

  98. B

    Yeah, I bought Illustrator before the whole Cloud thing for I think it was like two hundred dollars, and the same thing. I used it for—I've been using it for I don't know six years or Something. Anyways, anyway, so the other thing, last thing about that is. You know, people think that. So this is about the subscription thing. People think, 'Oh, if I get this IDE, I'm gonna be paying for it forever.' Um, this goes to like a psychological thing. People generally feel like they don't change. I don't know. If you read this article, but people feel like they change way less than they actually do. So they did this study. They surveyed a bunch of 20-year-olds and asked, '10 years from now will you like the same style of music that you do now?' And the majority said yes. And then they interviewed a bunch of 30-year-olds and asked, 'Do you still like the same music you did 10 years ago?' And almost 90 of them said no. And then they thought, okay, well maybe 20-year-olds just don't get it, right? So they did the same thing: the 30-year-olds, 40-year-olds, 50-year-olds, and every single generation did the same thing. Every generation felt like even 60-year-olds felt like they wouldn't change when they were 70, and they changed. And so with respect to subscriptions, yeah, I always feel like I'm going to be paying for this forever—like BitTorrent Sync. I feel like I'm gonna be paying, you know, ten a month for the next 20 years or maybe not that extreme, but when really like so so what you actually pay versus what you get for subscription versus one-time fee? Um, your brain doesn't process that correctly, and so that makes subscriptions an even worse idea.

  99. A

    Anyway, so time for Book of the Show. Book of the Show. So my

  100. B

    Book of the Show is a Kickstarter project, so it hasn't materialized yet. Although I'm eagerly waiting, it's a remake of Can We Still

  101. A

    Join, or are you just teasing us with something we can't join?

  102. B

    A good question. So I asked the person running the project if people could still join because the project has already been funded and it's over from that perspective, but he said yes. He said just email me or message him through Kickstarter and give him some information and PayPal him $50, and you can join. So basically, even though you can't join through Kickstarter, you can still get the book. The book is Paranoia RPG. It's specifically it's a remake, so Paranoia RPG is a book that came out a long time ago. It's a game book, so it's kind of Dungeons and Dragons, these other ones, but this one, the catch is you're sitting around at this table playing with these other people. One of the person is a, you know, Game Master, so just like D&D, but each person has a secret mission, and the secret mission is always destructive, like my secret mission might be get Patrick killed as many times as possible. Patrick's secret mission might be like fail this one part of the mission. And so the way the game works is instead of rolling dice—well, you roll dice too—but in addition to rolling dice, every time you take an action, everybody passes a card to the Game Master. And most of the cards are empty. So you start off with a handful of cards, maybe, you know, 20 of them are empty, but you have three of them that say automatically fail whatever whatever action you're doing right now, and you have three of them that say automatically succeed. And so if Patrick is, you know, trying to turn on the shield generator and my mission is get Patrick killed as many times as possible, and he's under fire from enemies, then I will pass my, you know, 'Patrick fails this roll' card. But because everyone's passing a card, Patrick doesn't know what I did. He doesn't know it was me who did. That at least not right away. And so that's kind of the whole point. Is like but one thing is, if you fail the entire mission, then everybody loses. So it's sort of like you have to limp along through the mission just stabbing each other in the back as many times as possible without going overboard and losing the mission. So it really takes the whole D&D experience and makes it like it makes it really exciting. Like I played a little bit of D&D, and I could never really get into it, but this I just absolutely loved. And it's the thing is, it's really dated, especially being sort of a sci-fi theme book. It's definitely showing its age. So this Kickstarter is a way to rewrite it, you know, for a modern audience, and I'm really looking forward to it.

  103. A

    My book was going to be Red Planet by Kim Stanley Robinson. That was the one I was terribly foreshadowing last time by saying I wasn't that into it. Turned out the book ended, and I still wasn't that into it, and so I decided not to give you that as a recommendation if you're interested in a really long-form dry discussion of terraforming on Mars and economics of that and hey, there's water.

  104. B

    There's water on Mars, so we could do.

  105. A

    That now, which is something this book talks about. Oh great, Elon Musk talking about nuclear bombing Mars as a way to start kickstart terraforming is also something kind of they talk about in the book. So the book is—I mean, it's accurate and interesting in that regard. It's just it's a pretty long book for that anyways. Um so instead I'm not finished with the book; I'm about halfway through it, but I'm really enjoying it thus far. And that's John Scalzi's relatively new book, Lock In. And this book is about a near future where people get a flu or flu-like virus that alters their brain and makes them paralyzed, and kind of like there's a whole portion of society that becomes locked in where they can't move and they have to do everything kind of virtually or like through the use of like android robots. Oh wow, so that's not spoiling—that's like literally like the first five pages of the

  106. B

    book. No, yeah, yeah. So that makes sense. That's

  107. A

    Cool. That's awesome. It's really interesting, and I'm actually listening to this book on Audible. And if you're interested in trying Audible, which a lot of people have been doing, so send us in like what you are listening to with your Audible free book, and you can go to audibletrial.com/programmingthrowdown—all one word, lowercase for programmingthrowdown. So that's audibletrial.com/programmingthrowdown. You can get a free book, and we get a little bit of something to help us keep the show running, and you get a book for free that you get to keep even if you cancel your subscription.

  108. B

    have one book a month that I get.

  109. A

    And I always find something awesome to listen to. They have tons and tons and tons of books, even if some of them are real like losers, like Red Planet, Red Mars. Yeah, I mean you don't have

  110. B

    if you really

  111. A

    Like it interested, but yeah, it's okay. Very cool. It was better than sitting listening to music again on my drive into work. Yeah.

  112. B

    Right. There's only told only so many chip tunes on Spotify. Hey, you

  113. A

    listen to that channel too. Yeah, I love that channel. I look what is the new one? I got it was something very strange. I'll have to think of what it was. Oh, okay. Ah well, it's like disco EDM or

  114. B

    something really okay. Yeah, I was like, oh.

  115. A

    Okay, interesting. Yeah, yeah, okay. Time for Tool of the Show to

  116. B

    Tool of the Show. So my Tool of the Show, it's there's a pair of

  117. A

    tools? What that's

  118. B

    not fair. I know, totally cheating. The first is ImageMagick. Now this is ImageMagick, like the British version. So it's M-A-G-I-C-K, ImageMagick, and it is a library for working with images, and uh it has a billion different bindings. I haven't checked, but I'm pretty sure there is a Ruby binding. Let me check right now. Oh yes, there is. There is our Magic. Yeah, so there's actually two. So, yeah, there's ImageMagick. It's ubiquitous. Just everyone uses ImageMagick if you're doing things with images. It's great. Um also FFmpeg. Um it's it's in the same vein as ImageMagick for videos. Uh despite the name, it does way more than MPEG. It does WMV, does AVI, does MP4, which I said it's MPEG, but it does it does everything. Um and uh it's ubiquitous. It's bindings for every language. Um so if you need to work with images or you need to work with video, um you're going to be using ImageMagick or FFmpeg, and uh they're actually they're just like brutally difficult to, you know, kind of compile yourself. And if you wanted to, like I remember one time I spent just almost a month getting FFmpeg to even build on Windows. Um hopefully a lot of that is better now.

  119. A

    You can guess I've done this. I have experience with FFmpeg. There's like a series it's just like a zip of executables you can download. Yeah.

  120. B

    That's right. So so so definitely, you know, they're huge monolithic projects. Don't try and build it yourself if you don't have to. Um fortunately most people don't have to because there are just bindings for everything. So I check them out. They're great. I've used them for so many different projects. We had a thing recently where we were doing some machine learning on videos, and um we wanted to sort of put uh some instrumentation, just draw some instrumentation on the video, um like annotate the video, and we used FFmpeg to do that, and it was it came out really

  121. A

    nicely. Uh the other thing I two things I use FFmpeg for are taking a video and converting it to stills, so like every frame to its own file, and also I took uh it's really weird and cheesy, but whatever. I take a time-lapse of putting up the Christmas tree each year, and I just take it with like my SLR camera because this is what I'm used to now. Although now I'll probably do it with my phone since they've added this feature. I typically take it as a whole bunch of still images, and then I use FFmpeg to smash them all into a video file. Yep.

  122. B

    That makes sense.

  123. A

    It's just really super easy and straightforward, much easier than like trying to open a whole bunch of high megapixel images in, you know, like a video editor or something; they tend to bog down.

  124. B

    I mean that would be just brutally painful to do.

  125. A

    It's kind of silly because a 1080p video is what it like a mega no two megapixels per frame or whatever, but like an SLR takes like eight megapixel or 12 megapixel images, so yeah. Is it?

  126. B

    Um, is it—is it you get better quality if you downsample? A something with high optical quality? Does that do that?

  127. A

    The videos for me turn out really good. And I—which I guess maybe I should try to figure out my phone. The reason why I do it with my camera is I can put it in fully manual mode, which means the focus stays constant. Oh, nice. The settings stay constant. Yeah, right? And so then you don't get like weird effects like some frames being focus changing or when someone walks near or farther to the camera they may go in or out of focus slightly, but at least the whole focus isn't shifting forward and back which distorts the view slightly. Yeah.

  128. B

    I mean, I guess so. If you have a camera that's taking a certain resolution, what that means are like photons are hitting these cells and the cell buckets of a certain size. So if you have a higher megapixel assuming like the aperture size is the same, then you have more smaller buckets, but then you're just averaging those buckets when you downsample. I guess I don't know; I just don't know enough about optics to know like if you take your SLR and downsample it versus just taking pictures with your iPhone assuming there was some manual mode on your iPhone, I don't know which one's better, the other.

  129. A

    Thing is, like the—you know, I typically take it over the course of like a long period of time or two long periods of time, and I find phones work great for when you just want to like take a short video, but like time lapses and stuff you want to take a long one. I want to adjust the speed; I may want to speed up some parts and slow down others, and I've just never gotten in the neck of being able to do that on my.

  130. B

    Phone? Yeah, yeah, I agree. Cool. All.

  131. A

    Right, very cool. My tool of the show is Personal Capital. I don't know if you were—you were talking about no, you talked about something else on another show. I was thinking I talked about Wealth.

  132. B

    Front, but I don't think I've ever talked about.

  133. A

    This, so Personal Capital is a combination of Wealthfront and Mint. So, I don't use them. So they run both a Robo-Advisor—is what they call it—which is like a way for you to invest money with them and recommended ETFs at low rates or whatever. Okay? But I'm not interested in that part of what they do. But they run also a service that's similar to Mint, on top of Yodlee, which is the API backend for connecting to financial services—which is not what Mint uses. Mint runs their own, so the connectivity is actually a little better in Personal Capital than Mint. And Mint is really good for like day-to-day spending and kind of not so good in my opinion for like investment. So if you have any sort of like money in stocks or you know 401k or whatever, Personal Capital does a much better job of like explain, like tracking that, and it'll also give you like you are currently invested in too many bonds or too much cash or too much whatever, right? According to like, you know where you should be at your age based on some recommendation which you may or may not agree with, but it does analysis that I find interesting to see and helpful. And so, I recommend that this week, how does?

  134. B

    How does this company stay alive? Like where do they make their money?

  135. A

    Because they can recommend you services, right? Like same thing as Mint. They're selling at some level which yes, you may or may not be comfortable with. But for them one thing is that they try to get you to—which I've not—I didn't feel like the push is very hard, or at least I haven't had it—but for using their, you know, advisory fund thing in which they get some small percentage once you use a certain amount of money. Same thing as Wealthfront, right? Like after so many thousand dollars, they get a percent. Yeah.

  136. B

    Right, right. Not—

  137. A

    A whole percent, but some fraction of a percent.

  138. B

    Right, right. But it doesn't look like these guys do the Mint thing in a sense. Like they don't do—they actually connect to your bank and stuff like that. Yeah? Oh, they do that? Okay. Yeah, and your credit card? Like they connect to your credit card? Okay? Because it's from the front page, it sounds like it's all about just your investments, not really your day-to-day. No?

  139. A

    It does both, but that's what I'm saying. Like the day-to-day isn't as good, right? Like Mint is better for that in my opinion. Right, right. But this is better for the investments, so it's worth using. And the day-to-day—

  140. B

    You kind of have to—the day-to-day you have to look at yourself anyways, right? Like Mint could tell you some things, but really you should just look at your expenses and just say, okay, that's a mistake or we need to cut.

  141. A

    Down. Well, I'm really like using Mint for having—I have, you know, several credit cards or whatever for different purposes, and like it will accumulate them all together for me. Wait.

  142. B

    Hold on a second. Why do you have several credit cards? So—

  143. A

    I have a high rewards card. This is so personal whatever. I have a high like a reward because I've—

  144. B

    Only ever had one credit card ever since I was like 16 years old. It's been the same.

  145. A

    There's a couple good reasons if you can control it. And this is not—this is so off topic for the podcast, okay? Yeah, but anyways, basically like a rewards card, but it's an American Express which isn't accepted everywhere, so then you need.

  146. B

    Oh, got it. But.

  147. A

    In general, it's also good to make sure you can have a debit card, but you should have at least two, some things in case you know one of them has a problem or you know gets used somewhere else and they have to lock your account, you know temporarily. That's true.

  148. B

    There have been a handful of times where my—there's been an issue with my credit card, and I yeah, I had no backup. So that's a.

  149. A

    Good point. Yes, so it is good anyways, and sorry for that. I don't think Personal Capital works for all of our listeners who aren't in the U.S., and all those people who may be like, 'What? I would like a job,' and now you're talking about how to invest money. But yeah, one day we can all aspire that we have enough money to invest and worry about. So, I mean, one.

  150. B

    Thing everyone can agree on is that they wish they had done better, like they'd known more about this when they started because that's when it matters the most, and that's.

  151. A

    When you know the least, absolutely. And that's where I feel like I'm at, and that's why I guess I try to be—you see those graphs of like every dollar you invest when you're under 30 is worth, you know, hundreds of dollars? You're 50?

  152. B

    Right. Right. I actually didn't—I didn't the first two or three years. I didn't max out my 401k just because I didn't really understand what it meant or anything. So yeah, don't do that, kids. If you can max out your 401k. Yeah. Anyway, so let's talk about Ruby. You sound like.

  153. A

    A really old guy now? Like, yeah, young whippersnappers. Yeah, it wasn't that.

  154. B

    Long ago guys. I'm not that old, but—but yeah, there was a couple of years I've been working if you tuned.

  155. A

    In this is a programming podcast. We promise. I've been in.

  156. B

    Industry what? Eleven years, and the first two or three years I didn't max my 401k. So don't do that. How long have you been in industry? And then we'll talk about Ruby. I'm just.

  157. A

    Curious. I think I'm at eight years, okay?

  158. B

    Maybe I'm not at 11 then? Maybe I'm at 10. I don't know anyway.

  159. A

    I did it right after undergrad. I started working because I did my Master's degree while I was

  160. B

    working. Okay, got it.

  161. A

    Got it. Yep. Anyways, again, so off topic.

  162. B

    So Ruby... um, so I

  163. A

    I have a quote I want to read. This quote, okay? Go for this is related to sort of like background for Ruby, and this is by the inventor, designer, creator, the head honcho guy for Ruby, Matsumoto—probably saying it wrong. He's Japanese, that's where Ruby comes from. And here's this quote I really like: 'I hope to see Ruby help every programmer in the world to be productive and to enjoy programming and to be happy.' That is the primary purpose of the Ruby language. That's

  164. B

    Awesome. He wants us to be happy. Yeah. I mean, it's way better than Fortran, which wanted missile simulation to

  165. A

    be more accurate.

  166. B

    Ruby. They want you to be happy. I like that. I

  167. A

    like that. I thought that was nice. It's very prophetic. Um, wait, I don't know about it, but anyway. Yeah. So anyways, that's some background so to give you the direction Ruby is coming from. It's supposed to be a happy and productive environment.

  168. B

    Yeah, that makes sense. I do think there's a lot of—and this, I promise, is the last rant—but there's a lot of connection between being happy and being productive. And like, a lot of people say, 'Oh, I really want my kids to be happy,' or 'my spouse to be happy.' And it's actually kind of hard to make somebody happy, but you can definitely make someone productive, or at least not make—but you could definitely—it's much easier to give people like advice and direction that makes them more productive. And if that leads to happiness, then there's a much easier way to make people happy than to try to make them happy directly.

  169. A

    Anyway, uh, okay. So, yeah.

  170. B

    So Ruby is—people don't know who've never seen Ruby or know anything about Ruby. It's similar to Python, you know? They're

  171. A

    both interpreted. That's its closest competitor, I.

  172. B

    would say Python definitely the closest competitor. What was the other one? You?

  173. A

    said? Oh no, I was gonna say—I was just rephrasing like closest competitor. I think Python is probably more popular than Ruby, so yeah, I.

  174. B

    think they're—they're popular and different. Like Ruby is more popular for web, um, like Python has the Django, which is you know similar to Ruby on Rails but you know not anywhere near as popular. Um, and when it comes to like scientific stuff, Python is just way, way more popular, so um they both have their sort of niches. Um, but they're both interpreted. Um, Ruby was actually number five in the RedMonk programming language rankings, which is pretty cool. Um, these guys, they take um uh the number of comments on Stack Overflow and the number of GitHub projects um and kind of throw it all together in some algorithm and then spit out the top 20 languages. Um, and Python was number four and Ruby was actually tied for number five with C++ and C#. I don't really know how you can be tied when they take

  175. A

    Wow, that's actually pretty good.

  176. B

    So many things. But yeah, Ruby is definitely up there. Um, so it's a popular language. It's a good one to know about. Oh, but

  177. A

    Programming Language number eight is CSS. I don't know what what's wrong.

  178. B

    With that? There's a lot of CSS out there.

  179. A

    No. I yeah, yeah. No, I'm gonna never mind. Let's just move on, okay? I mean, yeah. So,

  180. B

    There is a lot of CSS.

  181. A

    Out there that was not where I was going to go.

  182. B

    You're thinking CSS is more like content than I? Yeah.

  183. A

    I'm gonna—I know if I look up 'Is CSS Turing complete?' the answer is going to be...

  184. B

    Yes, of course. Of course. Yeah, but I think to your point there's a lot of CSS that is just describing things that's really not source code; it's really output, right? I mean, in fact, it literally can be output because there's LESS and Sass and other programming languages that compile to CSS. And in fact, not that many professional developers write CSS like raw. CSS anymore. It's sort of like saying oh the most popular programming language is machine language. But anyway, so one of the things that made Ruby so popular is Ruby on Rails, which is a sort of Model-View-Controller web framework written in Ruby. And so I'll kind of talk about that briefly. So MVC framework—Model-View-Controller framework has sort of three components. There's the model. The model is usually—usually starts out auto-generated. This is called an Object-Relational Model, or ORM. And so this is you can actually do something in Ruby on Rails called scaffolding and say you're writing some very small metadata file which just says things as simple as like I have a person and a person has an age and a person has a list of phone numbers. And you write in this very compact DSL, and then from that it turns into an entire database and also a bunch of code to do primitive things with that database, like if I want to fetch a person or write a person, things like that. So the model is—a lot of it is auto-generated. You may want to do, you know, more specific things in that. You may want to say get all the people that have updated their profile in the past day. So that's not going to be auto-generated for you; you'll have to write that. That would be part of the model. The view is—all just HTML and templates. So the idea is, you know, view might be something like, you know, open tag header close tag hello and then in brackets person name close brackets, and then the controller, which is a third piece, it's responsible for filling in all those brackets. Like it's responsible for knowing what 'person name' means. It uses the functions you wrote in the model to go and fetch people and then—and then tell the view, you know, this is the information you need. So I don't know if Ruby on Rails was the first MVC framework, but it's definitely the most popular by far. There's a ton of tutorials and other references which we'll talk about at the end. And it also—it's pretty cool with the scaffolding. It actually supports different databases, which is pretty awesome. You can actually prototype your website using SQLite. You're just running on your machine without any database service, and then you know copy your Ruby on Rails project over to your server which is running MySQL, and run the exact same code on that—on that server, and it just magically works. It's pretty cool, magically. Magically it's—the magic of scaffolding. So Ruby on Rails totally awesome. It might be a bit dated now. I don't know how well it's maintained. I haven't—I definitely don't hear about it as much as I used to. But it's—I've used it for a few projects. It's phenomenal.

  185. A

    I think also it got promoted to Ruby on Rails was really pushed a lot by the—oh, why is why the name just this? Oh, why did the name just escape me? Oh no, brain meltdown. Oh well. One of the things that Ruby I think is popular because of is also it supports a lot of different ways of programming. So Python also has this as an advantage. Like you can do scripting in Python or you can write object-oriented stuff in Python. Yep. And Ruby has a similar thing where it really does support lots of different ways. It just doesn't try to get out of your way and allow you to do lots of stuff in a very flexible manner so that you can write the write in Ruby different codes for different problems, oh, different coding styles for different problems. Yeah, and this

  186. B

    is one place where Ruby does better than Python. Like in Python, a class is handled in a really goofy way. I mean, basically a class is just a collection of functions. And I mean, I'm not going to get this right because it's very nuanced, but under the hood in Python, you know, a class is just—it's just like kind of an afterthought. It was kind of hacked on there, but in Ruby, you know classes are totally kind of their own entity and they're handled in a much more elegant way. Yeah, another thing with Ruby is you could do really elegant metaprogramming. So in other words, if you have—if you have a—if you have a class and the class has a list of methods and you want to get, you know, the method names of the class of actual function names, you know, you can do that pretty easily like you enumerate all of the methods for a given object and things like that. You know, you could do this in Python—any object has a '__dict__' or property, and using that property you can fetch, you know, you could do metaprogramming in Python, but it's—it's definitely as I said before, it's definitely kind of an afterthought or some hacky thing that you know probably wasn't intended in the beginning to be a big part of Python. But in Ruby, that's kind of like a first-class citizen in the sense like they kind of thought about that from the beginning. And that's one of the reasons why Ruby is so good for Domain Specific Languages, which we did have a

  187. A

    request to talk about and we will in the

  188. B

    future. Yep. Yeah.

  189. A

    Definitely, but briefly, it's like a new language you define. But you're not trying to do everything; like you're not really writing a whole language. Well, you are, but you're not writing a language to do everything—not a general-purpose language, a very domain-specific something for a specific niche, a specific application. Um, so like scripting an AI in a video game, right? Like you may want to have a configuration language for doing that that actually gets executed, but it doesn't need to necessarily be Turing complete or does it need to be? From it may look a lot like Ruby. Um and Ruby supports that really well. It has a lot of them because of this really good metaprogramming, reflection, introspection. Yep, I mean.

  190. B

    You might want a DSL that's very specific so that you can make a lot of assumptions about the DSL. Like for example, in Ruby on Rails there's a DSL for defining your model, and they make a lot of assumptions, and based on those assumptions, they can do—they can turn your model into, you know, SQL commands. They can't just turn generic Ruby code into SQL commands; that would be too hard. So the DSL tightens the assumptions on the language, and because of that, it lets you do really cool. things. Um one of the cons about Ruby—it's it's again it's a double-edged sword here. So take con with a grain of salt, but it's dynamically typed and it's interpreted. And so what that means is um if you spell something wrong, you know variable name wrong, uh if you change a function to, you know, accept a string instead of a number, and you didn't change all the places that use that function, you're not going to find out about that until you run the code. Um so if you know if you're talking about say Homebrew, which is uh, you know, the the um Mac package manager that's written in Ruby where you just like hit some command and then after, you know, a minute it's done—that doesn't really matter. It's like now you found out about the bug after 50 seconds instead of, you know, two seconds or something. So it's not that big a deal. But if you're building a website, there might be bugs that you don't find out about for a month and then they just start crashing. You don't know why. And uh there's a really interesting Stack Overflow question about why Twitter switched from Ruby to Scala, and the short answer is is is just that like they ran into too many problems where everything looks good, and then at two in the morning some code path gets executed that hadn't been before, and things just start crashing. And so with Scala, you know, if someone fat fingers a variable and spells it wrong or if they change a function without letting everybody know, uh you know Scala just tells you right away before you deploy that.

  191. A

    Code? So are they still using Scala? I don't actually know. I know they were. Yeah, I know they were using for trying to use it for a fair amount of stuff before, but are they using it for everything? Um good question. So

  192. B

    I used to talk to a lot of people at Twitter. A lot of those people now aren't at Twitter anymore, so it's hard for me to really know. Uh you know, definitely as of a year ago or as of two years ago, they were definitely using Scala for almost everything I heard actually. So I did hear uh sort of friend-of-a-friend kind of thing. So take this with a grain of salt, but I did hear that they were moving away from Scala. Um I don't know why, but maybe there's performance issues or something. I don't know. I do know Scala takes a very long time to compile. Um so I don't know if that was why, but uh yeah, I'm sure there's still a ton of code they're written in Scala. So

  193. A

    Also Ruby just really never got adoption in scientific uses, which is something Python got like huge adoption for. So so there's a lot of really good examples and libraries for doing scientific computation, high-precision math, that kind of stuff in Python, and it's just like I'm sure you there's no reason you couldn't do it in Ruby, but you're just not going to be going down the path of least resistance as far as having other people have already done it. Yep.

  194. B

    Yeah, I mean if you're going to do something scientific, just uh write a Python web service and and have Ruby call it. I mean don't try and do uh scientific stuff in Ruby; it's just going to be painful. Um so just just for people who don't know like a lot of these scientific like matrix optimization, matrix, you know, operations, and things like that, they really have to be done in C or even Fortran. And and so Python just has a bunch of bindings to those languages, and really the cool part about NumPy, SciPy—these libraries are all of the C code that you don't have to write. Um so so you know you can't just take, you know, the the scientific libraries in Python and port them to Ruby; it won't be that easy. Um so yeah, that's that's definitely one area that's that's uh that wouldn't be fun to do in Ruby. So and you don't have to—you could you could definitely use both of these languages together.

  195. A

    Yeah, um a great learning resource which I think both Jason and I did. I never finished it, but I did do a fair amount of it was the Rails for Zombies, but I did about Terrible People all these Moops, which I guess has been exactly a MOOC, but sort of similar to railsforzombies.org. Um and this is an interactive online uh tutorial which I was one of the very first ones I saw done like this. Now I see them all the time, but very first ones I remember distinctly seeing was this one, and it takes you through all of the kind of steps of bringing up a Ruby on Rails website, and it has a kind of funny theme with zombies, and it's just it was a fun time and it's also educational for what would a Ruby on what is developing a Ruby on Rails app look like.

  196. B

    Yeah, I also did about half of that. I thought it was great. Um definitely check it out.

  197. A

    Didn't you finish? I'm just teasing. I'm just

  198. B

    teasing. No, I mean I'm I'm thinking about it. I don't

  199. A

    Really know calling the kettle black.

  200. B

    Actually, okay. I know why I didn't finish. I remember it's because I got halfway through and I learned as much as I needed to know to build the site, and then I just started doing real work. That's what happened. So it's actually I would say it was a win for them. Like they got me to the point where I could—I was productive. So nice. Yeah, so definitely.

  201. A

    Check it out if you want.

  202. B

    To be productive in Rails, you have two people here who took this class and then did some cool Rails stuff. So yeah, check it out.

  203. A

    Well, thanks for listening. Yeah.

  204. B

    Um, just a couple of meta things. Oh, first let's recap for people who skipped to the end: Book of the Show, probably.

  205. A

    A good idea. There was a lot of ranting.

  206. B

    This episode. Yeah, Book of the Show is Paranoia RPG and Patrick's Lock-In Tool. This show I did Image Magic, FFmpeg, and Patrick did Personal Capital. Um, so yeah. So one thing: we've had—we're still kind of dealing with some hosting provider issues and things like that. We changed hosting providers, and some people in Russia—I got an email from someone in Russia who can't access it because the hosting provider is banned in Russia. I have no idea why. I'm pretty sure it has nothing to do with us because all...

  207. A

    Those nasty things we said about the Russian government? No, we did not say anything bad about the Russian government.

  208. B

    Yeah, all those like Vladimir Putin jokes we've been making. So...

  209. A

    I don't know.

  210. B

    So I'm sure it has something to do more with the domain—the top-level domain—and nothing to do with Programming Throwdown. But nonetheless, we're banned in Russia, which is kind of cool. Yeah, go us. Um, I am going to host the podcast like an alternate place on S3. I did a lot of research into RSS. There's actually no way in the RSS feed for me to specify two sites. No one ever thought of that as a reasonable use case. So I actually cannot, you know, fix the iTunes or the RSS or any of that. The best I can do is provide, you know, just a download link on www.programmingthrowdown.com. So that's what I'll do. Um if you can't access the podcast and you're not in Russia, let us know because so far as I know, Russia is the only country in which we're banned, but there could be others. So if your buddy's telling you what a great episode and you can't listen to it, your buddy should.

  211. A

    Let us know your buddy should.

  212. B

    Just send you the file, yeah, and let us know. So um, yeah, but basically you can go to the website. I'm going to have alternate download links as soon as possible, so.

  213. A

    All right, I think that's.

  214. B

    A wrap. Cool. All right, guys, have a good one and keep sending us those emails; they're awesome. You know, thanks for all of your support on Patreon. Actually, the Patreon is growing. Let me see what it's at. The Patreon is at 22 an episode. So thank you guys, that is awesome. Thanks for supporting us on Patreon. We really appreciate that. That's awesome, and thanks for checking out the books that we recommend and all that good stuff. Send us lots of emails. Thanks for Yaroslav, Ash Booth, and Quang Nguyen for the questions and comments. And I'll catch you guys.

  215. A

    Next month, the intro music is Axo by Binar Pilot Programming.

  216. B

    Throwdown is distributed under a Creative Commons Attribution-ShareAlike 2.0 license. You're free to share, copy, distribute, transmit the work, to remix, adapt the work, but you must provide an attribution to Patrick and I and ShareAlike and Kind.