The Case for Kotlin: Risk-Free, Cross-Platform, Future-Friendly… and Ready to Work – Right Now

The Case for Kotlin: Risk-Free, Cross-Platform, Future-Friendly… and Ready to Work – Right Now

It’s madness, really.

An app is written for the Web.

Then, it’s written for Android.

Same app, different code.

Oh, and it needs be written for iOS, too. At the same time.

Again, different code. The question is, “Why?”

Development teams are essentially tripling their coding and testing efforts to ensure cross-platform coverage. It’s costly. It’s time-consuming. And – this might be the craziest part – it’s uncertain what the shelf life of the code will be. As we know, the future is unwritten.

As always, the goal is to be able to implement products more efficiently, and with better testing across platforms. And up to now, every cross-platform coding solution that has come along really hasn’t worked that well.

The good news is that there is now a better way. And a proven way.

We at Touchlab have been writing code in Kotlin and deploying it to Android and iOS platforms, with no hiccups.

That’s why we’ve gone all-in with Kotlin.

Kotlin is a true multiplatform language

Kotlin enables you to write once, and test once. No siloed development teams. The same code can be used across Android, iOS and Web apps with no changes, eliminating the need for a translation layer. In essence, you’re reducing the amount of business logic coded by frontend developers by consolidating it efficiently with native code, but not oversimplifying abstractions.

What’s not to love about that?

No wonder there’s a groundswell of enthusiastic support in developer communities around the world. There are 1.5 million developers currently using Kotlin, with 96,000 GitHub repositories containing 100 million lines of code. And the numbers keep growing. It’s one of the top two languages that developers are hungry to learn.

Kotlin was developed as a completely new language eight years ago, built from the ground up as a pragmatic approach to coding – a way to develop cleanly, clearly, and quickly. Simply put, Kotlin is more readable, reusable, interoperable, and safer, offering a first-rate developer experience.

Kotlin is your best bet on your complete tech stack

More important, it’s a low-risk way to code because it dovetails seamlessly with the native platforms on Java, iOS, and the web. It’s a modern language that enables you to build on what you’ve already coded, without re-working or re-inventing what you already have. Plus, because the code you share is optional, you can start small and increment as desired.

Kotlin is really an extension of Java, so it’s not a big leap for Java developers to start using Kotlin at all.  In other words, you don’t have to make a big, potentially expensive decision to get started.

In fact, on Android, Kotlin was built for direct JVM interoperability. On iOS, Kotlin is ready for prime time, and the first half of 2019 will see rapid mainstream adoption. And Google officially recommends Kotlin as a language of choice.

The big considerations for any development team are cost, time, resources, and risk. And the big problem with the siloed approach is that organizations are often tripling them.

At the same time, the wrong teams are working on the wrong projects. Back-end developers should focus on architecture as well as APIs – but not UI. Enabling your back-end developers to code and test the client and server features as a unified whole enables more rapid development with safer, higher quality and identical implementation. 

Our experience with Kotlin so far?

No siloed teams. More streamlined workflows. Real cross-platform functionality.

Yes, it’s working now!

Touchlab Partner Jeff Namnum @ Tech Inclusion NYC 2018

Touchlab Partner Jeff Namnum @ Tech Inclusion NYC 2018

Last week, Google’s third annual Tech Inclusion conference in New York brought folks who are leading efforts to build the innovate technologies and cultures of our future together with those who care to discuss solutions to diversity and inclusion in the tech industry.

One seldomly discussed form of diversity and inclusion is mobile development. Often, organizations will develop an app for iOS first, Android second. This exclusionary development process has implications for diversity and inclusion in tech because it omits certain users initially. Touchlab is an early pioneer in multiplatform development, which enables engineers to build iOS and Android apps at the same time. This is more efficient and inclusive as it allows for organizations to release iOS and Android apps simultaneously.

