Application Developers: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
*Check to see what libraries are included before you begin development |
*Check to see what libraries are included before you begin development |
||
*Carefully choose support modules to minimize your storage footprint, for instance if you need a database, choose Sqlite rather than MySQL. Or better yet, use dbm. |
*Carefully choose support modules to minimize your storage footprint, for instance if you need a database, choose Sqlite rather than MySQL. Or better yet, use dbm. |
||
*Test your application in a minimal environment such as one of the [[Minimal Linux |
*Test your application in a minimal environment such as one of the [[Minimal Linux distros]] or [[Development Systems]]. |
||
*If you are unsure what is supported, ask. |
*If you are unsure what is supported, ask. |
||
*Use [[Python]] rather than C whenever possible to minimize storage footprint. A few kilobytes of Python source can accomplish the same job as many kilobytes of C object code because it leverages the Python runtime. |
*Use [[Python]] rather than C whenever possible to minimize storage footprint. A few kilobytes of Python source can accomplish the same job as many kilobytes of C object code because it leverages the Python runtime. |
Revision as of 13:26, 13 June 2006
Introduction
The OLPC needs a wide array of educational applications developed according to constructionist educational principles. Technically, these applications could be developed in any language supported by Linux, however the OLPC simply does not support the storage required to support all the possible runtime environments.
Therefore, application developers should restrict themselves to using C or the OLPC Python Environment. In addition, application developers need to be careful about using any add-on libraries, even those which may be standard issue with Python. The OLPC team may decide to remove any component which is deemed to be redundant. This leads to the following principles:
- Check to see what libraries are included before you begin development
- Carefully choose support modules to minimize your storage footprint, for instance if you need a database, choose Sqlite rather than MySQL. Or better yet, use dbm.
- Test your application in a minimal environment such as one of the Minimal Linux distros or Development Systems.
- If you are unsure what is supported, ask.
- Use Python rather than C whenever possible to minimize storage footprint. A few kilobytes of Python source can accomplish the same job as many kilobytes of C object code because it leverages the Python runtime.
- Test you application with .pyc files only since the .py source will not normally be included in an installation.
- Distribute your source code under an Open Source license.