Get it here
Review of Ruby powered by the Slant community.
Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.
Specs Update
PriceOpen Source (Free)
Current stable version
SiteGZipped size15.
Ranked in these Questions
#3
What are the best interpreted programming languages?
#4
What is the best programming language for test automation?
#5
What are the best scripting languages for writing shell scripts?
#5
What are the easiest to learn, but most powerful programming languages for web development?
#6
What language has the best REPL?
#6
What are the most enjoyable programming languages for web development?
#6
What is the easiest programming language to learn for a non-programmer (actually used for production)?
#7
What is the best programming language to learn first?
#7
What are the best Meta-programming languages?
#9
What are the best BASIC-like programming languages?
#10
What are the best languages for writing command line utilities?
#12
What are the best languages for backend in web development?
#13
What are the best general-purpose programming languages?
#13
What are the best server side programming languages?
#13
What are the best languages to learn for someone coming from Python?
#17
What is the best programming language to learn for backend developers?
#18
What are the best programming languages for concurrent programming?
#21
What are the best web design tools?
#24
What are the best (productivity-enhancing, well-designed, and concise, rather than just popular or time-tested) programming languages?
Pros
Pro
Clean syntax
Ruby has a very clean syntax that makes code easier to both read and write than more traditional Object Oriented languages, such as Java. For beginning programmers, this means the focus is on the meaning of the program, where it should be, rather than trying to figure out the meaning of obscure characters.
Fordâ, âCarterâ, âReaganâ, âBush1â, âClintonâ, âBush2â] for ss in 0.
end
Pro
A large ecosystem of tools & libraries
Ruby has a large ecosystem of tools and libraries for just about every use. Such as ORMs (Active Record, DatabMapper), Web Application Frameworks(Rails, Sinatra, Volt), Virtualization Orchestration(docker-api, drelict), CLI tools(Thor, Commando), GUI Frameworks(Shoes, FXRuby) and the list goes on. If you can think of it, there is probably a gem for that ( and if not you can create your own and share with the community).
Pro
Widely used
Ruby is one of the most popular languages for developing web sites. As a result, thereâs an abundant amount of documentation, sample code, and libraries available for learning the language and getting your project up and running. The most popular features are just âgem installâ away. Additionally, it is easier to find Ruby jobs because of this.
Pro
Ruby on Rails
Lays out an easy to follow and opinionated MVC pattern that teaches best practices through necessity.
Pro
Newbie-friendly community
Pro
Test Driven Development, #1
Itâs the fore-runner and trend setter for TDD.
Pro
Hugely object oriented
Object oriented programming is one of the most important concepts in programming.
Pro
Meta-programming
Meta-programming provides efficiency and freedom.
Pro
No indentation
No indentation increase development efficiency.
Pro
Pry
Cons
Con
Monkeypatching
Requiring a library can change the rules of the language. This is very confusing for beginners.
Con
Its ecosystem is limited outside of web development
If youâre looking to host, generate, manipulate or secure a website, Ruby is your language. Thereâs also some great support here for infrastructure as code work via Chef. However, it just doesnât have the depth and breadth that Python does. Things like native UI development, high performance math, and embedded / small footprint environments are barely supported at all in Ruby-space.
Con
Meta-programming causes confusion for new developers
The ability for libraries to open classes and augment them leads to confusion for new developers since it is not clear who injected the functionality into some standard class.
In other words, if two modules decide to modify the same function on the same class can introduce a number of issues. Mainly, the order in which the modules are included matters. Since you more or less canât tell what kind of âhelperâ functions a module might write into any class, or for that matter, where the helper function was included from, you may sometimes wonder why class X can do Y sometimes but not at other times.
Con
No docstrings
Itâs hard to access Rubyâs documentation from the REPL (irb), unlike Python, Lisp, and Smalltalk which let you ask functions how to use them, which is a great benefit to the beginner, and which also encourages you to document your program as you code it.
Con
Arcane grammar based on Perl
Ruby is too complicated for beginners:
- arcane Perlisms
semi-significant whitespace
parentheses are not necessary around method arguments, except for sometimes they are
Smalltalk (Instead theyâre baked into the grammar.
verbose block syntax, unless it happens to be the last argument. (proc lambda).
There are too many exceptional cases and arcane precedence rules.
Con
More than one way to do it
A problem inspired by Perl. The core API interfaces are bloated. Thereâs at least four different ways to define methods. More is not always better. Sometimes itâs just more.
Con
Does not teach you about data types
Since Ruby is a dynamically typed language, you donât have to learn about data types if you start using Ruby as your first language. Data types being one of the most important concepts in programming. This also will cause trouble in the long run when you will have to (inevitably) learn and work with a statically typed language because you will be forced to learn the type system from scratch.
Con
Dynamic type system
Majority of bugs could be resolved with types.
Con
Viewed as a web development language
Despite its flexibility and performance, Ruby is often seen as being unsuitable for other tasks by those who are not familiar with it. As such, a lot of discussion about it centers around Rails, which is not at all relevant if youâre using Ruby for something else, such as game development.
Con
Focus on Object-Oriented Programming (OOP)
Focussing on OOP in a beginner stage is an easy and popular plan, but not the best one.