Chris Hartjes — Testing, the Grumpy Programmer, and Self-Publishing

Chris Hartjes is a PHP developer based in Milton, Ontario, principal engineer at Synacor and known online as the Grumpy Programmer. He is the author of two Leanpub books, The Grumpy Programmer’s Guide to Building Testable PHP Applications and The Grumpy Programmer’s PHPUnit Cookbook. In this interview with Len Epp, he talks about his focus on testing, how he built the Grumpy Programmer brand, how he launched and promoted his books, and his experience publishing on Leanpub.

Len Epp: In the past you’ve referred to yourself as an internet plumber or electrician. What do you mean by that?

Chris Hartjes: When you think of what I would call the modern day web developer, for lack of a better phrase, they know how to do a little bit of everything. They know some front end stuff, so they’re probably familiar with doing a little bit of design work. They know some HTML, they’ll know CSS, they’ll know JavaScript, whereas the vast majority of my experience has been on the plumbing side of things, back end code. So when I’m explaining what I do to people, I tell people, “If you ever go to a website and you want to pay for something with a credit card or you’re signing up for an account, I’m the guy who’s writing all the code that makes sure that part of the application is flawless.” So in many ways I feel like an electrician. I’m rummaging around in between the walls and dodging vermin and dirt and trying to fix people’s applications, their virtual plumbing.

Len: It’s a very rich metaphor. As you say, between the walls, but those walls for you, like for a plumber or an electrician, are actually built by somebody else.

Chris: Yes, generally speaking. I don’t do a lot of bespoke, I guess is the hipster term people are using these days,—

Len: Artisan.

Chris: Applications. Yeah, artisan, or artisanal, as I like to call it sometimes. I spend a lot of time screwing around with other people’s stuff and trying to fix it and make sure that it’s working better. I generally find I’m coming onto projects that are already started, and most of the time the application is working and it’s live and it just needs to work better, the pushes to production need to go a little bit better, and the quality of the code needs to get a little bit better. So I’m brought in to help push them along that road. And I try to do it, despite what my Twitter stream sometimes appears like, in a non-adversarial way, because my Twitter account is not really like me in person. It’s more a combination of performance art and trying to promote my little marketing brand of being the Grumpy Programmer.

Len: That was actually my next question — how you developed that identity and why you chose grumpiness.

Chris: Well, I’ve been programming web stuff since 1998, which is a long time. I like to joke one year is like 10 in the real world. We have 15 years of programming, so 150 years in internet time. There’s lots to be grumpy about if you’re a programmer. There’s lots of poorly designed applications, difficult to use tools, lots of corners cut by developers who just haven’t gotten the experience of what it’s like to create something big, especially on the PHP side of things where it lends itself very easily to the spaghetti metaphor with everything all twisted up. So plenty to be grumpy about, and my wife always would joke about how grumpy I was about programming in general. So a couple of years ago when I decided I wanted to start creating things that I could sell to supplement my income, I knew instinctively that I needed some way to make myself stand out from the crowd. What I really am is a grumpy programmer, grumpy about all these things that I have to see, that I have to help fix, and constantly remind people about what they should be doing. So I hit upon the idea of doing the Grumpy Programmer’s Guide to whatever, and a combination of some really aggressive marketing plus being at the right place at the right time — which seems to be how lots of these things succeed — the idea of a grumpy programmer seems to have really resonated with people, and I’ve just taken the ball and ran with it.

Len: And yet you find that sometimes people don’t get the joke.

Chris: Yeah, sarcasm tags are hard to wrap around a tweet.

Len: Have you always had a special interest in testing best practice and automation, or was there a particular experience that led you towards those interests?

Chris: Probably about 10 years ago, I was working for an adult dating website and it was a PHP app and it was a big humongous mess. I’d been on the original team. I was actually the person who had committed the first line of code into the CVS repository, if that gives you an idea of how long ago that is. We built this thing in a big huge death march to get it done for what turned out to be a totally arbitrary deadline, and when we were done we had created a mess. We kept running into the situation where we would change a bit of code and then something elsewhere in the application would break. We would be like, “I don’t understand how this one change over here messed something up over there.” So I started looking around saying somebody must be dealing with this in a better way than we are, and I started searching for stuff about testing. Somehow I stumbled across a copy of one of the early extreme programming books.

