Antonio Leiva — Kotlin, Android, and Writing in Two Languages

Antonio Leiva is an Android engineer at Plex and the author of two Leanpub books: Kotlin for Android Developers and a Spanish-language book of tips for becoming an expert developer. In this interview with Len Epp, he talks about his path into development, the tech scene in Spain, writing in English and Spanish, and his experience publishing on Leanpub.

Len Epp: Antonio, I usually like to start these interviews by asking people for their origin story. How did you first become interested in being a developer, and what was your first job like?

Antonio Leiva: When I finished high school, I didn’t really know what to study. I felt slightly attracted by computer science, so I finally ended up studying the degree. At that moment I really didn’t feel any passion about programming, so when I finished my degree I started working in the first place with relative good conditions I could find. And started working in CRM consulting. We customize and install Microsoft Dynamics CRM for other companies and spend more or less four years there. So that’s the way I started.

Len: So you started in CRM. How did you end up becoming interested in Android?

Antonio: That was quite related to finding my real passion, because in my previous work I felt a little bit frustrated, because I felt that this was not the kind of job I wanted to do. So at that point I started trying other things and can’t remember exactly why but I decided to start learning about creating Android apps and writing a blog about it, to help others doing the same I was doing. This was like five years ago and I love it since the first moment because it was so easy to see a nice result from your work. It was totally the opposite I had been doing before. And so I decided I wanted to do things that final users could enjoy and not stuff that would be hidden inside the company I was working for. That’s how my Android passion started.

Len: I haven’t interviewed anyone from Spain before. What is the tech scene like in Madrid and in Spain more generally?

Antonio: Some years ago when I started working it was rather unpromising. Most developers had to work in consulting companies that only worried about sales and no code quality, so developers were not important in those companies. Developers couldn’t have a career and had to convert to salesman at some point, and if you just wanted to be a developer the salaries were rather bad, so lots of people moved to other countries. I know a lot of friends that moved to London, Berlin or San Francisco for instance.

But nowadays things are quite different, because there are many small tech companies and startups that now understand the value of quality code. Nowadays it’s much easier to find a company where developers can grow and so salaries are a bit higher. A bit far from other close countries yet, but it keeps improving. In general now developers can develop their passion in amazing companies without having to emigrate to other countries, so it’s quite better than some years ago.

Len: You are yourself a great example of a Leanpub author who writes in more than one language, as you have written one book in English and another in Spanish. I assume there are a lot more resources for developers on the internet written in English than there are in Spanish, like Stack Overflow for example. Are there a lot of Spanish resources for developers online, and do you think learning to read English is something that all developers around the world have to do these days?

Antonio: Well, there are some resources, mainly blogs in Spanish, but the amount of content is not enough to develop your career properly. So I think that reading English is a need for a Spanish developer and probably any country developer, because there are lots more of information and more advanced information. So writing in English is a need too if you want to improve your personal branding. Maybe it’s our fault because we tend to think that articles in English are better quality than in Spanish, and in fact most Spanish developers just write blogs in English.

Len: You’re currently an Android engineer at a company called Plex. Could you explain a little bit about what Plex does and what you do there?

Antonio: Yeah, Plex is a software company that gives you instant access to your media collections like home videos, photos, music, TV shows and movies, so you can quickly find and stream what you want in any device anytime. And I’m part of the Android team where we developed all related Android apps. Tablet, Android TV, Fire TV and any other crazy projects or ideas that we think could be useful for an Android device we at least try it to see if it deserves an app.

Len: Who is your intended audience for your book, Kotlin for Android Developers, and why did you choose to write that book?

Antonio: My audience is any Android developer who’s fed up with Java and wants to try a new great language. The reason is basically the same why I decided to start writing blogs, because I was learning the language myself and thought it would be great if I could write a book too, to help others learn it. Honestly I didn’t think much about it. I just wrote a small introduction and published the book at five percent more or less and got like a hundred sales in a few days, so at that point there was no turning back. I had to write it because I had a lot of people waiting for it.

Len: Your book has nearly 900 readers and perhaps now even more, which is really good for a book on a subject like this. Did you do anything special to attract so many readers, or did the ball just get rolling?

Antonio: I probably answered it was all luck, but trying to develop it a little more, the key probably is to write on something that nobody wrote before, and my book is the only finished book about Kotlin right now. If you want to buy a finished book at least, you need to buy mine, there’s no other one.

Len: This is a very high level question, but what do you think the future of Android looks like in the next couple of years?

Antonio: I’m very bad as future predictor, but Android has been taking the lead in mobile operating system for latest years and we can think it will just keep growing. I’m not so sure about the rest of Android variations such as Android Wear, Android TV, Android Auto which are having very slow progress, but as I said I’m not very good to predict the future. I also thought that tablets would never succeed, and you can see here we are. In any case technology evolves so fast that we developers must be ready to technology changes in our careers. Let’s hope that Android takes long.

Len: Your second Leanpub book is about tips to become an expert developer. What are your top three tips for a developer?

Antonio: Firstly, regarding this book, I wrote it to give it as a present to people who joined the mailing list of a new blog I am writing in Spanish, and I decided to sell it to everyone else who wanted to write. That’s why I published in Leanpub. My three tips would be, first one, specialization probably. We need to know a little bit about everything but a lot about something, because otherwise we’ll have to compete by price with the rest of people. We have to choose whether we want to be chosen because we know a lot about something or because we are the cheapest ones. So I think that specialization is one key point.

Another one, personal branding. It’s helped me a lot during these years, like blogs, events, now the book and this kind of things. And my third tip will be taking your profession as a passion. A developer who just works eight hours in their work and do nothing in their free time won’t probably succeed. You have to enjoy what you do so much that you want to spend part of your free time on it.

Len: I’m sure a lot of people listening can really identify with that. A couple of Leanpub questions. You could have chosen many platforms to publish with. What was it about Leanpub that drew you to us?

Antonio: I knew Leanpub because I had read some books before from that platform and I like the idea of Lean Publishing. And then also discovered that you could write a book just knowing Markdown and that the royalties for the publishers are much better than in other platforms. So it’s a platform that helps a lot in all the publishing processes and Leanpub takes care of all the hard work and we writers just need to focus in writing the book and forget about all the things we really don’t care and that don’t matter.

Len: One thing I noticed about your Kotlin book was that you have put your email address in a section near the front asking readers to contact you if they find any typos or have any suggestions. Have readers emailed you with corrections, and has the feedback had an impact on your book?

Antonio: Yeah, that was another thing why I like the idea of publishing at Leanpub, because readers’ feedback can help you improve the quality of your book. In my case, I even had a reader who sent me typos reports or things that were not so clear during all my process writing the book, every time I release new content. So that was really helpful to improve the quality of the book.

Len: Were there any big surprises in the process of publishing the book?

Antonio: Well, I was surprised that I could sell so many books before it was finished, for instance. That’s very helpful to get the strength you need to write a book because it’s a hard task, and that people really trust you because you only have 5% of the book written like it was my case. So people are trusting you in the way that they think you are finishing your job and so you can’t betray that. You create an obligation to write it and that helps a lot in the writing process.

Len: If you could ask us to create one feature that would help you as an author or fix one problem, what would that be?

Antonio: Well in fact it works really well, I didn’t miss almost anything during my process. The only maybe there’s the support for Kotlin language that would be great, because I couldn’t format the code, but I know that’s a very specific need so I understand that it won’t help many other writers. But apart from that, I think the tool is great for publishing books.