What is the "ruby" (Ruby)? The programming language "ruby"

Date:

2018-03-22 00:47:12

Views:

529

Rating:

1Like 0Dislike

Share:

Table of contents:

At the moment there are a huge number of programming languages, each of which has its own characteristics and regularities. In this article we will talk about one of them.

History Ruby

Ruby as a programming language exists for a very long time. Work on the first edition of this incredibly popular language today began in 1993, and the first official version dates from 1995. The Creator of the language, Yukihiro Matsumoto, was a programming enthusiast since the students, but the idea of creating your own tool came to him much later. So what is so remarkable about this programming language that today he occupies a leading position on the world stage of software development?

what is rubyThe Ruby programming Language is an interpreted language a high-level, dynamically typed and independent of the runtime implementation of multithreading. It has its own garbage collector, and on the specifics of the syntax it is most close to such languages as Perl. With the development ecosystem, this platform also has borrowed a lot from Smalltalk, Python, Lisp and other programming languages. Very important for the existence and continuous development is the fact that the language is "ruby" and its implementation are completely free. This means that anyone can propose changes, and if they are accepted by the community, will be included in the next version of the language.

The Philosophy of Ruby

When creating his brainchild, Matsumoto, as a devoted fan and enthusiast of object-oriented programming, created a philosophy for programmers wishing to master its language. So, the Ruby programming language intended to create simple and easy applications. The main focus of Ruby does not the speed of the program, and the simplicity and readability of code.

Recommended

How to get out of

How to get out of "Skype" on the "Android" and not only

How to get out of "Skype" "Android"? This question bothers many users. The thing is that the messenger is not so difficult. But there are features that are only for mobile versions. To log out of Skype in this case more difficult than it seems. But i...

Kingo ROOT: how to use the program to gain administrative rights on Android

Kingo ROOT: how to use the program to gain administrative rights on Android

The Gadgets on the platform Android regained the lion's share of the market. Developers are continually perfecting the OS, trying to fit the needs of the users, but from year to year admit palpable mistake: forbid the owner to "stuffing" of his gadge...

How to get from Stormwind to Tanaris: practical tips

How to get from Stormwind to Tanaris: practical tips

World of Warcraft is an iconic MMORPG, uniting millions of players around the world. There are many locations and puzzles, secret trails and larger, but rather dangerous paths. Sooner or later, every player chose the side of the Alliance, we have to ...

ruby programming languageTherefore, this platform is very frequently selects as an input for teaching programming. The main principle on which is based this language is the so-called principle of “the least surprise" - this means that the program should behave as it expects the author (programmer). Another important part of the ideology of language that has brought the Creator is a large variability. The same result can be achieved in various ways and functions. Because of this, each programmer can solve the problem as it sees most proper and convenient. This largely influenced the popularity of the language among professionals in the field of information technology.

Key features of the language

What is the "ruby" programming language? It is primarily an object-oriented language. There are no primitive types - all structure and data items are objects (in contrast to the same Java language, it has primitive data structures). Each function in ruby is a method. Many of the properties and possibilities introduced by the creators of other programming languages, so we can safely say that Ruby (the language) has absorbed the best from many other languages and technologies.

the ruby languageSo, for example, in the ecosystem ruby has its own garbage collector, the idea of which was borrowed from Smalltalk and Java, and can work with all objects in the system. This mechanism allows transparent to the application user and the developer to cleanup the memory from objects that are no longer in demand. The garbage collector allows developers in most cases not to be distracted by memory management applications, and focus on functionality and usability.

Paradigms of the language

Responding to a question about what "ruby" as multiparadigmatic language, can suddenly find themselves to be in the heat of the dispute. Because this language allows you to use any of the programming paradigms equally well, such as procedural programming style, object-oriented or functional approach. The developer is free to choose the paradigm that is closer to him, and its set of tools will not be more limited or weaker. The programming language "ruby" only encourages this choice.

The reasons for the popularity

what is rubyIn many ways this language has become popular due to the simplicity of the design of the various amendments. Therefore, the number of frameworks and libraries is constantly growing, and the tasks that they solve on their own, allow developers to promptly bring the product to the ready state. Very often ruby is the programming associated with the development of web applications and support of functioning of different websites and online platforms. This niche of language has taken due to its simplicity and speed of development. Because the alternative platform (e.g., Java) require much more knowledge and experience to deal with the same tasks.

Popular frameworks

If we talk about the popular frameworks that exist on the market today, among them stands out Rails. A lot of people, answering the question about what "ruby", intuitively mean RubyOnRails. This set of software components has become the industry standard among developers. He is constantly maintained, evolving and expanding community of programmers, whilethis free. This framework describes the components of the web application under the MVC pattern (Model-View-Controller), and provides ready integration with the application server and an interface for database access. These 3 components, in fact, allow a few hours to write and run Internet simple blog or private web page.

