View Full Version : Ruby: Resources for Learning
iefan
2005.02.23, 11:34 AM
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:Ruby_Interactive_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.
Skorche
2005.02.23, 01:56 PM
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.
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.
OneSadCookie
2005.02.27, 04:45 AM
This is virtually my homepage ;)
http://rubycentral.com/ref/
Luke101
2007.05.06, 12:27 PM
You can also add this ruby tutorial. it was created by a Ruby expert.
http://www.meshplex.org/wiki/Ruby/Ruby_on_Rails_programming_tutorials
ALX99066
2007.06.28, 07:54 PM
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 (http://www.blackburnroad.com/mac/weblog/blogger.html)
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.
OneSadCookie
2007.06.29, 03:58 AM
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.
ALX99066
2007.06.29, 09:23 AM
Sounds cool :)
Duane
2007.07.04, 11:15 AM
I like poignant's ruby, but I also have pickaxe, second edition.
ALX99066
2007.07.04, 11:20 AM
Is this in reply to someone, or are you just letting the world know?
Duane
2007.07.04, 11:51 AM
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.
ALX99066
2007.07.04, 11:54 AM
Oh ok.
Speaking of why, I wish Hackety Hack would come to Mac, it looks so rad!
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.