Talk:Activities/Turtle Art/Patching: Difference between revisions

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...
 
Line 3: Line 3:
: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.
: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?
* 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.  
: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.
:A debugging tip: print statements put into the code are logged; use the Log Activity to view them.
* Who do you communicate with? (I didn't know that Brian Silverman was the maintainer and didn't know his email)
* 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., [http://wiki.laptop.org/go/Turtle_Art]. Most Activities have a maintainer in the trac system [http://dev/laptop.org/query]. TurtleArt tickets are "Owned by: bss".
:Many Activities has an Authors file. Most Activities have additional author information on their respective wiki pages, e.g., [http://wiki.laptop.org/go/Turtle_Art]. Most Activities have a maintainer in the trac system [http://dev/laptop.org/query]. TurtleArt tickets are "Owned by: bss".
Return to "Activities/Turtle Art/Patching" page.