Hey guys!
Sorry but I’m completely new to this…programming in general but would
like to start learning ruby. I am trying to do this: http://pine.fm/LearnToProgram/?Chapter=01
I am on a IMAC, have downloaded text wrangler, but am unable to save the
program it says…or don’t know how.
Do I have to write it in text wrangler save it and then run it on the
terminal? If so, how?
You have to save the file with the extension *.rb, then open your
terminal, place your working zone in the path you have your file saved,
then run it like this:
Your mac already comes with an excellent, powerful computer programming
text editor–it’s
called vim. To learn how to use it, open up Terminal and type:
$ vimtutor
You can also search ‘vim’ to learn how to configure it any way you want.
Once you get the basics down, you can download macvim to get even more
features.
Then search for the best macvim plugins to see all the other features
you can implement.
.
Thanks for your help, however, as I said I am completely new and don’t
seem to be able to make it work.
I have saved the text wrangler file on my desktop, so I open the
terminal, type irb for ruby,
and on the next line write /Desktop/calc.rb and I get an error, here the
full deal:
Last login: Sat Nov 10 15:20:19 on ttys000
iMac-de-Carlos:~ carlosamengual$ irb
Sublime Text 2 should be pretty easy for you to learn. Google it and try
for some time.
Also, I recommend learning a bit more about how to use Terminal (nothing
fancy, just the basic commands), there should be plenty of tutorials on
the
Internet.
And buy a good book on Ruby - I recommend Eloquent Ruby. It might sound
strange, because there’s so many stuff on the net, but a well-written
book
can help you learn lots of stuff in a good order with minimal pain.
Good luck!
Carlos A.
Control engineering student
Polytechnic School
University of So Paulo
And buy a good book on Ruby - I recommend Eloquent Ruby. It might sound
strange, because there’s so many stuff on the net, but a well-written
book can help you learn lots of stuff in a good order with minimal pain.
It’s a great book, but maybe rather not for a “complete newbie”,
because it requires some basic understanding of Ruby.
To someone who has never done any programming before I like to
recommend Chris P.'s tutorial or better book (the book provides
two sets of possible solutions, one that uses only concepts and
syntax elements that have already been discussed, and one that
presents a somewhat more advanced/elegant approach).
And buy a good book on Ruby - I recommend Eloquent Ruby. It might sound
strange, because there’s so many stuff on the net, but a well-written
book can help you learn lots of stuff in a good order with minimal pain.
It’s a great book, but maybe rather not for a “complete newbie”,
because it requires some basic understanding of Ruby.
To someone who has never done any programming before I like to
recommend Chris P.'s tutorial or better book (the book provides
two sets of possible solutions, one that uses only concepts and
syntax elements that have already been discussed, and one that
presents a somewhat more advanced/elegant approach).
Agree, I was also a newbie like Carlos, what awake me the passion for
Ruby was Why’s Poignant Guide to Ruby, is a free book, you can find it
in .pdf and my though is that it’s for newbies, it teachs you the basics
of Ruby from the void and going slowly and slowly incrementing the
difficult, teaching you some skills, the book is told as a story so it’s
pretty enjoyable. I also read Chris P.'s book it’s pretty good.
Wow!! This is amazing! That you all for the amazing help/suggestions.
I’m going try a a couple of free things I’ve found online and then I’ll
move on to books!
Thank you all so much for your help!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.