Author: admin
-
Dynamic typing and Duck typing
Ruby is a dynamic programming language. Ruby programs are not compiled. All class, module and method definition are built by the code when it run. Ruby variables are loosely typed language, which means any variable can hold any type of object. When a method is called on an object, Ruby only looks up at the…
-
Visual appearance
Ruby generally prefers English keyword and some punctuation is used to decorate Ruby. It doesn’t need variable declaration.
-
Mixins
Ruby has a feature of single inheritance only. Ruby has classes as well as modules. A module has methods but no instances. Instead, a module can be mixed into a class, which adds the method of that module to the class. It is similar to inheritance but much more flexible.
-
Flexibility
Ruby is a flexible language as you can easily remove, redefine or add existing parts to it. It allows its users to freely alter its parts as they wish.
-
Object Oriented
Ruby is purely object oriented programming language. Each and every value is an object. Every object has a class and every class has a super class. Every code has their properties and actions. Ruby is influenced with Smalltalk language. Rules applying to objects applies to the entire Ruby.
-
How to Install Ruby on MacOS
Introduction Ruby is a dynamic, reflective, general purpose, object oriented programming language developed by Yukihiro “Matz” Matsumoto in Japan. It is a multiple paradigm language developed in mid-1990. It was influenced by Perl, SmallTalk, ADA and LISP. In this tutorial, we are going to learn the installation process of ruby on MacOS through terminal. Prerequisites Installation The following steps…
-
Install Ruby on Windows
In this tutorial, we will walk you through installing Ruby on Windows step-by-step. Ruby is a popular language among developers due to its simplicity, flexibility, and ease of use. Prerequisites Before we begin, it’s necessary to have the following: Step 1: Download Ruby Installer First, we need to download the Ruby installer for Windows. Visit…
-
JavaScript Objects
What is an Object? JavaScript is an object-based language and in JavaScript almost everything is an object or acts like an object. So, to work with JavaScript effectively and efficiently we need to understand how objects work as well as how to create your own objects and use them. A JavaScript object is just a…
-
JavaScript Functions
What is Function? A function is a group of statements that perform specific tasks and can be kept and maintained separately form main program. Functions provide a way to create reusable code packages which are more portable and easier to debug. Here are some advantages of using functions: The following section will show you how…
-
JavaScript Loops
Different Types of Loops in JavaScript Loops are used to execute the same block of code again and again, as long as a certain condition is met. The basic idea behind a loop is to automate the repetitive tasks within a program to save the time and effort. JavaScript now supports five different types of…