Ruby and Logo?

B

Brian Candler

Anybody remember Logo, a teaching language from the 80's? Its big plus was
that you could use it to drive a 'turtle' around the floor and draw shapes.

ISTM that Ruby would be an ideal environment for this - either using a
graphical display plus an irb-like shell at the bottom of the screen, or
indeed controlling a real robot turtle.

fred = Turtle.new
fred.pendown
3.times { fred.forward 50; fred.turn 120 }

And of course,

fred = nil
GC.start

would make fred disappear into thin air :)

But unlike Logo, this would be an introduction to a "real" programming
language. Does anything like this exist already for Ruby?

Cheers,

Brian.
 
G

gabriele renzi

Brian Candler ha scritto:
But unlike Logo, this would be an introduction to a "real" programming
language. Does anything like this exist already for Ruby?

at least I can tell you this has been discussed some times in the past,
and on RAA there is
http://raa.ruby-lang.org/project/ruby_turtles/

wich IIRC was quite functional.

Oh, and BTW, I may be wrong but it seem to me LOGO was just a strange
dialect of lisp, and thus maybe a real language by itself :)
 
J

James Edward Gray II

Anybody remember Logo, a teaching language from the 80's? Its big plus
was
that you could use it to drive a 'turtle' around the floor and draw
shapes.

I've actually done a little playing with this idea for a future Ruby
Quiz. I've written some code and played around, but just haven't
stumbled across the perfect quiz angle yet. I know it's in there
though!

James Edward Gray II
 
G

Glenn Parker

gabriele said:
Oh, and BTW, I may be wrong but it seem to me LOGO was just a strange
dialect of lisp, and thus maybe a real language by itself :)

Yup, Logo is a bastard child of mama Lisp, and it gets all the respect
and support you might expect.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top