Programming languages - (Ruby)
- Maan Bayya
- Dec 28, 2018
- 3 min read
* What is programming?
Programming is to write a command set (program) gives instructions to the computer, and is the language of communication between human and machine, and the language of communication with the computer.
* What does it mean revision
Revision (Debugging) It is the process of correcting errors in the source file in the program, and is meant to communicate orders with the wrong computer, and the computer did not understand it and can not be implemented.
* What is the programming language Ruby
It is a programming language, and is a Japanese origin programming language, and naming this language in this name in relation to one of the gems came, and started to work in 1993, and until 1995 where it became the language Programming Ruby open source programming language, and there are many developers are working on the language, and working on the speed of processing errors.

* Why Ruby programming language?
There are many features in the Ruby programming language (Ruby)
And it is characterized by the following points:
1 - open source programming language.
2 - language general-purpose programming.
3 - the language of object-oriented programming.
4 - dynamic and interpreted programming language.
5 - portable programming language.
6 - easy to learn programming language.
And intended for general-purpose programming language, it means the possibility of using the programming language in the data or graphical interfaces or scientific applications or Web applications rules, and is characterized in the best way and security in software development.
And it is a dynamic programming language, this means that the programmer will not be forced to declare variable type, in contrast to other programming languages, such as languages Java, C, C ++
Example: If we wanted the announcement of a numerical variable is 5 in other programming languages are writing
int i = 5;
This means that the programming language here is static programming language.
In the Ruby programming language - Ruby writing
i = 5;
And this means that they are dynamic programming language.
And is a programming language is explained, it means that this programming language using an interpreter and do not use an interpreter, and the difference between the interpreter and translator is:
- Interpreter: is a program that in the implementation of the compiler code line after line.
- Translator: is a program that in turning to compile code with the extension exe executable file.
And there is a set of reserved words in the language is not used in programming languages Other:
Example: in other programming languages there are printing function (Print) and which are used to print variable (String) and in the Ruby programming language
(Ruby) We use the function (Puts) function instead (Print) even print variable
(String)
Example: puts "Hello, World!"
* Ruby and XML
XML is an abbreviation EXtensible Markup Language
Which Markup Language such as language HTML but the difference between them is that HTML Tags containing group (Tags) and these specific tags and ready, but the language XML You who invent the tags (Tags) Your own. and HTML is used for presentation and display, while XML Used for data storage and work graphical interfaces (GUI) Where the information is saved in a file xml syntax And there will not be an exaggeration to say, that the programming language Java, .NET The working principle where the XML .
* Ruby and Databases
- Databases (SQLite / activeRecords)
Now (SQLite) It becomes almost an essential part of most programming languages, libraries, and exist in the form of default in several development environments such as (Rails) At this time.
- What distinguishes (SQLite)?
1 - size too small.
2 - You do not need to servers, a
Serverless Database Engine.
3 - does not need to settings.
* Ruby on Rails
It drew the Ruby programming language of the attention in the recent period, and very significantly, and all in the cause Rails as many know it Web Framework
And apply the principle of MVC At ease and smoothly integrated, and the goal is speed, efficiency and safety and simplicity.
- What is MVC?
MVC is a model Pattern it depends a lot in software engineering, and it is separated Display (View) for controlled (Model) In order to explain more, for example, if we have a table named (Books) in the database, this means you can add or modify a new book in a book or delete a book, this in exactly what is happening, where it comes, delete, or add, or modify, the controller and is in it executes the command on his role model.
Comments