The (not so) hidden cost of sharing code between iOS andAndroid

The (not so) hidden cost of sharing code between iOS andAndroid

  • August 15, 2019
Table of Contents

The (not so) hidden cost of sharing code between iOS andAndroid

Until very recently, Dropbox had a technical strategy on mobile of sharing code between iOS and Android via C++. The idea behind this strategy was simple—write the code once in C++ instead of twice in Java and Objective C. We adopted this C++ strategy back in 2013, when our mobile engineering team was relatively small and needed to support a fast growing mobile roadmap.

We needed to find a way to leverage this small team to quickly ship lots of code on both Android and iOS. We have now completely backed off from this strategy in favor of using each platforms’ native languages (primarily Swift and Kotlin, which didn’t exist when we started out). This decision was due to the (not so) hidden cost associated with code sharing.

Here are some of the things we learned as a company on what it costs to effectively share code. And they all stem from the same basic issue: By writing code in a non-standard fashion, we took on overhead that we would have not had to worry about had we stayed with the widely used platform defaults. This overhead ended up being more expensive than just writing the code twice.

Source: dropbox.com

Tags :
Share :
comments powered by Disqus

Related Posts

Mobile phone cancer warning as malignant brain tumours double

Mobile phone cancer warning as malignant brain tumours double

Last night the group said the increasing rate of tumours in the frontal temporal lobe “raises the suspicion that mobile and cordless phone use may be promoting gliomas”. Professor Denis Henshawsaid: “Our findings illustrate the need to look more carefully at, and to try and explain the mechanisms behind, these cancer trends, instead of brushing the causal factors under the carpet and focusing only on cures.” In 2015 the European Commission Scientific Committee on Emerging and Newly Identified Health Risks concluded that, overall, the epidemiologic studies on cell phone radiofrequency electromagnetic radiation exposure do not show an increased risk of brain tumors or of other cancers of the head and neck region.

Read More
Smartphones Are Killing the Planet Faster Than Anyone Expected

Smartphones Are Killing the Planet Faster Than Anyone Expected

A new study from researchers at McMaster University published in the Journal of Cleaner Production analyzed the carbon impact of the whole Information and Communication Industry (ICT) from around 2010-2020, including PCs, laptops, monitors, smartphones, and servers. They found remarkably bad news. Even as the world shifts away from giant tower PCs toward tiny, energy-sipping phones, the overall environmental impact of technology is only getting worse.

Read More