OLPCities/Introduction: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:
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 <b>libraries</b> we will put available and explain how to use, has the potential for many different creations.
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 <b>libraries</b> we will put available and explain how to use, has the potential for many different creations.


We will not explain in the <b>main tutorials serie</b> (this that you are reading now) the [[JavaScript basic concepts]], but they will be at appendices.
We will not explain in the <b>main tutorials serie</b> (this that you are reading now) the [[OLPCities/JavaScript basic concepts|JavaScript basic concepts]], but they will be at appendices.


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 how to develop something similar.
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 how to develop something similar.
Line 14: Line 14:
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.
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.


OLPCities has an API, the "libraries" having Classes with methods, properties etc. You can access this API at: [[OLPCities JavaScript Libraries]].
OLPCities has an API, the "libraries" having Classes with methods, properties etc. You can access this API at: [[OLPCities/JavaScript Libraries]].


We will work initially using three main JavaScript libraries:
We will work initially using three main JavaScript libraries:
* the "native" JavaScript library, that has Classes like: String, Math etc.
* the "native" JavaScript library, that has Classes like: String, Math etc.
* the DOM (Document Object Model), that has Classes like: Document, Window etc.
* the DOM (Document Object Model), that has Classes like: Document, Window etc.
* some Classes of the <b>Gamelib</b>, created by Scott Porter and updated by Brent Silby. Gamelib is available under the terms of the [http://www.gnu.org/copyleft/lgpl.html GNU Library General Public Licence]. Some Classes of Gamelib don't work at the OLPC station browser (we will not publish them at the [[OLPCities JavaScript Libraries]]).
* some Classes of the <b>Gamelib</b>, created by Scott Porter and updated by Brent Silby. Gamelib is available under the terms of the [http://www.gnu.org/copyleft/lgpl.html GNU Library General Public Licence]. Some Classes of Gamelib don't work at the OLPC station browser (we will not publish them at the [[OLPCities/JavaScript Libraries]]).




Line 39: Line 39:
If you created a new "Lot" you can put the link at the page [[Lots]]. A Lot can have words in any language (english, spanish etc.)
If you created a new "Lot" you can put the link at the page [[Lots]]. A Lot can have words in any language (english, spanish etc.)


The same for new libraries. Use the [[OLPCities JavaScript Libraries]].
The same for new libraries. Use the [[OLPCities/JavaScript Libraries]].


<b>Please note that all contributions to OLPCities are considered to be released under the Attributions-ShareAlike 2.5. If you don't want your work to be used by everybody then don't submit it here.
<b>Please note that all contributions to OLPCities are considered to be released under the Attributions-ShareAlike 2.5. If you don't want your work to be used by everybody then don't submit it here.
Line 49: Line 49:
We hope you will enjoy our tutorials and will help in the creation of many useful activities for our kids.
We hope you will enjoy our tutorials and will help in the creation of many useful activities for our kids.


<center>TOC :[[OLPCities Tutorials]]..........NEXT LESSON : [[Hello World!]]</center>
<center>TOC :[[OLPCities/Tutorials|Tutorials]]..........NEXT LESSON : [[OLPCities/Hello World!|Hello World!]]</center>


[[Category:OLPCities]]
[[Category:OLPCities]]

Revision as of 23:27, 13 February 2007

If you are thinking to begin programming for the project OLPCities or any other 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 an "emulator". It's easy. If you work under Windows XP there are the tutorial: Using QEMU on Windows XP .


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 creations.

We will not explain in the main tutorials serie (this that you are reading now) the JavaScript basic concepts, but they will be at appendices.

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 how to 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.

OLPCities has an API, the "libraries" having Classes with methods, properties etc. You can access this API at: OLPCities/JavaScript Libraries.

We will work initially using three main JavaScript libraries:

  • the "native" JavaScript library, 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 (we will not publish them at the OLPCities/JavaScript Libraries).


We hope that many new libraries will be created and made available for this project.

And we have the "sprites". We are not designers, so we hope that, soon, we will have nicer sprites.

The sprites are distributed in some categories. You can access and copy them at:

If you create a new sprite you can put your work at these pages, available for the communitary use of it.

If you created a new "Lot" you can put the link at the page Lots. A Lot can have words in any language (english, spanish etc.)

The same for new libraries. Use the OLPCities/JavaScript Libraries.

Please note that all contributions to OLPCities are considered to be released under the Attributions-ShareAlike 2.5. If you don't want your work to be used by everybody then don't submit it here. You are also promising us that you wrote or have designed it yourself, or copied it from a public domain or similar free resource. DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!


Like english is not our first language, if you found some errors at the text of any tutorial, please replace it by the correct.

We hope you will enjoy our tutorials and will help in the creation of many useful activities for our kids.

TOC :Tutorials..........NEXT LESSON : Hello World!