Matthias Noback — A Year with Symfony and Publishing on Leanpub

Matthias Noback is a freelance developer, consultant and writer based in Zeist in the Netherlands, a PHP developer since 2002 and a Symfony developer since 2007, and the author of the Leanpub book A Year with Symfony. In this interview, Len Epp talks with him about his career, developing for reusability, how he wrote and launched his book, and his experience using Leanpub.

Len Epp: I’d like to start by asking you to go back a little bit for a brief introduction to your career. How did you get interested in programming in the first place?

Matthias Noback: It was at high school even. I tried some things with HTML and I noticed there were some very nice editors around that time, like Microsoft FrontPage and Dreamweaver. It started with the usual WYSIWYG modifications, and then all of a sudden I had created a web page for my father. He is a photographer, so this was my first non-official assignment. Only later I started looking behind the images and the layout and looked at the code, and as soon as I saw code I wanted to know more about this. I started reading everything I could on the internet, still over a telephone cable at the time, with a modem that said bling-de-ding-de-ding, a great time. I went many times to the local library, and they had a computer, so I would use it to find out more about the internet and how you could put some stuff on it yourself. I was 16, maybe 17.

Len: And did you study programming or web development at all for school?

Matthias: Not at all. That’s something many people don’t know. I studied philosophy. It took me eight years to finish it. All the time I was working on websites and applications. I think I spent just a couple of hours every week to study philosophy, and the rest of my week I was already a freelancer in 2002. But only after a couple of years I noticed that I was repeating myself.

I was living literally in an attic with my uncle near the place where I live now, and I missed the fact that there were other people around me that I could talk to about the technical issues. I started looking for some company that I could work for in a team. That was a company in Amsterdam called Driebit — it’s three bits in English translation. They had quite a nice team of maybe eight people, some front-end developers, some back-end developers, some project managers, and they had some great projects which I love to work on. Even before I started there, I got a book on Symfony 1 by mail and I started reading this, and this was a great revelation for me.

Len: I was going to ask you what led you to start working with the Symfony framework.

Matthias: It was at this time that I had created a CMS system for myself, for my own customers. But this wasn’t a very good system, of course. What could I do with just me as a developer? After reading this book on Symfony, I noticed there were so much more possibilities to create software with just PHP and, well, Symfony of course. I became very excited about this new way of doing things. There were already some good CMS tools and also frameworks, but I think Symfony was even then one of the best.

Len: What was it that distinguished Symfony from the other ones that made it better for you?

Matthias: I have always found the documentation very clear and very friendly. Also, the community has always seemed very warm or welcoming to me. Though I must say I don’t have that much experience with other frameworks. So you may just call it a bias towards this Symfony thing.

Len: And you’ve contributed to the documentation yourself.

Matthias: That’s right. Only later. I worked in Amsterdam at the time and there was a lot of discussion in that company, should they take the step from the first version to the second version and do things differently, because there is almost no way, I think, to force a Symfony 1 application to a Symfony2 application easily.

Len: Can you tell me a little bit more about Symfony2 — what in particular was it meant to address, who is it useful for?

Matthias: Symfony2 is very useful for developers who are looking for a more advanced way to do things while they are developing internet applications, and they should be able to make as many choices as possible. So the builders of the framework have built in very many options for them to choose from.

Len: I’ve read from things you’ve written on your blog, and also in your book, that developing software for reusability is very important for you. Could you explain what this means for you and why it’s so important?

Matthias: I see this happening all the time, especially now that I pay so much attention to it. I see many people who love a framework develop only software for this framework. So, for instance, there are Twitter API clients just for Symfony, or any other thing you could think of. This was especially so for Symfony 1, and now there has been more and more knowledge about how to create packages or reusable parts of software. So I think this is changing right now, but still people have much to learn about this. Many things are too specific for just one framework. And I always encourage people to share their work. So if they make it reusable from the beginning, this will be much easier.

Len: When did you first get the idea to write your Leanpub book, A Year with Symfony?

Matthias: I think in April this year. I don’t know what I thought exactly at the time and if I could ever finish this. It seemed like a very big task, though when I think back of this, I had a blog already, more than 50 articles on it. So I was a bit encouraged by this idea that if I could write all this stuff and put it online, I could surely write it and keep it offline for a while and then later release it to the public.