I think one of our project managers had a copy, so I borrowed that over a weekend and read through, and I was like, “Oh, a lot of this makes sense.” The testing part was like, “You mean I could write a whole bunch of code that would test everything and let me know that I’ve broken something before it goes up into production? Why did nobody ever tell me about this before?” So ever since then I’ve been pushing with greater intensity, over 10 years, with a really hard press probably for the last three, trying to get other people understanding the benefits of wrapping your application in automated tests, with the whole goal of finding problems before the users of your application do.

Len: Is there something peculiar to PHP with respect to testing that makes it more difficult?

Chris: I don’t think so. PHP, of course, has the really low barrier to entry because it’s so easy to use. Beginners aren’t forced to learn any kind of structure, and a lot of what makes testable code testable is structure. You have to learn about proper object models and dependency injection and Demeter’s law and what it means to have something that’s tightly coupled, all sorts of concepts that I go on and on endlessly with people about. It’s just that PHP makes it so easy to slam something together and get it working. JavaScript is loosey-goosey like PHP is but in a different way, but Ruby and Python have a smaller funnel. You have less options with Ruby and Python to do things, whereas with PHP there’s a zillion different ways to do stuff. You can do it really structured or you can just slap it all together. So PHP, by its nature being a templating language, one of the first languages designed specifically for the web, people just learn through the slam-everything-together programming methodology, and then later on when they discover that this thing they’ve built is no longer maintainable and they can’t change without breaking stuff, that’s when they end up, like I was, trying to find better ways to make their applications work.

Len: You mentioned in your first book that you, and I’m quoting here, feel out of sync at times with the mainstream PHP community. Why do you feel that way?

Chris: One of the main reasons is that for the most part the PHP community concentrates on using frameworks to build applications. I’ve probably used, professionally, meaning having been paid money, about a dozen different frameworks, and what happens is people get focused on the tools instead of on the techniques. I’m a big guy on technique, on repeatable processes. I like to keep things simple, and so much of what goes into frameworks that are designed to help you rapidly build stuff is to me magical and can be difficult to understand, and I often find myself fighting against the framework in order to get it to do something the way that I want to do it. Despite my grumpy demeanor, I don’t enjoy fighting the tools that I’m using.

So I feel like there’s a constant push and pull between people who want to build things quickly and people who want to build things by creating small, simple, easy to understand modules and components and then mushing those components together to do other things. Most frameworks don’t do that. There’s still tons of coupling even with frameworks that promote themselves as being modular; you still end up with a ridiculous number of dependencies. The further you are away from simple, easy to understand code, the more likely you’re going to end up with a humongous maintenance problem on your hands.

So the PHP people all the time are saying, “What framework should I use and what tool should I use?” and all the time I’m like, “How about you just learn PHP and learn some good programming practices, and then the rest will take care of itself?” Every PHP programmer that I admire is very much the same way, in that they learn the language first, and if they have to do something without a framework, they’re not lost. So many PHP developers are lost without their little favorite set of frameworks, libraries and tools, whereas I’m more than happy to experiment with stuff and grab new things just to fit my idea of the thing I want to build at a particular moment.

Len: Are there any big controversies in the PHP community at the moment that you’d like to have your say on?

Chris: Not really. I’ve probably vented most of the things that I don’t like on Twitter. I’m not the type that holds grudges, so I let it all out and then move on to the next thing that happens to be bugging me. It’s still the fact that testing is a really hard sell. Testing is one of these things that you have to get absolutely burned by not doing before you understand why it’s worth the time and effort to build your little continuous integration setups and write all the tests and make sure that every time you’re merging changes together, all your tests get run. All those things are building up towards what I call my own personal holy grail, which I’ve only ever gotten to do once, which is the continuous deployment idea, where a developer makes the change and then it gets run through a whole battery of tests, and if everything passes, it goes up into production without any other human touching it. That means deployments become a non-issue. That’s the thing I see all over the place, wherever I’ve worked: it doesn’t matter the languages, deployments are always stressful. People seem to want to make it stressful instead of saying, “What can we do to make a deployment of something that’s mission critical a total non-issue, that we can push things and go to lunch and no one’s going to be freaking out?”

Len: Do you see a difference between small companies and big companies with respect to resistance to testing?

