What are my strength and weaknesses in relation to completing this project? And how did I address them?

During this project I became aware of some skills that I have into developed as much as others. I was in charge of the brand design for this project and everything that came along with it such as the…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




BRT CSS

Ruby language has many features. Some of them are explained below:

Features of Ruby

Object-oriented

Flexibility

Expressive feature

Mixins

Visual appearance

Dynamic typing and Duck typing

Exception handling

Garbage collector

Portable

Keywords

Statement delimiters

Variable constants

Naming conventions

Keyword arguments

Method names

Singleton methods

Missing method

Case Sensitive

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.

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.

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.

Visual appearance

Ruby generally prefers English keyword and some punctuation is used to decorate Ruby. It doesn’t need variable declaration.

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 name irrespective of the type of object. This is duck typing. It allows you to make classes that pretend to be other classes.

Variable constants

In Ruby, constants are not really constant. If an already initialized constant will be modified in a script, it will simply trigger a warning but will not halt your program.

Naming conventions

Ruby defines some naming conventions for its variable, method, constant and class.

Constant: Starts with a capital letter.

Global variable: Starts with a dollar sign ($).

Instance variable: Starts with a (@) sign.

Class variable: Starts with a (@@) sign.

Method name: Allowed to start with a capital letter.

Keyword arguments

Like Python, Ruby methods can also be defined using keyword arguments.

Method names

Methods are allowed to end with question mark (?) or exclamation mark (!). By convention, methods that answer questions end with question mark and methods that indicates that method can change the state of the object end with exclamation mark.

Singleton methods

Ruby singleton methods are per-object methods. They are only available on the object you defined it on.

Missing method

Statement delimiters

Multiple statements in a single line must contain semi colon in between but not at the end of a line.

Keywords

In Ruby there are approximately 42 keywords which can’t be used for other purposes. They are called reserved words.

Case Sensitive

Ruby is a case-sensitive language. Lowercase letters and uppercase letters are different.

Add a comment

Related posts:

I joined Skyscanner as a Software Engineer

I wanted to share a bit about my experience over the past few months, including the hiring and onboarding processes here at Skyscanner. My hiring process was very smooth and efficient. I was…

Trump Threatens Military Action in Floyd Protests

United States President Donald Trump has threatened to deploy military personnel on American soil in order to quell the riots and demonstrations occurring all over America protesting the death of…

Perhaps The World Will Be A Better Place

This is my very first submission to Hope * Healing * Humour. Greetings. I look forward to dropping by your page. I’m excited that my writings have found a new home. This poem was originally going to…