Len: In your book you say that Symfony encouraged you to do things right. Can you tell me what you mean by that?

Matthias: That’s an interesting question. This is one of the facts I wrote recently on my blog, in an article called Why Symfony? Seven Facts. And this is also always controversial, of course, because facts, well, they are just strong opinions. But the seventh one is the most interesting, I think, because I’ve noticed around me that people who start using Symfony are becoming better developers right away. They take a look at the code from the framework written by very good programmers around the world, and many times they will feel inspired by this and they will try to, in the first place, replicate this coding style and then write their own code in the same way.

Len: So since you just got the idea in April, how long did the book take you to write?

Matthias: I was already finished in July, and then I had a holiday and some time to think about the book. Is this the way I wanted to become known to many people? My conclusion was yes, this is ready. And I had, I think, four or five people who had read the book already, or partly, and their comments were not very substantial. They were good comments. So the book has become better in those few weeks. But no big reasons to postpone release.

Len: So one of the reasons I gather you could do it in that period of time was that you’d actually been writing about it already for a long time and already had an audience of people for your blog.

Matthias: Yeah, those are important things. The writing experience. If I had tried this two years ago, it would have taken me much longer and some good native English writers or speakers to correct me on many things.

Len: Who is the intended audience for the book, like your ideal reader that you were keeping in mind when you were writing it?

Matthias: That’s interesting. I sometimes thought of a new colleague or a fellow developer who would become a member of my team, and I would explain to him some things, and then another developer would come and I wouldn’t want to tell him everything in person again, so I would like him to read the book — and then it would give me a lot of free time. This has been a good idea, I think, because my idea from the beginning was there is a lot on Symfony on the web. There is a good documentation. It’s called The Book. So that was already a problem for me. How could there be another book on Symfony? But this documentation contains only the facts and no suggestions on how you could create your project, no best practices, even some very bad practices on this site, especially when it comes to security of web applications.

Len: I have a very specific question that is actually very important for successfully launching and spreading word about an e-book, which is who made your amazing cover? It’s fantastic.

Matthias: It is a picture I bought from a stock photo website. That would have been awesome if I had such a mosaic in my garden or something like that. But no, so just the image and then some overlay. But it looks very good if I may say so.

Len: It does. One of the things that’s very important for selling e-books is that the font you chose is very clear in a number of different sizes, including small ones. That’s something a lot of people making book covers don’t take into account — people are often going to see a thumbnail, and your title stays clear at different levels of zoom.

Matthias: It was more intuition than really a designer’s knowledge or something like that.

Len: You launched your book in a really interesting way. Can you explain what you did?

Matthias: I thought of this just a couple of weeks before I would release this book, and I thought it would be great to really release the book real time, with an audience in the room. This is possible with Leanpub, of course. There is a button I would have pushed myself, and when you push it it says “publish your book”, and you see all the build steps being taken, with the real book as a result being published online. After that, immediately people can start buying the book. This is what happened actually two weeks ago. I had a presentation at the local user group of Symfony2 users. I put the page on screen and also the publish button. I clicked it there and people were waiting to look at the screen.

Len: That’s amazing. So they were seeing the build process live.

Matthias: It took only a couple of minutes. If it would have been longer this would have been quite boring, but people were actually very excited while they saw the progress, and they even saw the message sending mails to interested readers. Many of the people in the room were interested readers, and they were even subscribing at that same moment. It was a great time that night.

Len: Can you tell me how you found out about Leanpub in the first place and why you chose us for your publishing platform?

Matthias: One big example for me was Chris Hartjes. He has published with Leanpub two books on PHP unit testing. I didn’t actually read the books, but I saw he was very good at this and he is very good at marketing and promoting his own brand, which is the Grumpy Programmer. He does this very well. And I thought, well, maybe I can do this too. I have something to say about Symfony and I feel very passionate about this. So this was a good moment to start. I also mentioned this to him and he was very happy about this.

Len: How would you describe your experience using Leanpub from when you got started to when you published?