Jeff brought this unique perspective to “The Future of Products, Ethics, Inclusion, and Innovation” panel, in which four panelists explored what it means to create new, more inclusive products for a diverse global audience and how crucial that effort will be for the future of the tech industry.

From Left: Jeff Namnum, Annie Jean-Baptiste, Netta Jenkins, Gary Johnson, and Matthew Ström

 

5 TAKEAWAYS

  1. Multi-platform is a form of inclusion: “[At Touchlab] we firmly believe that if you’re making digital products, your defaults are your ethics. Your default settings show your ethics more than your statements do.”

JEFFREY NAMNUM (@NAMNUM)

PARTNER, TOUCHLAB

 

  1. It’s not just the sob story or the right thing to do…there’s a business case for inclusion:You’re leaving untapped opportunity on the table if you’re not thinking about the multitude of users that have a diversity of perspectives. You need to make sure you are constantly getting feedback information from different types of people in all phases of the process. And you need to make sure you have a wholistic, more accurate perspective of who your [target] user is.”

ANNIE JEAN BAPTISTE (@@Its_Me_AJB)

GLOBAL PRODUCT INCLUSION EVANGELIST, GOOGLE

 

  1. Ongoing efforts are required: “It starts with the product ideation sessions—[there] has to be partnering with external organizations as well and bringing them in to test the products as opposed to just relying on [your] employee base and that’s it.”

NETTA JENKINS (@NETTAJENKINS)

DIRECTOR AND HEAD OF DIVERSITY AND INCLUSION, IAC APPLICATIONS

 

  1. Employees need to understand what inclusive digital practices look like: “Being really cognizant of the training and the lexicon of how to approach these conversations is important before we even get to product development.”

GARY JOHNSON (@GARY_J5)

DIRECTOR OF STRATEGY & OPERATIONS, NYC MAYOR’S OFFICE OF THE CTO

 

  1. Your organization’s problems are your products problems and your product’s problems are your organization’s: “If you don’t value inclusion, representation, diversity, and ethics, then your products are going to reflect that. Taking a mindset of inclusion with your products will make the product better for everybody who uses it, not just for the people who are directly benefitting from accessibility work.”

MATTHEW STRÖM (@ILIKESCIENCE)

DESIGN DIRECTOR, THE WALL STREET JOURNAL

Pizza Hut: Innovating on Mobile Ordering

Pizza Hut: Innovating on Mobile Ordering

For the second March Madness in a row, Touchlab partnered with creative agency droga5 to remind America how easy it is to order from Pizza Hut. We were the mobile innovation partner on a very fun build with great partners. In year one, 64 pairs of these Bluetooth-enabled high-top sneakers were created by Dominic Chambrone, AKA “The Shoe Surgeon.”  Based on the great success of the first edition, year two will see the first opportunity for the public to purchase these revolutionary kicks, this time in limited edition “marinara sauce” Red and “pizza crust” Wheat.

 

Client Challenge

Pizza Hut needed a mobile innovation partner capable of meeting strict March Madness deadlines and with enough experience to introduce a radical form of mobile ordering.

Touchlab’s Solution

Pie Topps with the appThe Pie Tops app, completely separate from the brand’s main app, integrates the Bluetooth tech embedded in the shoes and allows consumers to order their favorite pizzas to their current location.

Our Doppl code sharing platform gave us the speed boost we needed to build two native apps (Android & iOS) in the almost impossible time of 3 weeks in year one. Close collaboration with the creatives & producers at droga5 and the mobile development leadership at Pizza Hut & Yum helped us accomplish quite a bit in a short period of time.

We were pleasantly surprised to hear that Touchlab was launching their cross-platform development tool, which builds both versions in approximately the same time as developing just the Android version. We knew this was the way to go.” —Grace Wang, droga5

