Learning and developing webOS programs from scratch

Source: Internet
Author: User

We have previously introduced the official webOS tutorial for HP:How to download and install the SDK and PDKAndHow to Develop Your First ApplicationI wonder if it will help you learn webOS development. Although the following article is not an official tutorial, the author is a beginner in webOS development. He describes the process of learning to develop webOS programs from the perspective of beginners and shares the practical experience of webOS development.

The original text is as follows:

Have you ever thought about writing programs for your own smartphone? I did. How cool it was.

If you look at the Super developers and the beautiful applications without envy, it is simply unreasonable. The number of programs on webOS may not match that on other platforms, but the quality is absolutely superb.

There is one or several great developers behind every great program. I also want to be one of them.

 

Why do we need to develop the webOS program?

The first reason is that I need a hobby. I used to spend too much time watching TV and movies and act as consumers. Now it is time to review and improve yourself.

Secondly, I saw a huge opportunity for HP computers to run webOS in the near future. The number of millions of machines is not a small amount. We may be able to make a fortune on webOSPC.

Finally, even if webOS has not achieved great development, I have learned the web development skills and are very useful in the world where the network is everywhere.

How to Learn webOS Development

It seems that webOS development is really a good thing. How can we do it now? I have no idea about JavaScript, but I only understand HTML. Then I started to ask for help and asked on Twitter how to learn JavaScript. This not only helped some senior webOS developers, but also received their sincere suggestions. They are also very happy to help new people.

We recommend that you use the w3schools.com website with free textbooks and code snippets. It can effectively help new people learn HTML, JavaScript, CSS and other essential basic knowledge. In addition, it provides an experimental area where you can open two windows to compare the display effects of different codes. I spent nearly a week learning HTML and JavaScript on it.

Another suggestion is that The Chinese translation of JavaScript: The Good Parts is The essence of JavaScript language written by Douglas Crockford. Some people say that JavaScript is a very flexible language, but the disadvantage is that it is too flexible. This book can help new people avoid bad habits and I have been learning about it.

WebOS development practices

After w3schools training, I am ready to develop the webOS application. Go to pai.palm.com to register an account to learn about the basic policy of webOS. Maybe we should also download the free SDK? No, no, please wait.

I decided to start from Ares, This Is A webOS development solution and tool), you can complete the development of an application software on the web page. Ares has a graphical interface editing tool that allows you to easily place various elements. In fact, online development is really a great thing. You only need to open a browser window. I can even expand my work on any computer during my lunch break.

Ares also provides several useful tutorials. One is to teach you how to develop the Flickr program, and the other is to develop a simple map program. You only need to copy and paste the code to complete the tutorial, but the Code lacks comments and valid information. A pure newcomer may not know how to deal with it. Well, it's a flaw.

Fortunately, after a short period of time, you will feel it. You must constantly try it and observe its response. Ares can be connected to a simulator. You can modify the code and view the running result. I think this is the best way to Debug. you can pause the program to fix JavaScript code at any time. What you see is what you get. With this learning method, the progress is fast.

Ares also has some disadvantages. For example, the buttons floating in the bottom of the webOS program cannot be directly generated using the Ares GUI editor. Because they are not instantiated buttons.

This is the real difficulty. Developing webOS does not only work with JavaScript and HTML, but you must also know the webOS system rules. The previous Mojo framework has evolved into Enyo. For example, you need to check the document to know how to push a "scenario" out of Mojo. Where can documents be obtained? Generally, you can see the latest on the website pai.palm.com.

In addition to Ares, you can also install the Eclipse plug-in to configure your favorite development environment. Palm is really considerate and provides a variety of environments. Follow your habits.

After testing, I started to try something a little more complex. For example, if you crawl content from some websites, they will not easily provide support. As a result, I continued to participate in the Forum of PreCentral, exchange ideas with experts, and come up with new ideas. It will take a few weeks to make a prototype and get it to the Forum for testing. I'm glad that in a day or two, more than a dozen people were willing to help with the test and found some shortcomings. Therefore, my work is more powerful and better suited to user needs.

Let's take a look. I am a developer who has never touched webOS and is curious about unknown things and tries to understand them. Every day's challenges are new, and more technologies will be available in the future, such as Enyo. Not everyone has the courage to try development, but you only need to stick to it with a Web browser to step into this circle. This is a great opportunity. In Nike's words, "Just Do It ."

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.