Chris: It’s pretty much the same across the board. Actually, I think if anything there’s a sweet spot. Really small companies, it’s a really hard sell to devote resources to get all that infrastructure in place, and really large companies probably have their own set of processes in place, so those are also incredibly difficult to disrupt. I think there’s a sweet spot, maybe a team of six or seven developers. With that many people you can probably free up enough time while you get all that stuff in place. Small shops are usually super busy and you hear the whole “I’m not getting paid to write tests” mantra, which I talked about in presentations, and then large companies usually have their own idea how things are supposed to be done. I’m extremely lucky and grateful that my current employer, Synacor, had a humongous commitment to testing already, so when I started working there all this stuff was in place. It’s not like I had to start getting into conflicts with people just to get basic testing stuff put in place.

Len: Speaking of your conference speaking and book writing and podcasting, I’m sure people would be interested to know how you go about balancing all of these activities with a day job.

Chris: With a day job and a family. I’m married and have two kids. The secret, for me anyway, is really strict use of a calendar. I usually plan things a week at a time and I’ll literally look at my calendar and find out the days where I’m not doing something already. Summertime is a perfect example. I play slow pitch baseball, my youngest daughter plays softball, one of my hobbies is I participate in an online simulation baseball league. So if I were to pop up my calendar for the months of May through August, almost every single day I have a little dot on the calendar meaning there’s something I’m supposed to be doing. Without that calendar to make firm time commitments, I would never get anything done. I literally plan my week and say, “On this night I’m going to do this thing and on this night I’m going to do that thing,” and I always try to make sure I put a few breaks in there as well.

Len: You were in Europe recently. Were you there to do any speaking engagements?

Chris: Yeah, earlier this year I spoke at PHP Benelux. I did the keynote, which was an awesome experience. I’d done lots of technical talks, but this was more like a soft skills talk where I talked about what I saw of trends in web development. They all blur together after a while. I did so many of them compressed in a short period of time, especially November, December, January — I think I went to four conferences in two months. Then I went to Minneapolis and spoke at a PHP conference there, and then I did the largest community-driven PHP conference, which is php[tek], which is always in May. So I speak a lot. I haven’t done so much speaking in the second half of this year. I promised my wife I would actually stay home this summer instead of traveling all over the place.

Len: Did you do any training for speaking or was it something you just dove into?

Chris: I sort of did some training. When I was in college, one of our required courses was a public speaking and presentations course. Until that point, I’d been one of those people who were super nervous and didn’t want to do speeches. I’d be the guy up there with a piece of paper in his hand and I’d be so nervous the paper would be shaking. But when I took that course, something happened where a few bits in my head flipped and I no longer was scared to get up in front of a group of people and speak on a topic. I don’t know what happened. I wish I could have figured it out, but all I know is after that point, I never had a problem speaking.

So when opportunities came up to start submitting talks to conferences, I just said, “Okay, I’m in,” and I did it. With every talk it gets a little bit easier, a little bit smoother. I would be lying if I said I wasn’t nervous before giving some talks, but I have a building testable applications talk that I’ve given almost a dozen times now, I can almost do that one without any slides. Knowing the material and being passionate about it makes it super easy to talk.

Len: That’s a perfect segue. There’s a lot of talk these days about the value of online courses and correspondingly the value of increasingly expensive traditional university degrees. With the 2013 university year about to start here in North America, what would you say to all the university students starting conventional computer science degrees in the next month?

Chris: Well, that’s interesting, because I went to the community college system here in Ontario, so I went to Sheridan College. I went twice. I have diplomas from Sheridan in civil engineering, which was very interesting, and then one in computer science technology. Not degrees but diplomas — I have no idea what the U.S. equivalent would be. When I went to college the internet was there but hadn’t been commercialized yet. I remember surfing the web in text and doing all my email in Pine.

A much different world than there is now, and we did absolutely nothing to do with the web, so everything that I learned about the web was self-taught. But once in a while I think back: if I had gone to university and taken computer science — it just wasn’t in the cards for me for a variety of reasons — what would have been different? There is so much stuff out there that if you’re the type of person that’s self-driven to learn, you can probably fill in a lot of the gaps pretty quickly. But if you’re not, then the collaborative environment of a university will probably help you.

Sometimes I think, did I miss out on learning some fundamentals that would have given me a shortcut to be a better programmer in a shorter period of time? Are there some algorithms and design patterns that I would have learned at university that I didn’t learn because I’m self-taught? Those questions creep in once in a while, but for the most part I’ve been pretty successful in figuring out how to fill in those gaps, either by teaching myself or finding people who are way smarter than me who taught me the things that I needed to know. So I think there is value in a computer science education if you are the type of person that is not self-directed, that needs that collaborative environment, because if you need help you’re never going to learn anything on your own.

