0

What's the best way to learn Ruby?

downloaded "interactive ruby" on Windows 10

31st May 2018, 8:19 PM
Jonathan
23 Respostas
+ 3
Start here, with Sololearn.
31st May 2018, 8:26 PM
Maxwell Anderson
Maxwell Anderson - avatar
+ 1
I'm just having a hard time with puts and print
31st May 2018, 8:33 PM
Jonathan
+ 1
Donna additionaly puts and prints write to a buffer and that buffer gets flushed to stdout, with puts that buffer gets flushed immediatly after each call, with print not necessarily if you donā€˜t use STDOUT.sync = true
31st May 2018, 9:21 PM
Max
Max - avatar
+ 1
I put my laptop down for the night... I'm having a hard time explaining exactly what the problem is...
31st May 2018, 9:59 PM
Jonathan
+ 1
i have no idea, iā€˜m not using windows. to use ruby in this app go to code playground and make a new code in ruby
31st May 2018, 10:17 PM
Max
Max - avatar
+ 1
ok, so i just started the ruby tutorial so i can help you better. some tips: the multiline examples might nor work in an interactive ruby session, you might have to make a script(a file where you write your code into with the file ending rb. if you execute your script by double clicking on it you might not see any output because the window is closed to fast you can solve this by using ruby path_to_ruby_script.rb in the command prompt) and write them down there(if you dont know how you could try the code playground and come back to it later). if you want to write multiple lines into the interactive ruby session you do it like this line1; line2;line3;.... maybe it solves some of your problems
31st May 2018, 10:24 PM
Max
Max - avatar
0
could you elaborate more on what problem exactly?
31st May 2018, 9:01 PM
Max
Max - avatar
0
when I open Interactive Ruby it seems like this (below text) is preventing the "print" command from creating two lines... it's just not like the example in this app is all... irb (main):001:0>
31st May 2018, 10:05 PM
Jonathan
0
I just don't see what's in this app such as... 1 hi! 2 therehello 3
31st May 2018, 10:07 PM
Jonathan
0
you mean if you do something like: irb (main):001:0>print "Hello\nHello" you dont get two lines?
31st May 2018, 10:07 PM
Max
Max - avatar
0
i think so
31st May 2018, 10:08 PM
Jonathan
0
thats really strange. or do you mean something like print "Hello"; print "Hello" prints HelloHello
31st May 2018, 10:09 PM
Max
Max - avatar
0
I'm sure it's just me... and I need to work on it more. Just frustrating when I'm stumped like this so early into something...
31st May 2018, 10:11 PM
Jonathan
0
if you have trouble with irb you could alway use the codeplayground on sololearn instead and get back to it later when you have better unterstanding of ruby
31st May 2018, 10:12 PM
Max
Max - avatar
0
What is "irb"?
31st May 2018, 10:14 PM
Jonathan
0
interactive ruby, its the name of the program you have to type into the terminal to start it
31st May 2018, 10:14 PM
Max
Max - avatar
0
ahhhhh... how do I get the apps version of Ruby?
31st May 2018, 10:16 PM
Jonathan
0
*this app
31st May 2018, 10:17 PM
Jonathan
0
ok... no worries! I do feel now that progress has been made... thanks
31st May 2018, 10:19 PM
Jonathan
0
great stuff... everyone! really appreciate it #noexcuse
31st May 2018, 10:28 PM
Jonathan