The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Learn to Program -- A Tutorial for the Future Programmer

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Britt

Posts: 1319
Nickname: jamesbritt
Registered: Apr, 2003

James Britt is a principal in 30 Second Rule, and runs ruby-doc.org and rubyxml.com
Learn to Program -- A Tutorial for the Future Programmer Posted: Feb 28, 2004 8:23 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by James Britt.
Original Post: Learn to Program -- A Tutorial for the Future Programmer
Feed Title: ruby-doc
Feed URL: http://www.ruby-doc.org/index.rb/rss0.91.xml
Feed Description: New and updates for the Ruby Documentation Project web site.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by James Britt
Latest Posts From ruby-doc

Advertisement

Chris Pine announced the completion of his tutorial for teaching programming to the non-programmer.

From About This Tutorial

I tried to separate concepts as much as possible in this tutorial, so that the student would only have to be learning one concept at a time. This was difficult at first, but a little too easy after I had some practice. Some things must be taught before others, but I was amazed at how little of a hierarchy there really is. Eventually, I just had to pick an order, and I tried to arrange things so that each new section was motivated by the previous ones. I'm not sure I always succeeded.

Another principle in this tutorial is to teach only one way to do something. It's an obvious benefit in a tutorial for people who have never programmed before. For one thing, one way to do something is easier to learn than two. Perhaps the more important benefit, though, is that the fewer things you teach a new programmer, the more creative and clever they have to be in their programming. Since so much of programming is problem solving, it's crucial to encourage that as much as possible at every stage.

I have tried to piggy-back programming concepts onto concepts the new programmer already has; to present ideas in such a way that their intuition will carry the load, rather than the tutorial. Object-Oriented programming lends itself to this quite well. I was able to begin referring to "objects" and different "kinds of objects" pretty early in the tutorial, slipping those phrases in at the most innocent of moments. I wasn't saying anything like "everything in Ruby is an object," or "numbers and strings are kinds of objects," because these statements really don't mean anything to a new programmer. Instead, I would talk about strings (not "string objects"), and sometimes I would refer to "objects", simply meaning "the stuff in these programs." The fact that all that stuff in Ruby are objects made this sort of sneakiness on my part work so well.

Worth noting, too, that the XHTML pages were generated by a Ruby program.

Read: Learn to Program -- A Tutorial for the Future Programmer

Topic: Shoeboxes And Bindings Previous Topic   Next Topic Topic: This is a Textile Test

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use