Len: It’s a very interesting question, partly because of the particular nature of programming, which involves constant learning all the time.

Chris: I tell people I feel like a shark. I’ve got to keep swimming or I’m going to die — not literally, but in the technology sense, because things happen so quickly. New and useful tools just come up out of nowhere. If you get complacent and pick a favorite set of tools and say, “I never want to do anything else,” you’re setting yourself up for a really bumpy ride.

Len: So if someone’s not self-driven to begin with, it sounds like maybe programming isn’t the way to go.

Chris: It depends on what you want. If you just want a job, I’m pretty sure you can pick up enough at university or even on your own. There are plenty of, not to use it as a derogatory term, workaday programmers. There’s programmers for whom writing code is just a job and they’re in at nine and they’re out at five, and when they’re not at work, they’re not touching a computer for any programming purposes. People have tried to estimate what percentage of people are actually going to conferences and pursuing sharing knowledge and they’ve thrown numbers around like one or two percent. I could see that there’s lots of programmers out there who don’t care about programming as a career, they care about programming as a job, and that’s cool.

For me, computers is the thing I’ve always liked since I was a little kid. My first computer was a VIC-20. I was like eight or nine years old. I’m 42, so I’ve had a computer around for over 30 years. I don’t know anything else other than having a computer around to fool around on. So for me, it’s a very natural thing to do stuff at work and then in the off hours find other things to do on the computer that I find interesting. Sometimes they’re programming, sometimes they’re not.

Len: Just to switch gears, I wanted to ask you about your first book, The Grumpy Programmer’s Guide to Building Testable PHP Applications. What led you to write it, and who’s the intended audience?

Chris: I had been doing presentations on the same topic. I had written a very small self-published book before this one about how to take a legacy PHP application and refactor it to use a specific PHP framework called CakePHP, and I liked that experience. I said, okay, what’s the next level? I want to start doing info products and selling stuff. I’ve been blogging for a long time, so writing is something that I’m pretty comfortable doing and I can crank out the material when I need to.

So I thought, how about I write a book to help me do better presentations on the same topic? I started doing research into the things that people need to know if they want to get their application from this messy, untestable state to one where they can actually start using the tools and frameworks that are available. Once I started putting that together, I’m like, “You know what, I think this actually would be a pretty decent book.” So I can do the book and make some money on the side and help pay for some of my hobbies and keep my wife off my case with the credit card bills. The research for the project led to a large number of notes which made me think I can easily turn this into a book.

Len: And with your second book, I think you were even more successful, and I know you had a really successful launch. Can you tell me a little bit about how you managed that?

Chris: Last summer, after years of procrastinating, I got into a product development course that a friend of mine, Amy Hoy, runs called 30x500. She has been very successful running several bootstrapped businesses. She and her husband have a software as a service app called Freckle that does time tracking, and the two of them have been very successful consultants doing mostly JavaScript and Ruby stuff. She found that she really enjoyed teaching people the things that she did, because she found she could teach people to do almost the same thing that she was doing.

I looked at my experience with my first book and I thought, “This went okay,” but my success was at a low level, and I was convinced that I could really crank it up to the next level. So I went into her course, 30x500, with the idea that 500 customers paying $30 a month is $180,000 a year, which should be enough to run all but the most resource intensive online businesses. When you look at it that way, it sounds like an achievable number. But of course, I wasn’t building a platform or any kind of software thing, because I had a day job and lots of hobbies and there was literally no room to do something like that. But I could carve out time to make something like a screencast or a book.

Her whole thing was basically do your research. Too many people are like, “I have this great idea, what do you think?” It’s more like, “What are the type of problems that people are really having?” Go do some research, find out the things that programmers of your language of choice are complaining about, and then say, “Can I give them something to solve this problem?” The little tripod that Amy’s stuff sits on is you have a pain and a dream and you’re going to offer them a solution. The whole idea is that you don’t want to build something until you know with 100% certainty that people are going to give you money. I followed Amy’s process pretty much to the letter. I started looking around at the people who were getting into the testing stuff for PHP like I was, and the thing I found the most was people were struggling just to use the testing framework. So that’s when I knew, aha, that’s the thing I should do for my next book. And then that thing basically wrote itself.

