Advanced Logic in Ruby

Similar Posts

  • Your First Ruby Program

    As with most languages, we always want to start with a “Hello World” program. Remember, this is to make sure everything is working, as much as it is to learn the programming language. For simplicity’s sake, we’re going to use the online editor: https://www.jdoodle.com/execute-ruby-online or https://www.onlinegdb.com/online_ruby_compiler You will notice right away that in Ruby, we…

  • More Advanced Conditional Statements

    AS your applications become more complicated, you can expect your decisions to become more complicated. There are three ways this can happen. First, is a sequence of conditions, checking against the same variable. So in our last decision example, we mentioned how we cannot ask “What color is the shirt?” However, we might ask: “Is…

  • 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,…

  • 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…

  • 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…

One Comment

Comments are closed.