Beginner Series: Ruby Tutorial
For anyone that has worked with another language, Ruby code will look remarkably similar. There’s actually a reason for this.
The syntax was designed to mimic popular languages like Python, Java, Perl and others. That’s because Matz, Ruby’s creator, wanted it to be easy to use for both novice and experienced programmers.
Some other things that stand out about Ruby are:
- Everything has a value, even if it is “nil”
- Symbols are not strings, but more like identities
- Everything in Ruby is an object, including classes and integers
- Ruby has variable constants
- Ruby has strict naming conventions through global, instance, and class variables
- Methods can have individual permissions; public, protected and private
- Classes in Ruby can be opened, edited, and changed at any time
You can find a ton of other differences at the official Ruby portal.
Next, let’s explore How to Setup the Ruby Development Environment.
Disclosure of Material Connection: Some of the links in the post above are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.