People have asked me how long I spent. From beginning, including writing the book, doing some edits myself, getting a whole bunch of people to do technical edits, which is incredibly helpful, and setting up the website for the book and the stuff with Leanpub, it took me 100 hours to crank out that book. 100 hours, and I’ve made probably close to $11,000 off of the book, I think. And if I remember the numbers correctly, like $23,000 or $24,000 in the last two years off the two books together, which is awesome.

Len: Were you leveraging any email lists?

Chris: I used the email list from the first Leanpub book to promote the second one, and of course I tweeted incessantly about what I was working on, which for me was really the key strategy to attract people. Even today, where I tweeted about my Leanpub bundle being on sale and you guys very graciously put it on the front page — every time I tweet, it translates into sales, because I took the time to learn how to use Twitter as a marketing tool. People think that developers often have phobias about talking about money and promoting themselves. I have no problems talking about money, and you can definitely learn to promote yourself in a positive way without coming across as a douchebag. Sometimes I get close to that line of promoting a little bit too hard, but I’m right on that edge. The books plus the incessant marketing on Twitter — plus some videos which have sold quite well, plus the recognition that if I do submit to conferences, I get consideration because people know who I am — all those things together have been awesome for my career.

Len: Did you publish either of your books while they were still in progress?

Chris: No, I never did the in progress. I wanted to present it as a finished product, because I felt I would be too tempted to go back and screw around all the time, get too finicky about this paragraph isn’t quite right and I want to redo this chapter. I haven’t decided if I’m going to do another book yet or not, but I could do it as the beta thing. I just worry that I would be spending too much time fiddling with the book and not actually getting it to a state where I was happy pushing it out to people.

Len: Have you gone back at all to republish new versions, like with bug fixes or typos?

Chris: Oh, I fix typos and stuff all the time. I’m very open with that. But I didn’t do an outline and then a couple of chapters and then say, “Hey, you guys, there’s a beta book.” I just wanted to make the whole thing available at once. And I would tell people the benefit of getting a copy through Leanpub is that anytime I make a change, you’re going to be notified, so you can always grab the latest and greatest version of the book — which is something that you don’t get if you go the total self-publish route, because I use e-junkie for my videos, and the feedback loop with your customers to tell them that there’s updates would be a lot more painful than what it’s been with Leanpub. I love the fact that anytime I made a change, I can notify everybody and say, “Hey, so-and-so on Twitter pointed out this problem with this code, I fixed it, thanks so much, you can now grab the updated version of the book.”

Len: I saw that you also have paperback versions on Lulu. Do you update those as well?

Chris: Yes, every time I make a change I push an updated version, which sucks for people that bought copies of it already, but I warn people when you get the paper copy: I do update the ebook versions, but at some point the updates stop. I think now for the second book there’s no more updates. Maybe if some point down the road I want to do a second edition I would be adding new material, but I don’t want to go back and change anything. It just feels kind of weird.

Len: Do you sell your e-books on any platforms other than Leanpub?

Chris: Nope, just Leanpub. I like it that you guys do all the difficult stuff of collecting the money. Having built several e-commerce systems over the years, I know how painful they can be. I found Leanpub was the easiest way for me to concentrate on writing the book, because I wasn’t going to be worried about building the website that goes with the book, worrying about do I have a merchant account set up, is PayPal going to screw me and hold on to my money, and all these other horror stories that you hear about people dealing with PayPal, where PayPal at times appears to be very arbitrary and capricious in holding on to people’s money. I was like, “I don’t want that happening to me at all.” That was a whole thing I didn’t have to worry about.

I’m big on figuring out shortcuts to help you get things done faster, and Leanpub has been the best shortcut for my products, because I can just work on the book and not have to worry about setting up everything else. I only have to worry about marketing messages. Everything else Leanpub does for me, which is awesome.

Len: Well, thank you very much for saying that, because what you’re describing is one of the reasons that Peter and Scott founded Leanpub in the first place, to get people focusing on writing.

Chris: When I was thinking about this before I discovered Leanpub — who I think I discovered through Reg Braithwaite — I was like, “So I’m going to write the book and then I’ve got to figure out how to put together a toolchain to turn the text into PDF and then I’ve got to build a shopping cart. Oh man, do I really want to do all this?” And then when I found Leanpub, I was like, “That’s 75% of the stuff I was worrying about gone, and I could just concentrate on writing the book.”

Len: With respect to selling, how do you decide the price for your books?

