Mobile development is tough. Anyone who has created an app, especially natively, will tell you that. While the tools and SDK’s have improved dramatically over the years, the fundamentals have stayed the same. What is it that makes it so tricky, and why does the lay person assume it’s so easy?
The start of the difficulties is the inconsistent nature of mobile devices. I’m not talking about specs and screen sizes in this case, I’m talking about where you are and what you’re doing. The beauty of programming for these devices is that they provide all kinds of sensors and measurements, as well as a variety of network connectivity methods for use in your apps. Unfortunately you have no way of knowing what the state of these sensors or data connections will be when a user fires up your app so additional logic must be added to handle a large number of scenarios. Data connections are transient and prone to failure. If your app relies entirely on a network connection, you’ll have a lot of mitigation to deal with that you wouldn’t normally have with a web application or desktop app.
And that’s just the tip of the iceberg. Apps can be shoved into the background at will. Limited storage space can dump your cache. Memory will fill up and leave no room for your software to run. Batteries dies, and so forth. Where desktops are sitting comfortably, plugged in to infinite power and a reliable internet connection, mobile phones are free wheeling through space, leaching sips of data and GPS when able while gradually marching toward battery death. It’s a hostile environment for software.
Then there is the issue of app design and layout across a number of screen sizes and orientations. In Androids case, the number of screen sizes is in the hundreds. When you’re constructing your user interface, great care must be taken to make sure your app works properly on all of your target devices. Tons of time consuming bugs will pop up during this process.
Along the same lines is operating system and SDK version fragmentation. As new and better versions of iOS and Android are released, your application faces greater challenges for supporting both new and old versions of the system. Things that work great in one version may work terribly in another, or not at all. Depending on your audience requirements, it can take significant effort to account for the differences. Android is extremely fragmented in both hardware and software versions. There are currently over 11,000 distinct Android devices out there and the OS mix is the most fragmented it has ever been.
The last point i’ll make about why it’s so difficult (and there are many others) is the relatively low level programming that goes into mobile software. Sure the ever improving SDK’s abstract away the majority of the real hard stuff, but they also strive to give the developer flexibility and freedom. The price you pay for that freedom is that you’re responsible for more of the work when it comes to using things like touch and swipe gestures, radio and accelerometer data, camera and video hardware, etc. Even the management and transition between screens when data is involved is non trivial. And almost every mobile app needs to be multi-threaded which adds even greater complexity. Everything that needs to be created for your application takes much more time than it does when building desktop or web applications. This is why many have sought a quick fix by attempting to build mobile apps using HTML and JavaScript, or using tools like Appcelerator.
Why then, in light of all of that, does the lay person assume mobile apps are easy to make? Because some shops have done it so well. Great mobile apps look effortless. You hardly even think about how you’re using them when they’re done at the highest level. They’re like an extension of you. This leads people to believe that every app should be that way, or at least their app that they hired a developer for should be. And they’re right. But when that person references a feature that they want in their app which should replicate Twitter, or Paper, or Instagram, remind them that those companies didn’t build their mobile applications on a $5,000 budget.
This story, "Mobile development is tougher than people think" was originally published by ITworld.