Targeting multiple platforms

By: Frederic Harper, February 19, 2013

Creative Commons: http://j.mp/WMvpnz

Creative Commons: http://j.mp/WMvpnz

I hear you, it’s not always easy to create an application on many platforms. You want to build an iOS app, use Objective-C. You want to build a Windows Phone app, use C#. You want to build an Android app, use Java. It’s not an easy process, but there are tools, and ways of doing this that may save you some time.

Think Cloud

Since you want to target multiple platforms, as you know, you’ll have to code with the specific languages, and even tools for each platform. One of the first thing I would suggest is to think about the cloud. Why think about cloud computing? Because you want to limit to a minimum what will be specific to each platform. There is a way for you to put more logic in a common place, and have your application call a service to get, set or create data. The most stuff you can put outside of your application, the less things you have to recreate for each OS.

MVVM

Architecture is key when it comes to code reuse. As an example, if you want to build a Windows 8, and a Windows Phone 8 application, even if they used the same technology, the core is not the same. In that case, a suggestion would be to use the MVVM pattern to maximize the code reuse between the two platforms. In that case, C#, and XAML would be the technology of choice since it’s available on the two OS. For more information on the topic, you can read Alnur Ismail post.

HTML5 for native apps

There are also tools like PhoneGap that can help you build with HTML5, CSS3, and JavaScript to target multiple platforms. At the end, you will get kind of native application on each platform the tool supports. I have to say that I didn’t have the chance to use it yet, but I heard a lot of great things about it. It gives you the opportunity to access features on devices you wouldn’t be able to access with a Web application yet. The only downside of these tools is that you will give the same UI/UX experience on all platforms, so no environment that the user already know (think about all iPhone app, users are expecting a certain behavior, and UI).

Web

Last but not least, there is always the Web path. If you don’t need a native application to do what you need to do, or access any specific features of the devices, the Web is one solution. Of course, many people will tell you that they want their native apps, but in some cases, the Web application is more than enough.

Tagged with: , , , , , , , , , , , , , ,
Posted in Geek Speak

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Avatar of Frederic Harper

Frederic Harper

What people are saying about #webnotwar

.@trishgarner thanks! How can one thing be so awesome and stupid at the same time? Lol #OGT14 #webnotwar

It's official. I've bought my new bike for the Open Government Tour! I pick it up next week :-) 3.bp.blogspot.com/-LiV9zIcK4wk/U… #OGT14 #webnotwar

The Genesis of the Open Government Tour: webnotwar.ca/genesis-open-g… - An introspective look at how @richardpietro is making #webnotwar Retweeted by Make Web Not War

The Genesis of the Open Government Tour: webnotwar.ca/genesis-open-g… - An introspective look at how @richardpietro is making #webnotwar

I submitted my @GTEC speaker application yesterday and in the spirit of being Open, here it is myeinsteinjob.blogspot.ca/2014/04/my-gte… #OGT14 #WebNotWar Retweeted by GTEC

I submitted my @GTEC speaker application yesterday and in the spirit of being Open, here it is myeinsteinjob.blogspot.ca/2014/04/my-gte… #OGT14 #WebNotWar

As part of #OGT14, I will be hosting 2-3 "practice events" in June in Southwestern Ontario...here is why: youtube.com/watch?v=OT4y2N… #webnotwar

The Open Government Tour has one more City Champion! @thefaketree through @RRPSNBSPRN will help in Moncton (and NB)! #OGT14 #WebNotWar Retweeted by Susan Holt

Here's a scary #OGT14 reality check: for a period of three months, I will be "Richard Pietro of no-fixed address" #webnotwar

The Open Government Tour has one more City Champion! @thefaketree through @RRPSNBSPRN will help in Moncton (and NB)! #OGT14 #WebNotWar Retweeted by Nick Scott

The Open Government Tour has one more City Champion! @thefaketree through @RRPSNBSPRN will help in Moncton (and NB)! #OGT14 #WebNotWar

The new #webnotwar community camera has arrived. I had no idea gopro was that small... It's like a pygmy camera lol pic.twitter.com/ecYz6CH48X

Wow packed house @mtlpy meeting #45 #pycon2014 effect? Looking forward to the talks #webnotwar pic.twitter.com/C9hILAd7If

Retweeted by Alexis Smirnov

Wow packed house @mtlpy meeting #45 #pycon2014 effect? Looking forward to the talks #webnotwar pic.twitter.com/C9hILAd7If

Retweeted by Victor Stinner

Wow packed house @mtlpy meeting #45 #pycon2014 effect? Looking forward to the talks #webnotwar pic.twitter.com/C9hILAd7If

Retweeted by Montréal-Python

Wow packed house @mtlpy meeting #45 #pycon2014 effect? Looking forward to the talks #webnotwar pic.twitter.com/C9hILAd7If

I'm happy to say that we have one more confirmed City Champion for #OGT14 ...@_Chris_Moore for #YEG! Thanks Chris! #WebNotWar Retweeted by Chris Moore 