Chris: I think of a price that makes me personally uncomfortable and I set it right there. I have found, and this is one of the things that Amy talks about as well, that generally speaking programmers undervalue their time and charge way too little for the things that they’ve produced. It’s not like writing Leanpub books could replace all my income from my day job, because it couldn’t, but if I’m going to charge people money, I don’t want to give it away. Look at my books — the two of them together, even at the bundle, 40 bucks. If you’re a decent programmer, that’s less than an hour of what your time would cost as a freelancer, and you will earn yourself, I don’t think this is hyperbole, tens of thousands of dollars extra by learning to do those things. That’s how I convince people. If you’re so cheap that you can’t spend 40 bucks, then probably nothing I’m going to say to you is going to matter. But if you look at it in terms of here’s the skills I’m going to learn that are going to push my own skills and probably get me a better job, or if I’m a freelancer, make me more money, 40 bucks is nothing. Most people waste 40 bucks on stupid stuff every week anyway.

I want to charge what I think is right for my stuff. And if people complain about the price of my book, well, I have lots of evidence that shows that people are more than happy to give me that amount of money.

Len: Have you experimented with variable pricing at all, where you can change the suggested and minimum prices?

Chris: For the first book I had a minimum and suggested price and about half the people went with the minimum, and for the second book I just said, “No, I’m going to have a hard price.” If I want to offer different pricing I just do promotions and discounts. I believe very strongly that I have a minimum value that I put on the book and I would like to get that minimum.

Len: I can probably guess the answer to my next question, since you’re selling your books on Leanpub, but do you have any particular opinion about digital rights management for books in general?

Chris: I don’t worry about people stealing my stuff and putting it up on BitTorrent or trading copies of my books around, because I’m more interested in getting people to understand the ideas and concepts, and if someone learns it by borrowing a copy of my book from somebody, I don’t have a huge problem with that. If books were my only source of income I might be a little bit more strict about it, but for the most part I can make more than enough money to offset what I believe is the low percentage of unauthorized copies. I don’t put DRM on my books, because I’m willing to trust people to just respect that I’ve put a bunch of work into this book and just don’t give away copies.

I’ve offered people discounts, I’ve offered company-wide licenses and things like that, simply because it’s easier to tell someone, “If you want this thing, okay, I can cut you a deal,” because with digital stuff the cost of making a copy is minimal, it’s pennies worth of bandwidth or server time. I don’t feel like the movie industry or the music industry, who are treating every single downloaded copy as a lost sale when there’s absolutely zero proof that the person was going to buy it anyway. I’m more interested in getting my name out, building my career, and making more and more people aware that there is a better way to build PHP applications that lets you go home from work on time. Because I work from home, and I love being at the end of the day just saying, “Okay, I’m done,” and I don’t have to stay late, because I really work hard to wrap tests around everything and set clear boundaries on when I’m going to work and when I’m not. Testing and automated systems have been one way for me to really enforce that.

Len: I have a couple of Leanpub-specific questions, since you’ve written two of our more successful books. You mentioned that you’re selling some DRM-free videos, the PHP Testing Bootcamp Sessions, on your Grumpy Learning website. Is there anything Leanpub could do to help you with that, or do you prefer to keep your book and video sales separate?

Chris: I am trying to get everything under the one umbrella of Grumpy Learning, because it helps a little bit from the branding point of view. But screencasts and eBooks are two completely different beasts. I think Leanpub does a really good job of promoting to people that if you have a niche technical idea, Leanpub is a great way to validate that idea, because you can start working on something and get money in while you’re building the book out. I’m probably the rarity amongst your authors who doesn’t release the book until it’s done. I get the impression that most people are doing the beta thing, and sometimes when I would get involved in one of these beta book things, you feel like you’re there with the author and you’re helping to shape the book in some way, even if it’s only dropping them a note about a chapter and saying, “Oh, I like this part,” or, “I found this part confusing.” There is really no market for in-progress screencasts.

If there is one thing that would make it — Leanpub does a great job of managing the sales part of things, and if I ever wanted to do a subscription based type thing, where you crank out content and sell subscriptions, having a party that could handle the digital distribution and the collection of money and all the recurring billing — you can do all that stuff yourself with PayPal and other payment processors, but if someone else gives me a shortcut, then I can concentrate on making sure the content gets done. The idea of handling infrastructure for digital delivery and subscriptions, that would be the thing that would make me want to use Leanpub for the screencasts. I’m okay to keep them separate simply because Leanpub is not set up to handle that stuff. But if I got into a subscription-based model, that’s when I would start looking, saying, who has already done the infrastructure.

