Talk:Activities/Turtle Art/Patching

From Sugar Labs
< Talk:Activities‎ | Turtle Art
Revision as of 08:13, 27 September 2008 by Walter (talk | contribs) (New page: ==Bill Kerr's questions (and some answers)== * Where do you find things (Python files, source code)? :The source code for Sugar Activities are found in /home/olpc/Activities. Each Activity...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Bill Kerr's questions (and some answers)

  • Where do you find things (Python files, source code)?
The source code for Sugar Activities are found in /home/olpc/Activities. Each Activity is in a subdirectory, e.g., /home/olpc/Activities/TurtleArt.activity. The source code (Python files) are in these subdirectories.
  • Which things do what? How does Walter know which Python files have to be tweaked?
I started reading through the code, looking for sections that were relevant to problem I was trying to solve. For example, since I was adding a new math function, I looked in the code for where the other math functions were defined. I found the code for "+", "-", "*", "/", "random", etc. in talogo.py and I found code for generating blocks in taturtle.py. It was an iterative process. I proceeded by trial and error and made lots of mistakes along the way. In the process, I learned a lot about the overall structure of the code.
  • Who do you communicate with? (I didn't know that Brian Silverman was the maintainer and didn't know his email)
Many Activities has an Authors file. Most Activities have additional author information on their respective wiki pages, e.g., [1]. Most Activities have a maintainer in the trac system [2]. TurtleArt tickets are "Owned by: bss".
  • How do you program more advanced stuff in Python, eg. using lambda?
There are a number of freely available guides to programming in Python, including:
  • The Byte of Python (www.swaroopch.com/notes/Python)
  • How to Think Like a Computer Scientist: Learning with Python, 2nd edition (openbookproject.net/thinkcs/python2e.php)
  • Python for Fun (www.openbookproject.net/py4fun/)
  • Python Bibliotheca (www.openbookproject.net/pybiblio/)
  • Dive into Python (diveintopython.org/)
  • What is FOSS etiquette, how do you go about learning to be a member of this community?
Start by asking questions... welcome to the community!

--Walter 13:13, 27 September 2008 (UTC)