Ruby: Resources for Learning

Member
Posts: 41
Joined: 2005.02
Post: #1
Feel free to add to this, or take these links and make a better list...

http://www.ruby.ch/tutorial/ - Cool because it has an interpreter built into the tutorial's site. The tutorial is just okay.
http://www.ruby-doc.org/docs/UsersGuide/rg/ - Ruby User's Guide.
http://www.rubycentral.com/book/ - Programming Ruby, 1st Edition - For Ruby 1.6 , mostly good, a few things out dated
http://www.bct-portal.com/opensource/ruby/tutorial/ - not sure, I haven't really spent much time looking at it
http://pine.fm/LearnToProgram/ - I find some of the examples hard to read, but it has some good content.

WikiBooks also has the begins of a Wikibook on the subject, though it needs a lot of work: http://en.wikibooks.org/wiki/Programming...ctive_mode
The big thing about that link is that you can easily get eval.rb, which might be more helpful than irb. It does coloring and spacing and other fun stuff that irb doesn't.
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #2
iefan Wrote:http://www.rubycentral.com/book/ - Programming Ruby, 1st Edition (I think for Ruby 1.4 or 1.6, I couldn't find where it said for sure)

It's for Ruby 1.6. It's mostly the same as the second edition of the book, but the latter is better organized. If you find the online version helpful I'd highly recommend getting the second edition in print, especially if you are going to be writing your own language extensions.

Also, to tie this in with Game development, there is OneSadCookie's RubyGameCommon that has OpenGL, GLUT, OpenAL, libPNG, freetype, and math3D statically linked into a bundled double clickable interpreter.

OneSadCookie Wrote:Check out http://onesadcookie.is-a-geek.net/svn/repos . In particular, the RubyGameCommon and RubyGameShellCommon stuff (the difference between the two is that the former uses GLUT where the latter uses GameShell, also available from the same place).

The easiest way to get the code is using subversion. If you've got fink already, grab that. Then,
svn checkout http://onesadcookie.is-a-geek.net/svn/repos OSCsCode
that'll take a while, but you get all the code up there, which is mostly game-oriented Ruby stuff.

You need ruby 1.8 installed to run RBuild, my build system. Grab it from fink, or find one of the ruby archives that's in the checkout, and ./configure && make -j3 && sudo make install that. Check that "which ruby" tells you you're using the right one...

Then cd into OSCsCode/RubyGameCommon, and type ruby ../RBuild/rbuild.rb
that'll build RubyGameCommon, which most of the rest of the samples use.

Then, for example, cd up and into MD2, and again, ruby ../RBuild/rbuild.rb -- that'll build the MD2 loader.

That should get you started -- I'm happy to explain further if necessary.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
This is virtually my homepage Wink

http://rubycentral.com/ref/
Quote this message in a reply
Luke101
Unregistered
 
Post: #4
You can also add this ruby tutorial. it was created by a Ruby expert.
http://www.meshplex.org/wiki/Ruby/Ruby_o..._tutorials
Quote this message in a reply
ALX99066
Unregistered
 
Post: #5
Hi, just wanted to post, as a new ressource for game programming with ruby/rubygame, my new site. As of now it is most useful to people just starting out, but as the weeks go by, I hope to to teach how to build a basic high level tool for making games in ruby with rubygame (a game engine you could say). My first post was made just today and it is long (2, 391 words!) but informative for the beginner, at least I hope.

Here's the link

Suggestions _very_ welcome - leave a comment here or on the site, let me know what you think.

Hopefully some mac user meandering the internets looking to start game programming will stumble upon this.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #6
People might also be interested in my new Ruby/OpenGL bindings, "GLEWby". Browse the source at http://onesadcookie.com/trac/browser/GLEWby or check it out from subversion from http://onesadcookie.com/svn/repos/GLEWby . It binds everything that GLEW does, currently all of OpenGL 2.1 and extensions.
Quote this message in a reply
ALX99066
Unregistered
 
Post: #7
Sounds cool Smile
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #8
I like poignant's ruby, but I also have pickaxe, second edition.

It's not magic, it's Ruby.
Quote this message in a reply
ALX99066
Unregistered
 
Post: #9
Is this in reply to someone, or are you just letting the world know?
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #10
just my way of contributing to the subject. I noted that I liked why the lucky stiff's poignant guide to ruby. I also noted that I use Programming ruby, second edition, which is also called Pickaxe. Both of these implied that I liked the material that they cover and I would recommend them.

It's not magic, it's Ruby.
Quote this message in a reply
ALX99066
Unregistered
 
Post: #11
Oh ok.

Speaking of why, I wish Hackety Hack would come to Mac, it looks so rad!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Learning basic language krzykorean 13 5,537 Jan 2, 2008 06:39 PM
Last Post: Duane
  Ruby on Rails setting Time to NULL BeyondCloister 3 3,800 Nov 21, 2007 09:56 AM
Last Post: AndyKorth
  Ruby, MacPorts, Firewalls BeyondCloister 3 4,009 Nov 6, 2007 04:57 PM
Last Post: OneSadCookie
  Ruby Gems and OpenGL Jaden 2 3,027 Apr 2, 2007 01:15 AM
Last Post: Jaden
  Embedding Ruby DesertPenguin 3 3,356 Jan 5, 2007 09:11 PM
Last Post: DesertPenguin