ruby programmingOn the Ruby programming language you can create a native mobile application, through the library RubyMotion. It allows you to execute Ruby code for iOS, OS X and Android. She created a private group of developers, therefore, for its use need to pay, but it confirms once again the rich possibilities of the language.

The Importance of writing tests

Another important part of the ecosystem of Ruby, and its web-based parts are frameworki and libraries for writing tests. RubyOnRails preaches the philosophy of BDD (behavior-driven development), which mean that first the programmer creates a series of tests that describe the expected behavior of the program, and then generates code that should successfully pass these tests. The unofficial standard in this area is RSpec is a framework allows you to write test cases understandable to even inexperienced in the development of users.

Ruby Gems

Thanks to the described standard, which should match all packages and libraries for Ruby, the development of add-ons is not difficult. Therefore, among the so-called gems (from the English. - a precious stone), you can find modules for almost any task - from integration with social networks and third-party services to ready-made platforms for e-Commerce. Everything you need to use third-party libraries is to describe the dependence of your project from a library located in a remote or local repository, and at the next Assembly, this library is automatically loaded into the application. It also simplifies the project migration between the developers, as there is no need to manually share the dependencies to build the project.

ruby languageSo if you'll ask again about what "ruby", then you will be able with certainty to say that it is a powerful and versatile programming language that is certainly suitable for both experienced developers and beginners who want to master the difficult craft of programming. It has tools for creating any application, from desktop programs to mobile services and web platforms.


Article in other languages:

AR: https://tostpost.com/ar/computers/11735-what-is-the-ruby-ruby-the-programming-language-ruby.html

BE: https://tostpost.com/be/kamputary/20997-shto-takoe-rub-ruby-mova-pragramavannya-rub.html

DE: https://tostpost.com/de/computer/21002-was-ist-ruby-ruby-die-programmiersprache-ruby.html

ES: https://tostpost.com/es/los-ordenadores/21022-qu-es-el-rub-ruby-el-lenguaje-de-programaci-n-de-ruby.html

HI: https://tostpost.com/hi/computers/11746-what-is-the-ruby-ruby-the-programming-language-ruby.html

JA: https://tostpost.com/ja/computers/11747-ruby-ruby-ruby.html

KK: https://tostpost.com/kk/komp-yuterler/20989-b-l-rubi-ruby-ba-darlamalau-t-l-rubi.html

PL: https://tostpost.com/pl/komputery/20953-co-to-jest-ruby-ruby-j-zyk-programowania-ruby.html

PT: https://tostpost.com/pt/computadores/20964-o-que-o-ruby-ruby-a-linguagem-de-programa-o-ruby.html

TR: https://tostpost.com/tr/bilgisayarlar/20996-nedir-ruby-yakut-programlama-dili-ruby.html

UK: https://tostpost.com/uk/komp-yuteri/20980-scho-take-rub-ruby-mova-programuvannya-rub.html






Alin Trodden - author of the article, editor
"Hi, I'm Alin Trodden. I write texts, read books, and look for impressions. And I'm not bad at telling you about it. I am always happy to participate in interesting projects."

Comments (0)

This article has no comment, be the first!

Add comment

Related News

Team Liquid Dota 2 squad of the reigning Champions of The International

Team Liquid Dota 2 squad of the reigning Champions of The International

Team Liquid – this is a major eSports organization created in 2000. She appeared in the Netherlands, but now it includes representatives of many countries, not only from Europe. The Dota 2 team appeared 2012 any results not ...

The CSS animation and its possibilities

The CSS animation and its possibilities

Wondering how to make a CSS animation, many users go looking for lessons and instructions. And though these instructions you will find here, among other things, we will give you the main useful tip in creating animations using CSS...

How to install skin on Kristaliks in Minecraft

How to install skin on Kristaliks in Minecraft

“Kristalex” is one of the most popular and favorite servers, “Minecraft”. They have everything you need for a successful and enjoyable game. Competent administration, a variety of worlds, a huge number of m...

System requirements Dota 2: details and schedule in the project

System requirements Dota 2: details and schedule in the project

many players were waiting for the release of the second part of velichka MOV, and in particular they were interested in the system requirements of Dota 2, which already testified to the fact that it can play almost all who have pr...

How to get out of the

How to get out of the "Classmates"? What to do if there is no exit button from "Classmates" or hung page?

Even the constant and active social media users sometimes want to cancel your account. This problem arises not only from visitors "Classmates" with her face and other resources.the problemit is Worth noting that the ques...

Rare item - Reins of the headless Horseman

Rare item - Reins of the headless Horseman

the Reins of the headless Horseman is considered one of the most valuable and hard-to-reach items in the game “World of Warcraft”. It can only be obtained under certain conditions with a very low chance. Detailed infor...