Len: That’s very interesting, because in-progress publishing corresponds to serial publishing. Novels were often published serially in magazines, which often had subscriptions. So there is a possible fit there, I think.

Chris: It would be interesting, because I’ve thought about doing stuff like email courses. Take a bunch of material, chop it up, then get people to sign up and you drip stuff out to them over time. The thing I never figured out was how do you make money off of that, unless you’re just using it as a marketing thing, where every email is loaded with all your marketing messages, buy my books, buy my videos. The idea of doing serial technical books is an interesting one — a time intensive one, a labor intensive one to be sure — but since I’m big on this stuff, with the right amount of research and the right content it’s probably something I could make money at too.

Len: Is there anything in particular we could do to help you engage with people who’ve already bought your books, beyond the email readers feature you mentioned?

Chris: One of the things that I found interesting was, I know that Leanpub has the unconditional money back guarantee, and I had somebody ask for a refund because he happened to find the GitHub repo that I’d been using for the book. I had it public. So they found it and then said, “Well, I don’t see why I should pay when the author is making the material available for free on GitHub.” And I blew a gasket, because even though it’s a relatively minor amount of money, I didn’t like the fact that somebody got a refund because they happened to figure out where the repo was.

So one of the things I’m finding I’m not getting is feedback that the author gets copied on — a refund has been given and here’s their explanation why, and now I understand. I’m not intending to put the screws to Leanpub and say, “I don’t want you issuing refunds.” I filed it under the same thing as with DRM: an extremely small percentage of people that have bought my book decided they didn’t like it, and that’s okay. I try to make the book targeted to a certain group of people, and if it’s not working for them, you want your money back? No problem. I would rather have people who are interested in what I do giving me money instead of people being resentful that they’ve bought something and there’s no way for them to recoup it. I’ve had people tell me they didn’t like the book for whatever reasons, and I always tell people the same thing: “I appreciate the feedback. If it’s a problem I can fix, I’ll fix it. If it’s just a philosophical thing, well, I’m sorry that the book just wasn’t for you, and you can always go hit up Leanpub for a refund.”

Len: The good news is we actually do have a feedback feature for refunds. When people are requesting their refund, they have an opportunity to leave a comment. We made it light touch so you don’t have to leave one. But if you go to your book’s URL at Leanpub and just put slash refunds, you’ll see a column of comments there.

Chris: What I would have wanted is just an email saying, “Hey, someone just got a refund and here’s their comment.” Again, all about shortcuts. If I can get little shortcuts that pop up reminders and tell me things, then my to-do list every day gets smaller and smaller, because over time I slowly replace manual systems with automated ones that let me know when things have happened. If I always knew that refund comments were going to be sent to my email, I never have to remember, “Oh yeah, I need to go to Leanpub today to check on the refunds.” Systems that notify me always prompt me to better action than systems I have to remember to go see. But just a minor quibble. I will say, and this is not just because I’m on the podcast, I’ve been extremely happy with everything that Leanpub has done for me. I feel like my books couldn’t have been as big a success without Leanpub providing all the infrastructure shortcuts for me. I would have had to do it all myself, and who knows what problems I could have run into.

Len: It’s very validating. Leanpub was and is being built on the customer development model, where you launch something that you know isn’t perfect in order to see if you’re actually addressing problems people have, and then you build the product based on their actual needs rather than some formal vision of what you think the world should be like.

Chris: Shortcuts, people. It’s all about the shortcuts. It’s how I get so much stuff done, because I don’t do everything manually. That’s the secret. Automate everything you can.

And it’s not like I’m looking to pick a fistfight with people who want a refund. I just want to know if you didn’t like it. Okay, that’s cool, I can respect that. I just want to know why, so that I don’t make that second mistake, or if it’s not even a mistake, if it’s just, “I didn’t like it because of reasons X, Y and Z,” and I happen not to agree, well, then now I know that some people don’t like it. I do look from time to time and I am happy that the percentage of people who have requested refunds is really small.

Len: That’s true of your books and it’s actually true of most Leanpub books. The rate of refund requests is very low, which we think is a sign of the quality of our books, but also the fact that if you trust people, they’re often trustworthy. And refunds also serve an important function. Our two-click refund feature is very important, because when you’re a platform for mostly self-published in-progress books, giving people the security that they’re not taking a risk at all, except maybe with a little bit of time, is a really key part of what we’re doing.

