Learning with Ruby Portable

For general discussion related FlowStone
Post Reply
User avatar
jjs
Posts: 142
Joined: Thu Jun 09, 2011 12:15 pm

Learning with Ruby Portable

Post by jjs »

This is a handy tool you can take with you everywhere you go and have some time to learn Ruby.
The latest Ruby version but then portable, seems like it was not easy to make it portable but they succeed.
take a look here:
http://www.yellosoft.us/portable-ruby

also easy if you have brake at work but you are not allowed to install anything on your work-computer.

Works on Windows and Linux so everyone can use it, Apple osx 10.4 has Ruby built in.
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Learning with Ruby Portable

Post by trogluddite »

What a neat idea! :D

It will need a little care when learning from it though - it says that it is a compiled version of Ruby 1.8.6 - FS uses the latest 1.9.3 version, and there are a few differences that you have to watch out for. Nothing really major if you want to learn the basic syntax and "principles" of Ruby, but don't rely 100% on it for learning individual methods and classes, as it may catch you out when you come to use stuff in FS and it doesn't quite work the same.

The Sketchup 3D software I use is getting ready to upgrade from 1.8.6->1.9.3, and one of the guys there made this cool comparison chart. - might be useful if you run into any "translation" problems.

You can web search for "Ruby API docs <version number>" and get complete descriptions of all the methods and classes for every old (and new) version of Ruby.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
pfv
Posts: 2
Joined: Tue Dec 04, 2012 3:42 pm

Re: Learning with Ruby Portable

Post by pfv »

Is there a reference somewhere for all the graphics methods Flowstone accepts , ex. "drawRoundRect"?

Thanks in advance.

EDIT: Sorry, solved with RTFM.
jbonnell4394
Posts: 19
Joined: Mon Feb 27, 2012 8:30 am

Re: Learning with Ruby Portable

Post by jbonnell4394 »

Hi, What is RTFM.. I'm in need of this Reference as well.. I'm a begginer with Ruby.

Thanks.

-J
User avatar
jjs
Posts: 142
Joined: Thu Jun 09, 2011 12:15 pm

Re: Learning with Ruby Portable

Post by jjs »

jbonnell4394 wrote:Hi, What is RTFM.. I'm in need of this Reference as well.. I'm a begginer with Ruby.

Thanks.

-J


that is not Ruby, allthough you could make RTFM an object.....

it means: Read The F*cking Manual

but hen again i'm also an absolut beginner with Ruby
pfv
Posts: 2
Joined: Tue Dec 04, 2012 3:42 pm

Re: Learning with Ruby Portable

Post by pfv »

It's in the manual, chapter 8 "Ruby Component", starting at page 122.
jbonnell4394
Posts: 19
Joined: Mon Feb 27, 2012 8:30 am

Re: Learning with Ruby Portable

Post by jbonnell4394 »

Duh!!!! Should have known that... been flipping thru that manual for a few days now and just didn't come across that
thanks a million guys... I'll load it up right now and check it out... :-)


*Edit* I'm never going to get any sleep!
infuzion
Posts: 109
Joined: Tue Jul 13, 2010 11:55 am
Location: Kansas City, USA, Earth, Sol

Re: Learning with Ruby Portable

Post by infuzion »

Perhaps better if you don't want to mess with any installs & have internet connection:
http://www.codecademy.com/tracks/ruby
User avatar
jjs
Posts: 142
Joined: Thu Jun 09, 2011 12:15 pm

Re: Learning with Ruby Portable

Post by jjs »

Great one ! Infuzion.
tor
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Learning with Ruby Portable

Post by tor »

it is mentioned in the forum before. but i mention it again: http://rubymonk.com very good site.
my biggest obstacle when it comes to learn ruby is actually spending time with it and the tutorial above.
i am at the third attempt to finnish it now :P

http://www.codecademy.com/tracks/ruby seems like a equally good resource :)

btw: a hot tip is that you can use a method called '.method' on any object in ruby and it works fine in the FS ruby component aswell. So if you have an array called ie 'forummembers' and wonder what methods available to this array then write at the bottom of your code:

Code: Select all

forummembers.method

it will output a list of all methods available in the bottom panel of the ruby component.
Post Reply