Coding Tutor: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 37: Line 37:
=== Quiz Sessions ===
=== Quiz Sessions ===
The tutor can hold quiz sessions for the user after he passes certain sections of the tutorial and suggest expected thought processes to him/her to encourage him for further learning, after he completes the quiz. The Quiz can include certain section specific coding questions from database.
The tutor can hold quiz sessions for the user after he passes certain sections of the tutorial and suggest expected thought processes to him/her to encourage him for further learning, after he completes the quiz. The Quiz can include certain section specific coding questions from database.

== Technical Aspects ==
* <u>Test to Speech</u>: Tutorials would be converted to voice using [http://www.freebsoft.org/speechd Speed Dispatcher] which uses eSpeak as the library.
* <u>Graphics & UI</u>: Glade and Sugar Graphics will be used for creating the UI and cool software environment.
* <u>Error understanding</u>: GCC/G++ compiler error messages will be read from the errors generated and using a previously created database will map the information with the user code (line nos.). Error highlighting will be embedded and the errors which are to be communicated to user via voice will be transferred to the TTS package.
* <u>Coding Area</u>: Coding area will be a standard Text editor with embedded highlighting features for errors and comments from tutor. Unicode or Internationalization need not be used as the code is always in English language.
* <u>Database</u>: The tutorial database, code database and error database will be standard data files which will be read by the program according to the expected use.
* <u>Networking</u>: For the code sharing between teacher and children & children themselves, the use of Avahi, Telepathy and the Mesh Networking implementation of XO will be made use of.


== Extensibility ==
== Extensibility ==
Line 43: Line 51:
# <u>Speech Recognition & Multi modality</u>: Speech commands and requests by user can be included in future using Speech Recognition APIs, in order to have complete interactivity with the tutor.
# <u>Speech Recognition & Multi modality</u>: Speech commands and requests by user can be included in future using Speech Recognition APIs, in order to have complete interactivity with the tutor.
# <u>Other Languages</u>: Other programming languages can also be added to the Coding Tutor as the project develops further. Community developers working in different languages can add tutorials based on their knowledge. It can also include tutorials for scripting languages.
# <u>Other Languages</u>: Other programming languages can also be added to the Coding Tutor as the project develops further. Community developers working in different languages can add tutorials based on their knowledge. It can also include tutorials for scripting languages.

== Realization ==
Following points illustrate some basic project realization schedule that will be followed:-
# A basic skeleton of the program will be created with minimal UI and effects. The code editor will be incorporated and area for text form of tutorial will be kept aside.
# Compiler will be used internally in the program itself so, this stage will ensure that the code written in text area is compiled and the program is able to read error messages.
# TTS will be implemented in the tutorials section and the tests created will ensure its proper working.
# Tutorials will be created with the help of Books for Programming Languages and community members and integrated into the tutorials section. Quiz problems and common misconceptions and expected errors will be estimated and incorporated.
# Intra Computer tests for the program to ensure proper working and make the software free from found bugs.
# Networking will be implemented for sharing and tested using emulators or XOs from nearby mentors/developers.

This is just a tentative schedule and not an exhaustive one, which can be developed only with proper guidelines and help of mentor.


== Resources ==
== Resources ==

Revision as of 19:20, 29 March 2008

OlpcProject.png Rahul Bagaria

Idea

Game developers often include a full-fledged tutorial in their strategy/adventure games where a background voice or some text statements guide the player inside the game scenario itself and help him/her learn the nuances of the game in-situ. The idea is to create something similar for students & children wishing to learn programming in a way they feel as if they are playing some game.

Need

When students & children start to learn programming, they are exposed to a burgeoning plethora of IDEs and SDKs and other learning tools which teach them nothing on how to code. Often the documentation is hard to crack for the beginner and he needs to pour over books. Moreover when he does some mistakes, he gets convoluted error messages which he is unable to comprehend. Coding Tutor will act as a software teacher for such students on the XO platform and will make the chore of learning programming a fun task. Initially it will be a C/C++ Tutor as it is the most common starting programming language and will go on to add Python tutorials in later stages as well.

Summary

Coding Tutor is inspired by the Hackety Hack software which is a browser cum compiler for learning hacking in Ruby. It will be a self sustained tutorial environment having funky colored screens and a spoken + written tutorial which will teach and guide the user to code in an inalienable way. It will be using the GCC/G++ compiler and will initially be a C/C++ Tutor.

There are various levels of learning which can be there in this tutor. The user starts learning from the basics and tries whatever is taught at the same time in the coding area. When he goes on to the advanced levels the complexity of the Tutor increases as well which provides the user different areas & modalities to work in. The interface and the tutorial techniques are so simple to use that even a child in his early teens can easily learn basic nuances of coding and enjoy the lively experience.

Use Case Scenario

Sample scenario in which the user works:-

  • The user logs in the software which determines his level from the last use and suggests the next sections to learn on.
  • User selects the section and the Tutor starts the interaction by a speech tutorial and suggests what the user should try and practice.
  • User codes in the coding area, Tutor intelligently reads the user’s code and suggests tricks, tips and improvements to provide positive motivation.
  • If there are mistakes in the code, the Tutor understands the error messages, highlights the erratic code and explains the error to the user in a simple and easy way which the user enjoys.
  • The speech interface makes the task even more fun as the user gets comments from the tutor as if he was learning directly from a teacher.
  • User can quit the program as and when he wishes as the tutor stores the state of his work and resumes on his next login.

Proposed Features

Speech Interactivity

The tutor interacts with the user by reading a tutorial text using a TTS Speech Synthesis software. It also comments on and explains the errors in the code by reading the compiler generated errors, and suggests improvements if the user commits common programming errors. The tutor can do so as it will not be made as an IDE but a tutorial software so, it will know what is intended in the section and what mistakes can be made.

Error Highlighter

The tutor will highlight the exact errors in the code (based on analysis of compiler generated errors and corresponding line numbers), generate a sound to inform user of his mistakes and explain the corrections if possible, to the user.

Hints

During the practice sessions, if the user faces some problems, he can ask for hints from the tutor. The tutor will be having certain predefined hints in its database which it can provide. It can also look for certain pitfalls and warn the user of them.

Multi-Language Support

The tutorial will incorporate facility of different languages based on the TTS used and translations available. The tutorials will be translated into different languages using Google Translator and can be reviewed by language experts in the community.

Network Sharing

The user can share his codes and creations with friends using Telepathy, Avahi & Mesh Networking and sustain a creative and fun learning environment. The teacher in classroom can also share good codes with children to enkindle them.

Quiz Sessions

The tutor can hold quiz sessions for the user after he passes certain sections of the tutorial and suggest expected thought processes to him/her to encourage him for further learning, after he completes the quiz. The Quiz can include certain section specific coding questions from database.

Technical Aspects

  • Test to Speech: Tutorials would be converted to voice using Speed Dispatcher which uses eSpeak as the library.
  • Graphics & UI: Glade and Sugar Graphics will be used for creating the UI and cool software environment.
  • Error understanding: GCC/G++ compiler error messages will be read from the errors generated and using a previously created database will map the information with the user code (line nos.). Error highlighting will be embedded and the errors which are to be communicated to user via voice will be transferred to the TTS package.
  • Coding Area: Coding area will be a standard Text editor with embedded highlighting features for errors and comments from tutor. Unicode or Internationalization need not be used as the code is always in English language.
  • Database: The tutorial database, code database and error database will be standard data files which will be read by the program according to the expected use.
  • Networking: For the code sharing between teacher and children & children themselves, the use of Avahi, Telepathy and the Mesh Networking implementation of XO will be made use of.

Extensibility

This project can be extended in future to include advanced learning tutorials and other features:-

  1. Networking Tutorials: Tutorials regarding networking can be included in future for advanced learners where the software will include corresponding facilities for IPC and Socket Programming. The exercises in these tutorials can be made very interactive as the user will learn the practical aspects of Networking. The XO Mesh Networking for demos will also be helpful in this scenario.
  2. Speech Recognition & Multi modality: Speech commands and requests by user can be included in future using Speech Recognition APIs, in order to have complete interactivity with the tutor.
  3. Other Languages: Other programming languages can also be added to the Coding Tutor as the project develops further. Community developers working in different languages can add tutorials based on their knowledge. It can also include tutorials for scripting languages.

Realization

Following points illustrate some basic project realization schedule that will be followed:-

  1. A basic skeleton of the program will be created with minimal UI and effects. The code editor will be incorporated and area for text form of tutorial will be kept aside.
  2. Compiler will be used internally in the program itself so, this stage will ensure that the code written in text area is compiled and the program is able to read error messages.
  3. TTS will be implemented in the tutorials section and the tests created will ensure its proper working.
  4. Tutorials will be created with the help of Books for Programming Languages and community members and integrated into the tutorials section. Quiz problems and common misconceptions and expected errors will be estimated and incorporated.
  5. Intra Computer tests for the program to ensure proper working and make the software free from found bugs.
  6. Networking will be implemented for sharing and tested using emulators or XOs from nearby mentors/developers.

This is just a tentative schedule and not an exhaustive one, which can be developed only with proper guidelines and help of mentor.

Resources

Hackety Hack

Speech Synthesis

Screen Reader