Chris: And I feel like Leanpub lets me be a little bit closer to everyone that’s bought my books or wants to know more about the stuff that I’m doing. I feel like there’s not all these layers of middlemen — I wanted to say rent seeker, but that’s probably being mean. I had people telling me stuff like, “Oh, a self-published book isn’t legit.” And I’m like, “Well, I don’t know about you, but I know people who’ve written books for O’Reilly, and I’ve made way more money off of way fewer units than what they got from O’Reilly.” If you’re doing it for notoriety, okay, but wouldn’t you rather make more money with the same amount of effort?

With O’Reilly, you have the publisher and then you have an editor and you have a PR person, and sometimes those are too many layers for people to go through who want to actually just talk to you. It’s interesting when I meet people who’ve bought my book and they get awkward about actually meeting me — “Oh, I had your book and I just felt kind of weird coming up and talking to you” — and I’m like, “Yeah, I get that, but I’m just the person behind all this stuff, behind the book and Twitter and all the other nonsense that I do. I’m still just a person.” A person who happens to have worked very hard at promoting themselves.

At the end of the day, I feel like Leanpub lets me be closer to those people, way less things getting in the way when people want to ask about the book and want to buy it and want to talk to me about things that are in it. A book done through a more traditional tech publisher has more obstacles in the way of actually getting to talk to the person and seeing that your suggestions are being acted upon — which I imagine happens a lot more often for the people doing in-progress books; that early feedback from the early adopters is probably really good. But like I said, I wanted to do the book complete, and I didn’t want to share it until I felt it was at a place of being done. Maybe that’s some sort of insecurity that belies my outrageousness on Twitter, but people are complicated.

Len: Do you have any other feature requests — something that, if you could magically snap your fingers, Leanpub would do?

Chris: I do know one thing that you guys actually did for me way back in the day. Early on, I think it was the first book, I noticed that there was no way to download sales data. I remember asking Peter, “I want to graph how my book’s been doing, to give people a chart over time.” And within a couple of days Leanpub implemented export sales as CSV, so I could take it and put it into a spreadsheet. If there is one thing that I would like, something that I learned out of the product development course, which may be a touchy subject for Leanpub, is the exporting of email addresses. I know you guys have opt-in where they can agree to share their email address with me, and I can see it for every sale. But just from a marketing of future products perspective, and trying to engage people who have bought stuff — and some of it might be outside of Leanpub — the ability to export email addresses of people who’ve bought stuff, if they’ve wanted to share them.

Len: If they’ve opted in.

Chris: If they’ve opted in, clearly. I don’t want to just take everybody’s email address. But if they’ve agreed to share it, it would be immensely helpful, because then I can combine things into a list and focus on making sure that people who are interested in things that I want to talk about are getting that message.

Len: That sounds reasonable to me. If people opt in to show you their email address, we are already showing it to you, and allowing you to export it would just make it more useful. We are, as you know, very protective of things like that, so we’ll discuss internally.

Chris: Also, maybe you can answer this question for me. If I go to my book and I want to send an email to all the readers, is every single person that bought my book getting that email or just the ones that opted in?

Len: Let me check. I just looked it up — they’re automatically opted into new release announcements and author emails sent from Leanpub, but that doesn’t mean you actually see the email addresses of the people that you’re sending to.

Chris: Because I have sent email saying, “Hey, I have this mailing list and I would really appreciate if you sign up for it,” and a large number of people have signed up, but it’s not the same number of people that bought the book. So clearly there are some people reluctant to hand out their email addresses, and that’s cool. It’s just that from the product development perspective, it would be nice to have those email addresses, to put them into a mailing list manager like MailChimp. And to make it 100% clear, I would never, ever, ever in a billion years sell those email lists to anybody, because I hate spam just as much as the next person. I’m just interested in having people who want to hear from me, hear from me. And if you don’t want to hear from me, then please, I don’t want to waste any time sending you a message. That’s about it. I know this sounds like a pro-Leanpub commercial, but I’ve been extremely happy and extremely grateful that I found you guys, because I could just worry about the books and not worry about all the infrastructure.

Len: I’m actually at the end of my questions, but is there anything you’d like to add?

Chris: Anytime that people talk about wanting to do a book, I always recommend that they use Leanpub, just for all those reasons. The infrastructure is taken care of, the tools to convert Markdown to PDF, EPUB and Mobi are awesome. I write the book once, and somebody else takes care of making sure it looks right. Since I’m all about automating and shortcuts, that’s perfect for somebody like me.