PG2
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Code Conventions<br />
xxi<br />
where Nitobi’s offices were located). We’ve been told that the commercial<br />
product will keep the PhoneGap name while the open source project will<br />
have a different name, but I’m really not sure how that’s going to work out.<br />
• Nitobi Acquired by Adobe: Immediately following the previous announcement<br />
(actually the next day), Adobe Systems Incorporated (www.adobe.com)<br />
announced it was acquiring Nitobi, the company responsible for the<br />
PhoneGap project. That meant big changes for PhoneGap since the folks at<br />
Nitobi could now focus entirely on the PhoneGap project instead of working<br />
on it in their spare time. A while later, Adobe announced it was ceasing development<br />
of its Flash product for mobile devices. This was huge news and<br />
clearly indicated that PhoneGap now had a very important place in Adobe’s<br />
mobile strategy.<br />
One of the biggest problems I faced was getting the help I needed when things<br />
didn’t work or didn’t make sense. As an open source project run by volunteers,<br />
many of my forum questions went unanswered (and to this day are still unanswered).<br />
You can try to get help there, but usually you’re on your own (all the more<br />
reason to pick up this book).<br />
Code Conventions<br />
I put a few notes and sidebars in the manuscript, but for the most part I kept the<br />
manuscript as clean and simple as I could. I did, however, illustrate sample code in<br />
two ways.<br />
A code snippet, a section of a complete application, will be represented in the<br />
manuscript in the following manner:<br />
var d = new Date(heading.timestamp);<br />
hc.innerHTML = "Timestamp: " + d.toLocaleString();<br />
The code could stand alone, like a complete function that you could use in your<br />
application, but in many cases this type of listing illustrates a piece of code that<br />
simply affects one small part of an application.<br />
On the other hand, complete code listings will look like this:<br />
HelloWorld Example<br />
<br />
<br />
<br />
HelloWorld<br />
<br />