Flying Solo with Android Development
Tags: androiddevelopment, softwaredevelopment, solo
Published: 2017-03-22 19:31:06

---
title: "Flying Solo with Android Development"
published: true
description: Five months ago, I took a leap from small team to no team when I joined a seed-funded startup of six employees as their only Android engineer.
cover_image: http://i.imgur.com/b1ghjEC.png
tags: Android development, software development, solo  
---
My Android career started two-and-a-half years ago, when I transitioned from back-end development to mobile development, along with the support of a four-person Android team. A year later, I joined a series-B startup, where I was one of two Android engineers for most of my time there. Working on small teams was a great way to have independence and also learn from other engineers.

But then, five months ago, I took a leap from small team to no team when I joined a seed-funded startup of six employees as their only Android engineer. In my new role, Iâ€™ve been building the [Winnie] (https://winnie.com/) app from scratch, which just got [released] (winnie.com/android)!

It turns out this was a big leap. Flying solo has been a challenge, but itâ€™s also been extremely rewarding. Iâ€™ve learned along the way that there are pros and cons to working alone. Most importantly, there are things you can do to set yourself up for success. Here are some of the tactics that have helped me thus far.

#<h3> Be connected with the community. Do your homework. </h3>
One of my worries about going solo was not having Android teammates to discuss new ideas with or be a sounding board for their ideas, which Iâ€™ve thoroughly enjoyed in my previous roles.

The good news is that there are tons of resources available online to expand your knowledge and perspectives. From online talks from various conferences such as DroidCon, 360|AnDev, etc to your timely dose from Fragmented Podcast, Android Dialogs and Android Weekly, there are many ways to broaden your thinking.

My personal favorite is [Caster.io] (https://caster.io/)â€Šâ€”â€Šthe code samples with every bite-sized lecture keeps me on my toes! Local meet ups or virtual communities like the AndroidDev subreddit, Google+ communities, Slack groups and Twitter are great places to continue the conversation and ask questions when stuck!

#<h3> Review your own PRâ€™s and maintain high standards. </h3>
I highly encourage opening PRâ€™s and then reviewing them yourself. It will feel silly commenting on your own PRâ€™s, but I think itâ€™s a healthy habit when working by yourself (also discussed in this relevant Android Dialogs episode).

I do a first-pass using the preview feature of Github, and then let it sit for a while before I look at it again. I try my best to review my PRâ€™s as I would review PRâ€™s from a peer, and thus hold myself to the same standards. A second look at all your code also helps catch bugs and edge-cases, as well as keeps your code consistent and clean.

#<h3> A â€œbadâ€ pattern is often better than no clear pattern.</h3>
You will have to make many decisionsâ€Šâ€”â€Šshould you use MVVM, MVP, Flux, and/or another architectural pattern? Fragments or custom ViewGroups? What should have abstractions and what shouldnâ€™t?

Itâ€™s not uncommon to start with one pattern and then realize another pattern is better when youâ€™re at the beginning of a project, which leads to either some refactoring or diverging of patterns.

While it makes sense to break your patterns for certain cases, it is best to be mindful of refactoring and changing it consistently everywhere when youâ€™ve found something you like better. This might sound obvious but itâ€™s easy to just use the new pattern for all the new code when youâ€™re working by yourself, which can quickly result in a confusing and incoherent codebase before you know it! Even if the patterns arenâ€™t great, consistency makes it easier to fix down the line.

#<h3>Strongly consider using Kotlin.</h3>
Especially if you are starting from scratch! If not, consider giving it a shot with the next class youâ€™re going to write.

I didnâ€™t end up using [Kotlin] (https://kotlinlang.org/) because I wasnâ€™t confident about pitching the idea, since I had zero experience with it at the time and didnâ€™t want to discourage the back-end Java developers on the team from contributing to the codebase.

However, after watching Christinaâ€™s [talk] (https://www.youtube.com/watch?v=mDpnc45WwlI) on Kotlin and doing more research, if I were to do it again, Iâ€™d have at least tried it. Kotlin has plenty of advantagesâ€Šâ€”â€Ševen just avoiding crashes because of null pointer exceptions and not dealing with Java boilerplate has me sold! This [talk] (https://realm.io/news/oredev-jake-wharton-kotlin-advancing-android-dev/) by Jake Wharton is also a great starting-point.

#<h3> Try to keep control by not being too reliant on third-party libraries. </h3>
I remember spending a bunch of time trying to decide on a library to use for MVP, as there are many of them. While being spoiled for choice is a great problem to have, I ended up implementing a simple version myself and have been very happy with it!

When choosing what third-party libraries to use, Iâ€™d suggest considering whether you really need it and how it would restrict the development of the app in the futureâ€Šâ€”â€Šdoes it make unit testing harder? Does it restrict using features that Android gives for free, like transition animations between screens? Is it actively under development and do many apps use it? This helped me make informed trade-offs and decisions.

Iâ€™d recommend optimizing for retaining as much control as possible without reinventing the wheel. There is a library out there for pretty much everything, but youâ€™re better off implementing some stuff yourself.

#<h3> Have a testing and accessibility plan. </h3>
If you are building from scratch, it is very exciting that you have a chance to do this right from day one! And if not, you can try doing it right with all the new code you write!

It isnâ€™t uncommon that testing and accessibility take the backseat when trying to hit aggressive deadlinesâ€Šâ€”â€Šand when youâ€™re solo, it can be harder to find time for it since you arenâ€™t sharing the load with anyone else.

I will admit that I am only in the beginning of this journey myself, however I wrote code with testing in mind by using dependency injection, Model View Presenter pattern, exposing only interfaces of my model objects to the UI, and so forth with the goal of making it easier to test. I also had CircleCI build after each commit from the beginning of the project, as a sanity check and to get closer to running tests.

For accessibility, I add content descriptions whenever I can, and use the Accessibility Scanner before a release to figure out what I should focus on next. There is definitely more work to be done, but it is a start. Here is a great [talk] (https://realm.io/news/kelly-shuster-android-is-for-everyone/) by Kelly Schuster on actionable steps that developers can take to make their apps more accessible.

If you arenâ€™t able to spend time on writing tests, then have a manual testing plan handy. For example, write down different test cases (positive, negative) in a document for each feature and make sure to test those before every release! Set deadlines for yourself to start writing tests, and do the same for accessibility improvements, otherwise theyâ€™ll most likely never get done.

#<h3> Tell your iOS designers that they are wrong and look for potential Android converts :-). </h3>
Donâ€™t be afraid to stand up for what is right for your platform! When youâ€™re solo, you are responsible for bringing others up to speed with the latest Android UI patterns, as well as the codebase.

I mostly worked off iOS screenshots but used the material design spec and well-designed Android apps as resources to help me convert those designs to Android. Also, there is nothing better than linking to the official material design documentation to make your point!

Regarding the codebase, I helped bring my CEO up to speed with our architecture and concepts like MVP, Dagger2, RxJava2 and so forth when she helped out for a couple of months. Iâ€™d recommend keeping a lookout for potential Android converts, as explaining your decisions to someone or teaching them a new concept helps you really own it or alternatively, realize your mistake.

#<h3>Go to beta as early as possible.</h3>
This is applicable if you are working on app that hasnâ€™t been launched yet or are making major changes to an existing app. Google play has an alpha and beta channel, and within the beta channel you can either have a closed or open beta.

If you are working on an existing app, you can still have a beta run in parallel, so long as itâ€™s version is higher than the production app. If it is an open-beta, users will be able to opt in on the playstore or by clicking on a link. If you are trying to test out changes of a smaller scale, then staged-rollouts might be better for that.

If you are working on a new app, Iâ€™d suggest having a closed beta as soon as possible, and converting that to an open beta when itâ€™s ready, before the launch. Our first closed beta had very few features, but it helped us iron out bugs early on, get onto a regular release train and receive valuable feedback throughout the process. This also resulted in a stress-free and smooth launch!


Going solo for the first time is a great learning experience as you get to challenge yourself like never before, be more self-reliant, exercise total creative control over the codebase (for better or for worse), learn more about what you like, and deal with making mistakes that you only have yourself to blame (yay). I was nervous about going solo but it turned out to be a fun experience as the above suggestions worked for me. I hope they will be helpful for you too!

Are you considering going solo or want to share your experience? Iâ€™d love to hear from you! Please comment on the post, or feel free to get in touch on Twitter.