OLPCities/Introduction

From OLPC
< OLPCities
Revision as of 08:26, 19 September 2006 by Adamascj (talk | contribs)
Jump to: navigation, search

If you are thinking to begin programming web applications for OLPC you need to know some things.

The OLPC station has a browser that is a customized version of Firefox. But this doesn't means that, if you test some web application at your Firefox at Windows, by example, it will work at the station.

Our recomendation is that you install a "simulator". It's easy. If you work under Windows XP there are the tutorial: Using QEMU on Windows XP .

A good idea is to try that your application works in the OLPC station and in the Internet Explorer. Many kids in the world will not be included in the OLPC project and would use you application under Windows.

You can use what you will see at these tutorials serie for the creation of a "OLPCity" but you can have other ideas. The JavaScript libraries we will put available and explain how to use has the potential for many different crestions.

We will not explain in the main tutorials serie (this that you are reading now) the basics of programming or JavaScript concepts, but we will create links to these paralel subjects.

We need to alert you that JavaScript, like we will use it, is not a "safe" language. Everybody can see your code. But we think that, here, this is an advantage, because your code can help other people to learn develop something similar.

It's usual to say that that Object Oriented Programming is like LEGO. You use some prefab objects compounding your application. Here this will be more true because we will have, not only many Classes to use but also many "sprites" (images) free available for download from this wiki.

We will work inicially using three main libraries:

  • the "native" library of JavaScript that has Classes like: String, Math etc.
  • the DOM (Document Object Model) that has Classes like: Document, Window etc.
  • some Classes of the Gamelib created by Scott Porter and updated by Brent Silby. Gamelib is available under the terms of the GNU Library General Public Licence. Some Classes of Gamelib don't work at the OLPC station browser.