Wednesday, March 6, 2013

Three Most Important Skills For PhoneGap Developers

I have been developing PhoneGap apps for some time. A few days ago,
a new member of our PhoneGap team asked me a question:
what are the most important skills for a PhoneGap developer?

This blog shows my personal ideas on the above question. I'm open to see your opinions.

First, good understanding of Javascript OOP

The most important skills of a PhoneGap developer should be the javascript skills.
And a javascript expert must know javascript OOP(object-oriented-programming) well.

There will be many javascripts in your PhoneGap apps.
You will need to consider how to organize the javascripts,
which will be quite different from common web applications.
For common web apps, you probably use no javascript in OOP way.
You probably write code like below:

But for PhoneGap apps, too much code like above will make your app hard to maintain.
Here, I recommend you write your PhoneGap app in single-page-application,
since it behaves more like native apps,
instead of web apps, and it will be quite easy to navigate through pages.

In my PhoneGap experience, I found the below javascript OOP skills very important:

Second, have the ability to handle touch events

Though in most cases, we don't need to handle touch events by ourselves, as the third-party libs
(
jquery mobile,
Nova PhoneGap framework,
Sencha Touch,
KendoUI, etc
) do it for us, we still need to know there are 3 very important touch events:
touchstart, touchmove, touchend.

If you want to do custom scroll/click/drag/double click/long press/..., or any other amazing effects, you will need to work with the 3 events.
If you want to learn more,
Nova PhoneGap framework
should be a good resource, as it handles the touchs in a simple way, and easy to read easy to learn.

Third, know well of PhoneGap API

What features are supported by PhoneGap? What features are not?

What are the free plugins?

What kinds of projects are not suitable for to be developed in PhoneGap?

A PhoneGap developer should know the answers to the above questions well,
and keep an eye on the API upodates because the PhoneGap team work productively.