Your First Ruby Program

Similar Posts

  • An Introduction to JavaScript – Part II

    In the first part of an Introduction to JavaScript, we looked at basic syntax, variables, comments, and displaying information to the user. Now we are going to expand upon that base to look to the next options. Making Decisions Almost every program will need to only run certain sections of the code. This means skipping…

  • Overview of Ruby

    Ruby is a high-level, interpreted programming language that was designed to make coding as enjoyable as possible. Created by Yukihiro Matsumoto in the mid-1990s, Ruby prioritizes readability, simplicity, and productivity. The language is dynamically typed, object-oriented, and often praised for its clean, expressive syntax, which resembles natural language. Ruby is particularly popular in web development,…

  • Ruby Arrays and Hashes

    In Ruby, an array is an ordered collection of objects, which can hold multiple data types, including numbers, strings, other arrays, or even objects. Of the languages we’ve looked at, it is most similar to lists in Python, where you can store dynamic types, and they are dynamically sized. There are a couple of ways…

  • Advanced Logic in Ruby

    In addition to the basic programming logic that Ruby has, it also has a few weirder forms of logic it can employ. Single Line Conditions Ruby allows for single line conditions where it is almost like a short hand. However, doing so may seem backward to normal logic, because the true block goes first. Consider…

  • Installing Ruby

    Installing Ruby is relatively simple. There is an install page as part of the Ruby documentation: https://www.ruby-lang.org/en/documentation/installation/ While they would prefer you to have a Unix, or Unix like environment, you can scroll down to find the best way to install this language runtime software. I personally went to the Ruby Installers section of the…