Just Starting Ruby?
Start here
What is Ruby?
And why you should use it.
Ruby is an object orientated language. Meaning that almost everything is an object, which is common in higher level languages, but not as common in lower languages. A higher level language generally requires more processing power and RAM then a lower level language doing the same thing, but a higher level language will allow you to develop the application faster. Ruby has many built-in methods, meaning that this execute at a lower level in the system and thus are faster, so use them when you can. I love ruby for some of the basic things, like my functions' names can end with a question mark or exclamation mark. Generally a function with a question mark will return true or false. While a function with an exclamation mark will modify the object.
# a "# =>" is common in ruby to say "this is what the output will be"
hash = {:a => 1, :b => 2}
hash.has_key? :a # => true
string = "hello"
string.capitalize # => Hello
string # => hello
string.capitalize! # => Hello
string # => HelloI'm not to sure what to cover, so leave a post below on what you would like to see and I'll add it
If you want to give ruby a shot, try out http://tryruby.org/ for a 15 minute crash course in ruby designed so even non-programmers can learn.
And if you want to install it on your local machine, check out the official ruby website: http://ruby-lang.org/






Cartoon Clouds
Mountains
Sunrise
Clouds
Green Clouds
None






sign under their reply :)














Help