We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › New PTurtle library: LOGO-like turtle for teachers
Page Index Toggle Pages: 1
New PTurtle library: LOGO-like turtle for teachers (Read 3178 times)
New PTurtle library: LOGO-like turtle for teachers
Mar 16th, 2009, 11:48pm
 
Hi Processing,

George Bashi (http://georgebashi.com) and I, Ollie Glass (http://ollieglass.com), are pleased to announce the release of our PTurtle library at http://pturtle.sourceforge.net

From the website:

"The PTurtle library provides a turtle drawing object in Processing. Designed with LOGO's educational principles in mind, the turtle presents uncomplicated commands and an intuitive metaphor to the new programmer. Teaching with the turtle offers a gentle introduction to the imperative, procedural and abstract thinking skills needed by new programmers.

As well as the standard forwards, backwards and turn commands, the turtle can draw with Processing-like moveToward commands that take x and y co-ordinates. For the teacher and student, these methods ease the transition from first-person turtle geometry to Processing's Euclidian geometry.

For more advanced learners, the library offers a HistoryTurtle which stores the lines it draws and makes them available for editing. The HistoryTurtle contains a publicly accessible ArrayList holding individual Line objects, extending the turtle metaphor and providing a visual way in to using objects and collections in Processing."

The library has been developed for use in our introduction to Processing workshops, where it's been tested and refined to it's current mature, bug-free (we believe!) state. It's proved invaluable in teaching the basics of programming and Processing to students. We hope that you enjoy it too, however you use it, and we welcome your feedback.

Ollie Glass & George Bashi

http://pturtle.sourceforge.net
Re: New PTurtle library: LOGO-like turtle for teac
Reply #1 - Mar 17th, 2009, 5:05am
 
This is exciting. LOGO (turtle graphics) is one of the main inspirations for Processing.

Did you think about making the abbreviated commands like in LOGO?

t.fd(10);
t.rt(80);

Casey
Re: New PTurtle library: LOGO-like turtle for teac
Reply #2 - Mar 17th, 2009, 4:17pm
 
Hi Casey,

thanks for your interest and your question. We use the turtle library from the start in our workshops and we want students' first experiences of programming to be with typical Java / Processing code. It's empowering for them to write "real" code from the beginning; abbreviated commands are convenient and faithful to LOGO, but they're uncommon in Java and could give the impression that programming needs to be simplified if it's to be made accessible. Processing has done a lot to dispel that idea and we want to continue in that vein.

Ollie
Re: New PTurtle library: LOGO-like turtle for teac
Reply #3 - Mar 18th, 2009, 3:18am
 
Check.
Re: New PTurtle library: LOGO-like turtle for teac
Reply #4 - Mar 18th, 2009, 4:50am
 
nice lib and site.
would you add your staff something like the followings?
these are my old sketches.

3D turtle
http://www.geocities.jp/classiclll_newweb/KAMEPainter3D/applet/index.html
turtle on a planet
http://www.geocities.jp/classiclll_newweb/KAMEonPlanet/applet/index.html
turtle having canpas
http://www.geocities.jp/classiclll_newweb/KAMEtheBillboard/applet/index.html
Re: New PTurtle library: LOGO-like turtle for teac
Reply #5 - Mar 18th, 2009, 7:08am
 
Great to see a LOGO effort in processing.

We tend to do our early rapid prototypes of agent-based modeling projects in Netlogo. Recent versions of which now have a Controlling API that seems like it could be embedded in a Processing Sketch:
 http://ccl.northwestern.edu/netlogo/docs/controlling.html

It sure would be great to have the speed of agent development of Netlogo coupled to the visualization expressiveness of Processing!

We will try some experiments in the next couple weeks...
Re: New PTurtle library: LOGO-like turtle for teac
Reply #6 - Mar 19th, 2009, 1:21pm
 
hi there, this is very nice. to run the examples i had to import pturtle.Turtle; instead of import turtle.Turtle; and they worked fine.
i am just worried, that the naming does conflict with the convention of using prefix P only for "official" things that are inside processing.core and other associated classes. but chaning the name of pturtle would then also affect your current sourceforge url. any suggestions?
Re: New PTurtle library: LOGO-like turtle for teac
Reply #7 - Mar 19th, 2009, 3:53pm
 
Hi Andreas, thanks for your comments.

We came across the library naming rules after registering the SourceForge project and decided to use PTurtle for the time being while we got our first release out.

We're aware it's problematic; we'd like to indicate that our library is for use with Processing, but all of the desirable suffixes, P, P5 and Pro, are reserved. Indeed, without modification, the library won't work with anything else, making JTurtle or something more generic undesirable. I imagine that a number of developers have had this difficulty and I can see there are several Pro- and P5- libraries on the library page.

Could I suggest a long term, mutually beneficial solution? How about dedicating one of the "p" suffixes to third party library developers, say P5? With such a nomination, we could all enjoy library names that reference Processing without encroaching on the official, core API namespace.

How does this sound to you?

Best wishes,

Ollie
Re: New PTurtle library: LOGO-like turtle for teachers
Reply #8 - Apr 4th, 2009, 7:10am
 
hi ollie,
sorry for my delayed reply. ironically 2 of my libraries do fall under the suffix-issue as well. for libraries i am working on now, i decided to use an 's' as prefix - giving up the P5 suffix. doing so, my future libs might be less connected to processing in its naming convention but more connected towards the author.  i do see that it might be useful to have a dedicated prefix or suffix that makes it easier to identify processing libraries, yet i dont know if it should be a requirement - but an option. what do others think? (maybe this should continue in its own thread?)
best,
andreas
Re: New PTurtle library: LOGO-like turtle for teachers
Reply #9 - Apr 23rd, 2009, 5:08am
 
Hi Andreas,

sorry for my slow response too, I seem to have missed the email notification of your reply.

I'm going to repost our conversation in a new thread and we can see what others have to say about it.

Best wishes,

Ollie
Page Index Toggle Pages: 1