Hello, and welcome to another episode of The Bike Shed, a weekly podcast from your friends at ThoughtBot about developing great software. I'm Joelle Kenville. And I'm Stephanie Min, and we're also joined by a very special guest, Noel Rabin. Hi, I'm here. Yes, you are. I'm here to talk about bike sheds. Are we not talking about bike sheds? You know what? That's actually a different show. I'm just kidding.
Software it is, though. And together, we're here to share a little bit about what we've learned along the way. I have to have railed us already. I'm sorry. No, it's great. This is what we do on the Mike shed. Let's go. So Noel, the question that we open with every week is, what's new in your world? I have to give the self-promotional answer, I guess. What's new in my world is that I have this book out, the Pickaxe book, Programming Ruby 3.3. I guess it's new relative to previous versions of it, so I'm the co-author of it. And it is new up to current versions of Ruby. And also, I just did, just as we recorded this.
posted a very, very long blog post about ways to work around static typing in Ruby by using Ruby's dynamic type system, which is a thing that I have been writing about online for a bit in these very long, probably nobody reads to the end blog posts. So that's what's new with me professionally, I guess. I'm really curious about that static typing, dynamic typing area that you've been digging in. What is it there that particularly excites you or gets you interested? So this started with some discussions with work colleagues about Sorbet and the value of Sorbet and static typing within Ruby.
I think I have a sort of idiosyncratic vision of that because unlike a lot of Ruby developers who came to Ruby through Java or other statically typed languages, I guess a lot of Ruby developers came through Python now. but I came to Ruby through small talk. So I am extremely comfortable with the idea that there are no static types and that you can still build large systems with it. And I got into trying to extract why I felt that way and what it was specifically about the discussion around static typing in Ruby that really rubbed me the wrong way. And which is essentially, there's a line of thought that it is always good to be more strict and it's always good to be more static, that there's never ever any downside to being more static, that it is a good in and of itself. That is apparently the only thing in software design that has like only benefits and never has any costs. And that sort of attitude.
I was trying to fairly, but to also say like, hey, there are also reasons why people don't do this. And there are reasons why people moved away from Java. And maybe these things have different value based on your team size and how complicated your code is and what other kinds of things you're looking for. So I wound up and then it got away from me. I try to do these blog posts, which are separate from the book writing. And I try to do them regularly. And then this one, for some reason, I just took me six or seven drafts to break the structure of it in terms of what had it make sense. And that is very unusual for me. I usually, the blog posts usually.
the structure comes when I write it and I'm mostly just editing. This one just didn't feel right over and over again. And eventually I wound up tying it to a very, very concrete example and a very, very concrete question. And that helped a lot. Cool. What is the concrete question? The concrete question. So this was also an example that was given to me by my colleague. He presented me an example of essentially a service that calls a service that calls a service. And the third thing down that line.
makes an attribute call. And what he wanted to do is to have the whole thing fail fast if the attribute isn't there. And in a static type system, obviously that's trivial. You have the type come in and if the attribute's not there, it doesn't even compile. And his question was, how would you do that in a dynamic?
system. And I now spent two really, really long blog posts exploring that answer because my first answer of, well, obviously this is a design problem, was considered unsatisfying. So I spent some time really, I think, trying to understand why you would want it to fail fast, what would be the advantages and disadvantages of different ways to try and get that in and what some of the tooling downsides of it. And I can't believe that we're not spending... Now I've written two extremely long blog posts and now we're using minutes of your very, very valuable podcast time. No, I think this is great. In fact, I actually have more questions, which is, did going through that exercise change your mind at all about it?
It didn't change my mind exactly, but it did suggest some things to explore, which was interesting. I found myself talking myself into trying a setup where I haven't done this yet, and I'm not even sure that it would work. But the idea was that rather than static typing the inputs and the outputs of methods, you would only static type the return values. So you have this factory method, whatever, and you say, this will definitely return a user. I don't know what's going into it yet, but it will definitely return a user. And so for class methods, you would say, I don't know what the input variables to initialize are going to be, but I know the instance variables are going to be this, this, and this, and I know that this method is going to return this.
It seems to me that there's a possibility that that might preserve a lot of the flexibility that we like about dynamic languages, but also provides some of the tooling support that you would get from a static tool. I'm not 100%. I'm like 65% convinced. I'm convinced enough to try it on something, but I don't know if it'll work or not. But I found myself kind of talking. It's very dangerous when you write. It's very easy to talk yourself into things that just sound cool. I'm like, oh yeah, that rhymes. It must be true. It's very catchy. And this idea seemed kind of catchy that you would statically type the output of a method, but not the inputs. So I'm a little cautious of it, but I think it might be something I would try.
Cool. I mean, on the bike shed, we love a good heuristic. But we similarly are always like, however, they're not like the law. Yeah. I think it's important. When we talk about these things in programming, one of the things that is definitely true is there are a ton of different ways to be successful in software. There's also a ton of different ways to fail in software. You talk about something like static typing in Ruby or TypeScript versus JavaScript or something like that. Is it possible to be successful in a team that statically types everything even in Ruby? Yeah, of course. You're just making a different set of trade-offs. Different things are going to be hard for you than for another team. And that may cost you time or may not cost you time, depending on the project.
Can you be successful in Ruby without doing any static typing at all? Obviously, teams do it all the time, but there are certain costs that come along with that. One cost is that there's a certain class of errors that could potentially happen that wouldn't happen otherwise that you need to guard against. The trade-off is that there's an incredible amount of flexibility to change your program as the requirements change that you don't have when you're arguing with your static typing tool or your compiler or whatever. I think it's important to not think of these things as like...
laws or anything like that, but to think of them as decisions that you're making that are going to have downstream effects and, you know, which downstream effects can you live with? Do you have a huge team of novice programmers? Then maybe you want static typing so you can limit the amount of damage people do in new code. Like, do you have like, is your team like five experienced programmers that I'll know would be like the back of your hand? Maybe you don't want it then. I try not to let my aesthetic preferences govern what actually works or not. Like my aesthetic preference is dynamic typing, but there are also obviously like times when that's not the best thing to do.
I really like what you said about there are many ways to be successful. And I do 100% agree that it depends on the makeup of your team. In fact, I think that that's a factor that not enough people are considering when making those kinds of decisions. It feels antithetical to the concept of a podcast called the Blake Shed that we would say that there are many, many different ways to be successful when we should be arguing about the color of every color of every Blake Shed. Yeah. I mean, that's the joke though. That's the inside joke of this podcast, I think. Dave Koppelan gave this talk at one of the Ruby Central conferences a few years ago that was basically along the lines of like,
As Ruby developers, we try to do too many fancy things, and we really should just do simpler things that are more accessible to a wider range of coders. I disagree with that aesthetically, but he's right. Dave's very smart. And for certain teams, and I think for the teams that he was working with, the concept made a lot of sense. If you have a bunch of people who are coming from non-Ruby backgrounds, maybe don't do very, very fancy things with blocks. Maybe there's another way to be successful in that concept. Even though I love doing fancy things with blocks, it gets me out of bed in the morning. I actually think that's a great transition then into a question I had for you about the book, which was, what was your process for capturing and then representing just this idea of...
a standard for Ruby that would be written down in Purdue. It's a really good question. I wish I had a more structured answer, but I will say that I definitely felt the weight of it. And I do feel the weight of it when I'm writing under the pragmatic banner. I tried to explain this to Dave Thomas, and I think I made a hash of it because he looked at me funny. But when I am writing, especially in the Pickaxe book, but in anything that has the pragmatic imprint on it, I feel like I don't have as much space to indulge my idiosyncratic opinions about...
how code should be. And there's more of a sense to talk about the community consensus. That doesn't mean that the writing doesn't have any style or that it's not opinionated or anything like that, but that I do feel a responsibility that people are going to take this as being the way, especially in the Pickaxe book. So I want to make sure that there's some claim to it being the way, the way that people do things. In the other books that I've done for Pragmatic, I'm obviously willing to be opinionated about what kinds of things I feel are better tools or worse tools, but I try to have some background on that and not just shout off because there's an imprint here that has a weight to the extent that things can in programming.
I mean, process makes it sound fancier than it actually was. What happened in practice is that when I asked Pragmatic if they were interested in doing another version of this book, and they asked me to pitch what in the book needed to be changed. So I kind of went through it at a very high level, chapter by chapter, and I went, okay, this tool's been upgraded. It needs to be changed. There's a new feature that needs to go here. This thing needs to change. Obviously, we don't need to print the entire core library API in the last 400 pages of the book. We can probably do something better with that page count. And so I went to them at that level. I think that most of that was just informed by having been in the community for the nine years since the previous book had been out.
very, very high level of like, hey, we don't mention Bundler. That was the thing I was most nervous about was leaving out stuff that had big community importance that was not a new Ruby feature, but was like a tool with a big amount of mindshare. There's only a handful of third-party tools that make it into the book, but I was really nervous that I would leave an important one out. It seemed to me like it would be the easiest thing to get wrong. Yeah. And the opposite problem too, of putting something in that then actually doesn't have a lot of longevity. Well, yeah. You can actually see that in the previous version of the book, which spends a lot of time talking about refinements, which were brand new when the fourth edition of the book came out. And so they gave them a lot of space, but then they turned out not to be used as much as they perhaps expected. It's less of a problem. Well, I don't know about that. It's definitely a problem. It's definitely something to be concerned about. And unfortunately, there's no way of knowing what the Ruby community is going to want in three or four or five years. So that gets really tricky. And then I guess the closest thing, I had a kind of a...
There were a couple of people that I would bounce questions off of. Like, hey, do you think this order or this thing makes sense? Just a couple of long-term people who've been in the community a long time whose opinions are respected. And then there was the technical review where also a bunch of people at various skill levels. We had people who were new to Ruby and people who were experienced Ruby people did technical reviews. And that caught some things too. There was one case where I explicitly idiosyncratically said that something was Ruby style when it was not because I wanted it to be more adopted. And four of the first reviewers were like, what are you talking about? So I backed it out. You knew what you were doing by a...
I was trying to be cute. I think now it offers us an opinion, but it says that it's not the overwhelming opinion. It was not a big thing. It was just a little thing. It was just funny to me that so many of the initial reviewers were like, hey. Yeah. I have read a little bit of one of your other books, The Rails Test Prescriptions. That one is different because I do think you are putting a lot of your opinion out there.
solutions for various pain? And did that feel a little bit different, even though it's also kind of under the pragmatic name? A little bit. That's kind of interesting because the first version of the book, the very, very first version of the book, did not use RSpec. It used Minitest because Minitest was the Rails default. And again, and I had not at that point used RSpec that that much. And by the time the second version came out, even though Minispec was still the...
Rails default, by that time, RSPAC really was the community standard. And I spent a lot of time asking people in that case whether it made sense to switch over. It was not trivial to switch every example in the book from mini tests or from test unit or whatever it was called at the time to RSPAC. But ultimately, my opinion that that was the new community standard was sort of borne out by the people I talked to. So in that case, you're right. That book has a lot of opinions about what the right way to do testing is or what an effective way to do testing is. And I don't think the idea is not that you have a book without opinions, but that you try to take some awareness of the fact that people are going to take this very, very seriously. I think that...
One of the things that I have grown to have more of a respect for is the extent to which some readers will take things in a book as being very literal. To the extent where, and this is very understandable, I'm not talking, it's not anything, any casting expressions on people going through the book, but obviously like if something in the book example does not play out for a reader, if they try to use the sample code and it doesn't work the way it says in the book, like they are like literally lost. And that's not on them, that is on me for not providing like a path. And I've had comments from people who get to a point and just drop a book because the first code sample returned something different than what it says it was. I think that you have to respect that people are going to come to this and really not... And by definition, coming to it for the experience that I already have, right? They're coming to it to learn a thing. And so by definition, they don't know it. So by definition, they don't have context. So you have to treat that with the understanding that you're providing the context for the reader. And that's powerful. You can provide the context any way you want, but you want it to sort of map to reality because that's how you gain credibility. If you say like...
hey, this is a problem I've had, and that's a problem that the reader has had, and you present a solution and the solution works, then you're more credible. If you have this infomercial, if you ever tripped over your own feet, then you're not credible. Then you're just trying to sell me something. So we keep talking about the Pickaxe book and the work that you've done there, but some of our listeners may not have heard of the Pickaxe book or be familiar with it. Can you maybe intro a little bit of the book and talk about its significance to our community? Sure, sure. The Pickaxe book, which is called Programming Ruby, was originally written by Dave Thomas and Andy Hunt. It came out in late 2000, and it was the original introduction of Ruby to a non-Japanese audience. It was the first long-form English language Ruby reference at that point. And it became the most significant Ruby reference, at least the most significant Ruby reference in English.
Obviously, when Rails came out and Ruby had a surge of popularity, then the book also was sort of the guide through that. And it was updated several times. Eventually, Chad Fowler came on as a co-author. So they had four versions through 2012 or 2013. And then Dave moved on, Andy moved on, Chad moved on. None of them were really... I think all of them stopped programming Ruby as part of their day-to-day jobs, although Dave at least has come back to it, I think. And so the book did not get updated for eight or nine years. And so it has a certain importance in the community as being the way that a lot of people from that time period learned Ruby and as probably the most complete book-length discussion of how Ruby works.
But as part of my current job, I run onboarding. And part of the onboarding is, here are the references, here are the resources that you can do to learn more about Ruby. And to say, well, this is the preeminent book about Ruby, and it's eight years old. It was just not a great look. We want to present the idea that this is a community that is thriving and our most important reference book hasn't been updated in later nine years. And eventually it was like, oh, I went from somebody should really work on that to like, oh, I'm a person that could do that. They might actually let me. And which is what caused me to actually reach out and ask Pragmatic for permission. And then Pragmatic went and did some negotiation with the other three authors that I don't know very much about and came back and agreed to let me do it. I love that sort of spirit of, there's a thing out there that bothers me. Someone should fix it. Oh, wait, I could fix it. Yeah. It was the day where I realized, oh, I could, I've spent my last...
dozen years of my life, putting myself in a position where I could be like, oh, I could do this. It was a very weird realization to sort of come to grips with. I surprised myself. I was like, oh, yeah, hey, they'd be looking, who would do this? You need somebody who would be an author in the field, probably, who had been doing Ruby for a long time. I was like, oh, that's me. I could do that. Could I? I guess actually I could. It was a very weird idea to hang around. I finally got access to it. They gave me the repo. There's a text repo. They started with a copy of the previous version of the book. I just kind of stared at it for like two weeks before I felt I could make my first edit. It just seemed like a very big deal. What's that?
Different than how you've worked before, like editing someone else's body of work? Yeah, I have worked with co-authors before, not with Pragmatic, but in other ventures. But that was a little bit different. This was coming to it, coming to somebody else's work. I had been told quite generously I had the freedom to change what I needed to change and didn't have to get my changes approved by the previous authors or anything like that, which was a quite generous thing for them to do. And I appreciated that and appreciate that tremendously. But also, I came to it with, here's this very good book that people love and that has taught a lot of people useful stuff. And so don't screw it up. It's kind of like where I started from.
Yeah, you're trying to do justice to something that's near and dear to the community. Yeah, yeah, yeah. At some point, I kind of went through the, I have to do justice to it, but then I also have to realize that my name will also be on the cover. So it also has to reflect, not that there were any significant disagreements in what I thought was important versus what Dave thinks is important, I don't think, but I also had to reflect that it is both this thing that has this stature in the community and it is also a thing that is going to have my name in the cover. So reconciling both of those was interesting sometimes. Now, we've been referring to this as the pickaxe book. You mentioned earlier that it's not the real title.
Why is it called the pickaxe book? Or why do we refer to it that way? I mean, for some reason, programmers have this tendency to refer to the important books in the field by the contents of their famous covers. So, you know, Pearl has the camel book and the big compiler book is the dragon book. And this book had a pickaxe chomping at rubies on the cover of the first edition. And every edition since has had some variance on that theme. As to why programmers like to name their books after their covers, I don't know. I mean, for me, the other mystery has always been who chooses these cover images for all of those technical books. I actually know the answer to that one.
Ooh, please tell me. Actually, I can tell you what Pragmatic does. And I can tell you what O'Reilly did because I co-wrote a book that was an O'Reilly animal cover book. And I can tell you what Rocks did because I wrote a book that had one of those God-awful Rocks author picture covers, those washed out black and white author picture covers that look like wanted posters. Pragmatic basically has somebody who looks for a bunch of like, they go through some stock art and some stock image kind of things. And they play with them a little bit, but they basically give you a set of, they take some thoughts from you about what the book is about and some themes that you'd like to hit on the cover. And then somebody goes off and comes back to you with like six or seven like stock image kind of things. And everybody votes. The author gets two votes and the editor gets a vote and the publisher gets a vote and the winner takes it.
Wow. The funny story about that is in the original version of Rails test prescriptions, which had a cover, which was like a mortar and pestle, I think, I'm trying to remember which version is which. I think the first version has like a pharmaceutical, like a mortar and like the thing you would grind stuff in. But they had given me the option of a tiny shopping cart filled with like ginormous pills, drugs and things like that. And I thought it was hysterical, but chickened out on the first version. And when the second version came out and they sent me those things, I went, hey, we had this cover for the first version that I thought was really funny. And I kind of chickened out. Can we go back and revisit it?
And they went back, and they were like, yeah. And then they thought about it a little bit, and they went, oh, in the EU, you can't have pills on the cover of a book. It would cause it to be regulated wrong, so we can't do it anymore. I was like, ah, all right. That's your window of opportunity. I missed it. That's what happens with Pragmatic. For the Rock's author photos, they have somebody come in and do a photo shoot, or you have somebody do it. And they were, at the time, very, very clear in the contract that they got to pick which picture they used, and you did not. There was a lot of language about that. And then do you know about the O'Reilly animals? The O'Reilly animals, I don't remember because it was a very long time ago. I don't remember it as clearly, but it was pretty similar. They had somebody who searched out old woodcuts.
of animals. And that time when they had like the wood, which is not the current style, the current style is more photorealistic, I think. But at that time when it was more of like a woodcut kind of a style, they had somebody who sought out images and they would kind of, there was a person at O'Reilly, one of the editors, whose job it was to like kind of figure out what animal matched the vibe of the book somehow in some mysterious way. That's so funny. I would love that job. You had like an internal BuzzFeed quiz. Yeah, something like that. But that was literally like almost 25 years ago. So I'm sure that they've changed the process since then. Cool. So I guess another thing, we mentioned your blog earlier where you also write about Ruby things. And I guess I'm just kind of curious, now that you've written,
or like edited the canonical Ruby reference book, what other Ruby things still pique your interest to write about on the blog? Yeah. So I went through the blog and I started doing this, this series of like better known Ruby thing, which is just sort of a deeper dive on like some of the weirder corners of Ruby. So some things that you wouldn't do in the, even in the pickaxe book, cause they're more obscure or you would, you know, you don't want to, they're not worth the effort to explain like every last thing about the way keyword arguments work in Ruby in the book, because it would be a lot. So I started trying to come up with a list of those things and exploring them in a slightly different way on blog posts. I actually learned something, I think in every single one of those blog posts about in every single one of those deep dive posts.
I like to do things that are like the static typing post. I did a thing like an RSpec post a while back that was like, here are five ways to avoid doing loops in your RSpec tests. And I kind of like doing those kind of posts too, which is not how Ruby works necessarily, but how to apply it in real situations. Like, you know, here's a real situation and here's like a few different ways that you can tackle this in Ruby and what the trade-offs are of each of those. You mentioned earlier that doing cool things with blocks is something that gets you really excited. Have you taken the time to do a deep dive blog post on those? There's a deep dive blog post on keyword arguments and there has, I don't think I've done one just on block. Now I'm going to have to go look because I don't remember everything I've ever done, even in the last six months, because that's just sad. The better no Ruby things have been.
Access control, block arguments, keyword arguments, positional arguments. The access control one was private and public, and that was another thing where I have a kind of idiosyncratic opinion about when things should be public and when things should be private, which is exactly the kind of thing that I would not put in the Pickaxe book, but felt like I could write a 2,000-word blog post on. So I did method missing and constant. So I haven't done one just on blocks themselves yet, but yeah, I will at some point, because there's nothing on blocks as arguments, but not blocks as blocks versus procs versus lambdas and something like that. There's a lot of weird corner cases in that part of Ruby. Yes. I find that that's something I'm always looking up to relearn, because I always forget. Yeah.
How much controversy do you get for some of the more opinionated blog posts you put out? I would say in general, I get less feedback than you would probably expect across the board. The private-public thing, which is one of the few things that I argue about online kind of occasionally, I did get some, you can see that there's actually comments on the blog post that somebody said, the harshest comment, somebody was like, oh, now I know that if I see your code, I will not respect it or something like that. It was one of the harshest comments I've ever gotten, honestly, which is great. People generally don't give me very harsh comments. But I did get some pushback on the private-public thing, and I got a little bit of...
pushback on the stack type of thing. Not so much, though, because the stack type of thing isn't so much making a bomb thrower argument as it is kind of like just sort of walking through the implications of the idea. So I didn't really get as much pushback on that. The you shouldn't write private methods unless they actually mutate things argument. People did have contrary opinions on it. And who knows? I think that there are certain circumstances where they're probably right. But it's interesting because you mentioned the idea of credibility when writing a book. But I'm hearing that the blog is definitely just more of a space where you just like, I don't know, try things out, share weird things you're trying and you're thinking. And you're definitely not. Yeah, you aren't wearing that mantle that you mentioned earlier. No, yeah. I don't feel like the blog has a certain level of assumed.
credibility that is maybe unearned in its status. But yeah, I don't assume that the blog post is coming from a position of like, this is the way of doing it. And I think it's, I'm pretty clear about that. I hope anyway, like, I don't know that people are taking this as anything other than an opinion. Obviously where it's things like, this is how keyboard arguments work in Ruby. And then like, it'll be like, here's the one thing I think about this that is like a hot take that might be, and that here's my opinion. Like as long as I think I separate that stuff, it all seems to kind of work.
I definitely feel some of that distinction in that I write a decent amount for the ThoughtBot blog. And when it's under the banner of ThoughtBot, I want to be careful not to go too far into hot takes or things that are just me personally versus something that's a bit more consensus within the company. Yeah, it's the same thing. You're being loaned somebody else's credibility or the credibility of an organization. And you want to make sure that you enhance that credibility and not stand away with it. Whereas for my own credibility, I'll say this is a hot take. It is sort of anthetical to my personality to be like a bomb thrower and be like, hey, everybody should do this right now is not really my personality. So even my hot takes on the personal blog post are a little more measured.
I will go through and say, like, this is an idiosyncratic take and say things on the personal blog that I might not say if I'm writing something under the pragmatic stamp or whatever. I'm pretty sure that when your private versus public methods article came out, I shared that in the ThoughtBot Slack and started a whole conversation. Hey, what do you all think about this? How would you approach this? And I want to say there was an internal discussion about that idea.
That's good. I mean, the whole point of this is smart discussions. I will add that probably Dave Thomas would tell me to be more aggressive in my own opinions under the pragmatic label. Like some of the stuff I think is a little bit self-imposed of being sort of, even still at this point, a little bit like intimidated of having that mantle. Whereas like, you know, Dave Thomas, who I think can wear it a little bit more loosely because it's basically his, I think would push me to be a little bit more aggressive, I think. Especially for something like the Pickaxe book, which sort of, you're trying to capture a little bit of like community consensus. Yeah. How do you go about determining what is community consensus? You want to capture what it is that people who love Ruby love about Ruby, right? That's the important thing.
more than the details of the syntax. Details of the syntax are important, yes. The tooling is important, but you also want to make it clear that the thing that we love about Ruby is it gives us the flexibility to do this, or it makes this thing or that thing easy to do. And that necessarily is a little bit opinionated, but I think in some of these cases, there are opinions that are shared by a lot of people. A lot of people who like Ruby tend to care quite a bit about the aesthetics of their code. It is just a feature of the Ruby community for better or for worse. So I think that's important to come across. You can do it this way in Ruby, but Rubyists don't like it because we think it's ugly. That's a true statement. It's so true. As far as looking for consensus...
In the part about Ruby's style, I really took as a baseline the stuff that Justin Searles has done for standard Ruby, where he tried to create a standard Ruby linter, and he really tried to limit it to the rules that really had community consensus. And so that was the thing. If you look at that part of the book, it very explicitly says that's what it's doing. And I think that was where I started in terms of these are style guide things that have strong community consensus. Two spaces for indentation, and we underscore variable names, and the very basic kind of stuff. And we put spaces here, we don't put spaces here. You can do it the other way, but in general, we prefer it if people do things this way.
Other than that, I also, as I said, had all of these reviewers who were happy to capture things that they thought were not community consensus, or in some cases, tried to get their own idiosyncratic viewpoints in. I took one or two of those, too. Enough people have the same idiosyncratic viewpoint, eventually it becomes the community viewpoint. That's true. Yeah. I really like how you put it, just trying to capture what people who love Ruby love about Ruby. I am going to steal that. Yeah. 20 minutes from now, I'm going to be in an onboarding thing, and I'm going to say the same thing to the group of people who are onboarding as Ruby developers. And I'm also going to say, welcome to the Ruby community, because I think the Ruby community also is very self-conscious about being a community and being welcoming to new developers in a way that isn't true across the tech world. It's not perfect, but I think it's an ideal that the Ruby community tries to have, which is great.
I didn't realize how much your experience onboarding developers were new to Ruby. I'm sure it kind of shaped how you want to teach it or how you want to introduce people to it. Do you want to say more about that? I mean, so I've been onboarding Ruby off and on for more than a decade now in different roles. And one of the fun things about that for me, so you have people who come and they know a little bit of Ruby or you have people who come and they know Python. So Ruby is like a very close lift for them or they know JavaScript and Ruby is a little bit weird in terms of syntax, but the basic ideas are similar. Then you have people who come in from like Java and they come from enterprise worlds that have very different set of aesthetic.
Anesthetic of, you know, very strongly typed anesthetic of this code is not going to change for 20 years. Like we need to make sure that it is locked in. And I can usually like, you can start to see them like start to have like a lot of questions as we start talking about how classes work and things like that, that are along the lines of like, how does anything ever get rid of it? in this language. And so then one part of it is you show, oh, I can reopen classes. I can add a new method to string. Oh, I can redefine integer or addition. And generally, some people are like, that is the coolest thing I've ever seen in a programming language. And some people are like, what is this madness? How can we depend on anything? And I have to admit that in an onboarding situation, I enjoy the what is this madness. People are like, that is a fun dynamic to play off of. It is fun to get to try to defend.
Ruby against that. And just hopefully try to show the person, hey, this is another way to be successful. This is a way to be successful that is not the way that you're used to. But I promise you that we have written large programs in Ruby and they don't all fall over when we're not looking at them. I promise you that this can work. Please let me show you how it can work and trust me a little bit that this can work. So yeah, I think that that experience of onboarding and seeing the reactions of people does have a lot to do with the way the book works. And it had a lot to do with a couple of talks I gave at RubyConf and RailsConf along the lines of like...
trying to overcome my natural tendency to be a little bit defensive in the face of like that. How do you build these programs? Well, we just, you know, we do these dynamic things. We don't really do these dynamic things because we don't do them very often. It's like, no, like this is the good part. Like this is the part that's the powerful. This is why you're using this tool. Like let's try and figure out a way that we can make these, that we can be confident enough in using this part of the toolkit that we can be confident that we're using it well.
Yeah, I was just thinking that that would be a very scary introduction to Ruby, I think. No context and just kind of like, okay, you can do this, but then you've got to follow it up with. People don't do this all the time. It's not the first minute. We show other things first. I show normal stuff first. Got it. But I do make a point of showing that bit. First of all, because it's a fun demo. And second of all, because I think you need to know what the boundaries are and that they're different than what you might be used to.
We start with, this is what a string literal looks like. You start with, this is what a string literal looks like. And step two is, and here's how we can use metaprogramming to make it do something you would never imagine. No, that's like step 10 or 11. It's hard because it's not a very long onboarding session. And we do have people who come through it who are relatively new to Ruby. So the goal is just to give a sense of what people about Ruby love about Ruby, where you can go for more information, and to just sort of give a grounding in it rather than try to explore every little corner of language because you have a limited amount of time. And it's meant to be, it's onboarding. It's not the end of the person's experience. So you want to have a good first experience.
You spend a lot of time teaching people Introduction to Ruby. I'm curious for yourself if you learned anything new about Ruby as part of writing the book. I did learn a lot of stuff. And I learned a lot of stuff from the existing text of the book, which was kind of embarrassing. I learned some things about... Well, first of all, to write the book, I learned a lot about the new features of Ruby. I learned a ton about pattern matching and about rectors and things like that because those needed to have multi-page, big sections in the book. So I needed to really understand how those worked. And there were three or four things like that that I really needed to learn that I hadn't had an opportunity to learn, but that were important enough parts of Ruby that they had to have significant, especially pattern matching. I really needed to...
House of Space and I hadn't used it very much. But there are also corners of the regular expression universe in Ruby that are extremely powerful that I didn't really know about. I learned about a lot of different parts of the Ruby standard library that I hadn't used before that were cool and that I hadn't really explored very much. I definitely learned things. The act of writing the book was tremendously fun. I really enjoyed it. It was a fun thing to sit down to and get to do. Everything about it was just really fun.
I don't know if you have really talked about this, but do you dabble in any other languages these days? Not as much right now because my job is very specifically Ruby-focused, but I do write JavaScript and front-end stuff as needed. So I still write Rails apps that have some front-end components, so I still work in JavaScript a little bit. I haven't really played a whole lot with other... programming languages recently. Like I've gone through phases, like I've done Python in the past and I've worked with, you know, I went through an Elm phase for a while where I tried to do a bunch of stuff in Elm. I've used a couple of different JavaScript frameworks and I've used TypeScript and things like that. But yeah, so I do have some experience that historically have used a lot of different languages in the past. I have a lot of different kinds of angles to come at things with, but my day-to-day right now is largely great.
Do you have anything, Noel, to say about the reception to it, or just now it's been in the world for a few months? Do you want to go in that direction? As I said, I get less feedback than you would probably expect, but it has been very nice. People have been very warm about it, just about the fact that it exists, that it is back in the world. People at conferences and places where I have been out in the community, people have come to me to express that they're very happy that the book is out. I think the most consistent feedback that I've gotten is just people that are happy that it's being continued. But if people want to leave Amazon reviews, I'm not going to stop them. We love a good review. Yeah, good reviews. I mean, good reviews are good.
Other than Amazon, where people can leave you a five-star review, where else can they find the Pickaxe book or your work in general? So the Pickaxe book is available at Amazon or Bookshop or wherever technical books are sold. You can also get it in e-book from the Pragmatic site. It's pragprog.org. And you can find it there. You can find my blog at noelrapin.com. You can also subscribe to it as a button-down newsletter. If you're really excited, you can throw a couple of dollars at it to subscribe. That gets you basically no perks at the moment, but there may be future perks. Mostly, I'm just trying to cover the costs of the newsletter and a couple of ancillary things. So if people want to do that, that is great. But otherwise, the newsletter comes out intermittently.
And we've talked about it as a blog post here. That's most of where people can find me. I'm on most of my technical social media output is on Mastodon. I'm Noel Rapp at RubySocial. You can reach out to me there. Well, we're so happy to have you on the show, Noel. And Joel, shall we wrap up? Let's wrap up. Thanks for letting me be here. It's been great. Thanks. Show notes for this episode can be found at bikeshed.thoughtbot.com. If you enjoyed listening, one really easy way to support the show is to leave us a quick rating or even a review in iTunes. It really helps other folks find the show. If you have any feedback or questions, you can reach us at hosts at bikeshed.fm via email. Thank you so much for listening to The Bike Shed, and we'll see you next week. Bye!