If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Wich book best for learning Ruby in Flowstone?
21 posts
• Page 1 of 3 • 1, 2, 3
Wich book best for learning Ruby in Flowstone?
Hi i have a book The pragmatic Programmers Guid 2009 Ruby 1.9, but it seems not to work so good when putting in the examples in the Ruby module.
Some thing seem to work different then when working with the interpreter from the Ruby webpage.
So does somebody knows wich book is best for learning Ruby within Flowstone?
Thanks a lot!
Some thing seem to work different then when working with the interpreter from the Ruby webpage.
So does somebody knows wich book is best for learning Ruby within Flowstone?
Thanks a lot!
-
jjs - Posts: 142
- Joined: Thu Jun 09, 2011 12:15 pm
Re: Wich book best for learning Ruby in Flowstone?
All books training on Ruby using standard library.
So no Ruby on Rails and Ruby + GEMS
http://rubykoans.com/
http://rubylearning.com/satishtalim/tutorial.html
http://www.ruby-doc.org/docs/ProgrammingRuby/
And at top:
http://www.ruby-doc.org/core
The docs of "core"
So no Ruby on Rails and Ruby + GEMS
http://rubykoans.com/
http://rubylearning.com/satishtalim/tutorial.html
http://www.ruby-doc.org/docs/ProgrammingRuby/
And at top:
http://www.ruby-doc.org/core
The docs of "core"
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
-
CoreStylerz - Posts: 327
- Joined: Sun Jan 22, 2012 2:19 am
- Location: italy
Re: Wich book best for learning Ruby in Flowstone?
Great! thanks "Core"Styler.
The book i have also uses Gems.
So i will take a look at your links.
edit-
By the way this link you mention http://www.ruby-doc.org/docs/ProgrammingRuby/ is the same as the book i have.
But the book is aimed on Ruby as of 1.9 (2009) and the webversion is from 2000 aimed on Ruby 1.8. There seem to be very much differences between the 2.
Question to development: Wich book do you advise and wich version is Ruby wich is implemented in FS3, i assume 1.9.3 ? Is this correct? Thanks.
The book i have also uses Gems.
So i will take a look at your links.
edit-
By the way this link you mention http://www.ruby-doc.org/docs/ProgrammingRuby/ is the same as the book i have.
But the book is aimed on Ruby as of 1.9 (2009) and the webversion is from 2000 aimed on Ruby 1.8. There seem to be very much differences between the 2.
Question to development: Wich book do you advise and wich version is Ruby wich is implemented in FS3, i assume 1.9.3 ? Is this correct? Thanks.
-
jjs - Posts: 142
- Joined: Thu Jun 09, 2011 12:15 pm
Re: Wich book best for learning Ruby in Flowstone?
Here's another couple that I found useful...
-Why?s Poignant Guide to Ruby. Be warned, this one is strange - but it gets the concepts of Object programming across well. You'd need something more thorough to back it up.
-Mr Neighbourly's Humble Little Ruby Book. Again, more of a beginner's book, but found it easy to read, and get's its point across rather quicker than the other one.
I also found it handy to install a regular ruby installation (free from here) - I use the Interactive Ruby console that comes with it as a little 'sandbox' for playing in. Unless you create methods and classes with a lot of error trapping in them, it gets tough finding the errors from the standard console messages, so being able to hop into the sandbox to work out little syntax niggles is really handy.
A proper code eidtor like Notepad++ is also well worth having - having the same code open in multiple windows, with search-and-replace, highlighting of begin-end structures etc. really takes the grind out of de-bugging.
-Why?s Poignant Guide to Ruby. Be warned, this one is strange - but it gets the concepts of Object programming across well. You'd need something more thorough to back it up.
-Mr Neighbourly's Humble Little Ruby Book. Again, more of a beginner's book, but found it easy to read, and get's its point across rather quicker than the other one.
I also found it handy to install a regular ruby installation (free from here) - I use the Interactive Ruby console that comes with it as a little 'sandbox' for playing in. Unless you create methods and classes with a lot of error trapping in them, it gets tough finding the errors from the standard console messages, so being able to hop into the sandbox to work out little syntax niggles is really handy.
A proper code eidtor like Notepad++ is also well worth having - having the same code open in multiple windows, with search-and-replace, highlighting of begin-end structures etc. really takes the grind out of de-bugging.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
Re: Wich book best for learning Ruby in Flowstone?
trogluddite wrote:Here's another couple that I found useful...
-Why?s Poignant Guide to Ruby. Be warned, this one is strange - but it gets the concepts of Object programming across well. You'd need something more thorough to back it up.
-Mr Neighbourly's Humble Little Ruby Book. Again, more of a beginner's book, but found it easy to read, and get's its point across rather quicker than the other one.
I also found it handy to install a regular ruby installation (free from here) - I use the Interactive Ruby console that comes with it as a little 'sandbox' for playing in. Unless you create methods and classes with a lot of error trapping in them, it gets tough finding the errors from the standard console messages, so being able to hop into the sandbox to work out little syntax niggles is really handy.
A proper code eidtor like Notepad++ is also well worth having - having the same code open in multiple windows, with search-and-replace, highlighting of begin-end structures etc. really takes the grind out of de-bugging.
Hey Trog thanks for your links, certainly will help me with it!
I also downloaded the rubyinstaller, have to install it yet, i also used notepad++ for several other things like php and css when changing (my former) website.
Also when trying some things in the FSruby-module, commands like- puts "hello" -don't work as written in most books, then you have to use- output "hello" -to get the output on a string viewer, i just tried it and that worked. so maybe there are more differences wich may lead to confusion, especially when you're first starting with Ruby like me.
-
jjs - Posts: 142
- Joined: Thu Jun 09, 2011 12:15 pm
Re: Wich book best for learning Ruby in Flowstone?
hi jjs,
I have the Pragmatic Programmers Guide for Ruby (1.9) and tbh I think its an amazing book for learning!
Ok, ok its not a quick guide, the opposite in fact BUT once you have an understanding of the concepts of Ruby its a great resource! (dont go too far in it though)
Trog mentioned Why's poignant guide, I think its a very enjoyable text worth a read. Not advanced but worthy of a read to understand the aims of programming in Ruby.
Ruby is a very forgiving language to write with (in my opinion).Not much control/structural syntax.
It does get easier trust me and your method for outputting data is correct. ie.
output "hello"
the ins and outs are arrays (if you have more than 1 in/out) and are indexed accordingly.
so lets say you create a ruby module with 5 ins & 5 outs.
To access the inputs:
@ins = input array ( whole array ) - use to access whole array
@ins[0] = input at index 0 in array
@ins[1] = input at index 1 in array
@ins[2] = input at index 2 in array
@ins[3] = input at index 3 in array. . . . and so on
EG: (take third input and multiply by 6.75)
myvar = @ins[2] * 6.75
Outputs:
output 0,x = output x at first output
output 1,x = output x at second output
output 2,x = output x at third output
output 3,x = output x at fourth output . . . . and so on
EG: (output myvar to first output)
output 0,myvar
Its worth reading the FS user guide's examples and documentation on ruby.
From my experience, I would start by learning all the data types in ruby first, ie arrays, strings, hashes, numbers ect.
That way when you do real application design you understand how to move the data in and out of ruby and how she
handles the data.Ive spent hours trying to send string arrays of floats to a ruby module for parsing. . . . couple of hours wasted to reveal a simple solution. string.split
Damn
It does exactly what is says , splits the string . . . . doh!
Then move to control statements, classes and blocks ect.
You should pick it up quick, duck-typing is a blessing here lol!
Hope this helps
I have the Pragmatic Programmers Guide for Ruby (1.9) and tbh I think its an amazing book for learning!
Ok, ok its not a quick guide, the opposite in fact BUT once you have an understanding of the concepts of Ruby its a great resource! (dont go too far in it though)
Trog mentioned Why's poignant guide, I think its a very enjoyable text worth a read. Not advanced but worthy of a read to understand the aims of programming in Ruby.
Ruby is a very forgiving language to write with (in my opinion).Not much control/structural syntax.
It does get easier trust me and your method for outputting data is correct. ie.
output "hello"
the ins and outs are arrays (if you have more than 1 in/out) and are indexed accordingly.
so lets say you create a ruby module with 5 ins & 5 outs.
To access the inputs:
@ins = input array ( whole array ) - use to access whole array
@ins[0] = input at index 0 in array
@ins[1] = input at index 1 in array
@ins[2] = input at index 2 in array
@ins[3] = input at index 3 in array. . . . and so on
EG: (take third input and multiply by 6.75)
myvar = @ins[2] * 6.75
Outputs:
output 0,x = output x at first output
output 1,x = output x at second output
output 2,x = output x at third output
output 3,x = output x at fourth output . . . . and so on
EG: (output myvar to first output)
output 0,myvar
Its worth reading the FS user guide's examples and documentation on ruby.
From my experience, I would start by learning all the data types in ruby first, ie arrays, strings, hashes, numbers ect.
That way when you do real application design you understand how to move the data in and out of ruby and how she
handles the data.Ive spent hours trying to send string arrays of floats to a ruby module for parsing. . . . couple of hours wasted to reveal a simple solution. string.split
Damn
It does exactly what is says , splits the string . . . . doh!
Then move to control statements, classes and blocks ect.
You should pick it up quick, duck-typing is a blessing here lol!
Hope this helps
Last edited by Drnkhobo on Mon Nov 12, 2012 8:04 pm, edited 1 time in total.
- Drnkhobo
- Posts: 312
- Joined: Sun Aug 19, 2012 7:13 pm
- Location: ZA
Re: Wich book best for learning Ruby in Flowstone?
Hi Drnkhobo,
this is very helpfull indeed !
Thank you very much.
I think i will first start with the FS manual on Ruby and the pragmatic guide wich i also have.
Instead of the other way around.
Thanks again.
this is very helpfull indeed !
Thank you very much.
I think i will first start with the FS manual on Ruby and the pragmatic guide wich i also have.
Instead of the other way around.
Thanks again.
-
jjs - Posts: 142
- Joined: Thu Jun 09, 2011 12:15 pm
Re: Wich book best for learning Ruby in Flowstone?
No problem mate
You cant go wrong that way. If you need any more help just post on the forums
Oh, also have a look at these, I use them as reference texts to check up on:
http://shop.oreilly.com/product/9780596516178.do
http://shop.oreilly.com/product/9780596529864.do?green=A58B8B2F-D213-5E8E-963B-43FCFE90A522&intcmp=af-mybuy-9780596529864.IP
You cant go wrong that way. If you need any more help just post on the forums
Oh, also have a look at these, I use them as reference texts to check up on:
http://shop.oreilly.com/product/9780596516178.do
http://shop.oreilly.com/product/9780596529864.do?green=A58B8B2F-D213-5E8E-963B-43FCFE90A522&intcmp=af-mybuy-9780596529864.IP
- Drnkhobo
- Posts: 312
- Joined: Sun Aug 19, 2012 7:13 pm
- Location: ZA
Re: Wich book best for learning Ruby in Flowstone?
Great ! thanks a lot!
-
jjs - Posts: 142
- Joined: Thu Jun 09, 2011 12:15 pm
Re: Wich book best for learning Ruby in Flowstone?
This is one of my favorite online programming courses, of any language:
http://rubymonk.com/learning/books
& more here:
http://iwanttolearnruby.com/
http://ruby.about.com/od/tutorialsonthe ... ysfree.htm
http://rubymonk.com/learning/books
& more here:
http://iwanttolearnruby.com/
http://ruby.about.com/od/tutorialsonthe ... ysfree.htm
- infuzion
- Posts: 109
- Joined: Tue Jul 13, 2010 11:55 am
- Location: Kansas City, USA, Earth, Sol
21 posts
• Page 1 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 62 guests