In year two we expanded functionality, added deeper integration with the brand’s APIs, deployed to the Google Play Store & Apple App Store, and encountered all the normal unexpected surprises that come with every software build. Thanks to great relationships with great partners and a strict adherence to our DRY mobile innovation methodology we delivered on-time and on-budget. Post-release iteration  and support is greatly simplified because of the Doppl-based standardization of the code and architecture.

 

Outcome

Delivered native Android and iOS apps on-time and on-budget using our Doppl code-sharing tech. Our DRY mobile innovation methodology improved collaboration among many teams helping to produce an innovative product that yielded great results for our client and partners.

 

Final Thoughts

Innovative solutions are easier to produce through great collaborations. Pizza Hut partnered with the great minds at droga5, who in turn sought out the talented Shoe Surgeon and were kind enough to bring us into the mix on the mobile side. We’re quite proud of what we’ve all produced together and of what our team’s inventions and processes brought to the table.

It was very collaborative working with the Touchlab team. We were able to talk through user scenarios and come up with the best solution for all of the unknowns. It was reassuring to know we were working with such experienced developers. If any bugs came up, we were able to quickly resolve the issue.” —Tasha Cronin, droga5

 

Related Links And Videos

 

You can probably skip this section

Finally, of course, since you read all the way to the end you deserve a reward. So here are two, very innovative, incredibly professional, and almost offensively punny, shoe jokes.

 

  • I bought shoes from a drug dealer, I don’t know what he laced them with but I’ve been tripping all day.
  • If a crocodile makes shoes, what does a banana make? Slippers.
Jane Goodall Institute: Mobile Innovation for Tracking Deforestation

Jane Goodall Institute: Mobile Innovation for Tracking Deforestation

When the Jane Goodall Institute approached us to build their first mobile app, Forest Watcher, we were more than excited. We had the opportunity to build something with a lasting impact on communities suffering from deforestation and non-profits battling to make a difference. Forest Watcher is the brainchild of The Jane Goodall Institute (in partnership with Global Forest Watch (GFW), some great folks at the Google maps team, and Touchlab and was funded by the World Resources Institute (WRI).

Touchlab partnered with these organizations to put Global Forest Watch data into the hands of local African decision-makers by harnessing their capacity to monitor forests using mobile technology and creating a model that can be replicated across the globe.

 

Client Challenge

The goal of the mobile solution was to improve forest conservation on the ground by enabling local stakeholders with limited and occasional internet connectivity to use and contribute data to the Global Forest Watch platform using mobile and cloud technologies.

Tracking and preventing deforestation is a complex logistics problem that was normally managed with inefficient manual paper data entry. The network connectivity for a potential mobile solution in Africa and digital literacy was also low. The local government needed to control how deforestation data was shared and played a critical factor in the development of the mobile solution. 

Touchlab’s Solution

We understood that Forest Watch was the organizations’ first mobile product and that user features needed be defined. Through design thinking exercises, user surveys and workshops with clients, we defined the features that would deliver the most value to users.

The Forest Watcher App serves as a real-time tracker for forest rangers, local community members, farmland owners, and other affected parties. Forest Watcher users can download offline maps over wifi, and use the app to find GFW alerts, mark areas with signs of tree removal, and upload field data such as photos. With crowdsourcing, more frequent reporting, and accurate documentation, local decision makers and conservationists can collect evidence, track damages, and perhaps prevent further loss by visiting deforestation hotspots.

See below: Lilian Pintea presenting the Forest Watcher App at Geo For Good 2015

Outcome

After countless months of testing in the field, the beta version of Forest Watcher has launched in Uganda to promising reviews and feedback.

  • “Around 90% of users are able to use the beta and the alerts generated to guide their activities.” – Lillian Pintea (client stakeholder)
  • “Because of the alerts I know where illegality is occurring and also make follow ups.” – Actual user feedback
  • “It will make my work EASY, get proper information from forests without having to move randomly.” – Actual user feedback

The beta and product we developed was expanded upon by the Global Forest Watcher team and our initial product was eventually also developed for iOS. You can view the current iteration of the product here.