fix: explain terms dynamic and interpreted in ruby guide's index.md. (#34769)

* fix: explain terms dynamic and interpreted.

* fix: corrected several spelling and grammar errors
This commit is contained in:
Muktesh
2019-02-12 13:56:22 +05:30
committed by Randell Dawson
parent bb339c2204
commit cd31f06c4b

View File

@ -4,7 +4,12 @@ title: Ruby
## What is Ruby? ## What is Ruby?
Ruby was created by Yukihiro "Matz" Matsumoto and is an <a href='https://github.com/ruby/ruby' target='_blank' rel='nofollow'>open source</a>, dynamic and interpreted scripting language for quick and easy object-oriented programming. Which means: Ruby was created by Yukihiro "Matz" Matsumoto and is an <a href='https://github.com/ruby/ruby' target='_blank' rel='nofollow'>open source</a>, dynamic and interpreted scripting language for quick and easy object-oriented programming.
When someone says Ruby is an interpreted scripting language, it means the Ruby program is executed line by line. This
means even if some failure occurs (i.e. at line number 11), the first 10 lines will still be executed.
So Ruby is a dynamic programming language. That means operation can be peformed at runtime. If you declare a variable to store some number, then at run time, you use the same variable to store a string value like your name. For any non-dynamic or static programming language, this will generate error. However, since Ruby is dynamic, it will make the change to store the string value to the variable at run time.
It's also known to have one of the <a href="https://www.ruby-lang.org/en/community/">largest and friendliest communities</a> among programming languages. It's also known to have one of the <a href="https://www.ruby-lang.org/en/community/">largest and friendliest communities</a> among programming languages.