Matthias: It was a very clean experience. I wanted to write a book but not have much trouble with layout things. So I was very happy that the whole infrastructure was there — the Dropbox folder and the build process, whenever I wanted I could have a preview of my book. Also Markdown, the format of the manuscript, is a very good format. It has many good options, but not too many. So you have to choose the right options and automatically be consistent in your writing. And now that it has been launched, I have also no trouble at all to see people buy the book, see who bought it, which discount.

Len: So is engaging directly with people who’ve bought your book important to you?

Matthias: Yeah, very much. I have reserved last week a couple of days just to spend some time with these people, sending messages, listening to what they said, making small corrections to the original text. The way it works is already very good — the discussions, the way people can reach me by sending an email.

This was one of my main goals with this book. To mention Chris again, one of the problems always is determining a price for your product, and he said that he would think of something that made himself feeling uncomfortable. So a bit too high, really, and that would be a good price. Well, I thought, no, not for this first book. So I chose the average price that was suggested to me by the Leanpub calculations itself — around twenty dollars or something, or maybe fifteen.

Len: So was this from people who’d gone to your page before you published the book and had entered a price they would be willing to pay?

Matthias: That’s right. About five hundred people. So I thought that would be quite representative for the price they would really want to pay. Some people were very generous at that time — they said thirty, forty, fifty dollars. But most people around twenty dollars. And I thought that’s a friendly price. Also, my main goal was to reach as many people as possible at this time. So I chose not too high a price.

Len: So you’ve chosen $25, I see.

Matthias: Yeah, but in the beginning this was 15, so if you were an interested reader and you had given your email address, I gave all these people a discount code.

Len: And you’ve also chosen to have the minimum price and the suggested price be the same. Is there a reason for that?

Matthias: Not really, I think. I think it’s good to have one fixed price, and I have noticed not many people would want to go higher with the price.

Len: And I see that already, even though you just launched recently, you already have four translations on the go.

Matthias: Yeah, that’s amazing. As soon as maybe an hour after the official release, there was already someone saying, “may I translate this book” — to Portuguese, German, Polish, Spanish. The Spanish translator already wanted to translate before the book was published, so he trusted me that much. Very nice.

Len: And what is your plan for splitting royalties with your translators?

Matthias: This will be 25% for them. And I know this is kind of generous, but I see that this takes a lot of effort for them and I’m not sure if it will pay back. So I think this is a good middle way.

Len: Some people actually do 50%. I just ask these questions because when an author is doing price, especially the first time, it’s hard to know whether what one is doing is unusual or right down the middle, so sharing this kind of information is very useful.

Matthias: It is difficult in many ways, but I have looked very much at other Leanpub authors, people writing books, and what they do with the price.

Len: Is there anything, even if it’s very minor, that we could improve?

Matthias: Not really big things. Some things that come to mind when it’s about formatting the text — I would like to have more freedom to choose my own font, maybe. But overall it’s a very clean way of doing things. Very fast.

There are some convenience tools. There is a feature where you can create a sample of your book, and the assumption here is that you can take some chapters and provide them as a sample to potential readers. I chose to not give entire chapters away, but only parts of chapters. So I devised my own system for extracting parts of every chapter.

Len: Oh, I see. So you’ve got to maintain two different files then — if you update the complete primary copy, you would have to update separately the sample partial.

Matthias: But I had created a tool for this. I would have comments in the original files saying this is the beginning of a sample, this is the end of a sample. And then it would take from all the different chapters the sample parts and put them in one file. So this removes the duplication.

Len: And if you had any advice to give to any other developers out there who are thinking of writing a book, what would it be?

Matthias: My advice would be to just start and try this. Within 10 minutes I was already writing this book. I had some ideas and I did a small brainstorm in a text file. Maybe it was 200 lines after that. And from that I started to split this in real chapters. Take your time, maybe one hour a day to write a book. It is easy because of the infrastructure that Leanpub provides, and it is very much appreciated, anything like this. Developers really like to read about each other’s ideas.

Len: I guess my last question is that at the end of A Year with Symfony, you say that if you were ever to write a book again, it would be about PHP package design. What are the chances you’re going to do that?

Matthias: 100%. I’ve already created a new book on the site, on leanpub.com. And I’ve already started writing on it.

Len: Oh, excellent. Well, good luck with that. And if you ever have any questions or feature requests or run into any blockers, please get in touch with us directly.

Matthias: I will.