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.
PriceOpen Source (Free)
Current stable version
Ranked in these Questions
What are the best interpreted programming languages?
What is the best programming language for test automation?
What are the best scripting languages for writing shell scripts?
What are the easiest to learn, but most powerful programming languages for web development?
What language has the best REPL?
What are the most enjoyable programming languages for web development?
What is the easiest programming language to learn for a non-programmer (actually used for production)?
What is the best programming language to learn first?
What are the best Meta-programming languages?
What are the best BASIC-like programming languages?
What are the best languages for writing command line utilities?
What are the best languages for backend in web development?
What are the best general-purpose programming languages?
What are the best server side programming languages?
What are the best languages to learn for someone coming from Python?
What is the best programming language to learn for backend developers?
What are the best programming languages for concurrent programming?
What are the best web design tools?
What are the best (productivity-enhancing, well-designed, and concise, rather than just popular or time-tested) programming languages?
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.
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).
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.
Ruby on Rails
Lays out an easy to follow and opinionated MVC pattern that teaches best practices through necessity.
Test Driven Development, #1
It’s the fore-runner and trend setter for TDD.
Hugely object oriented
Object oriented programming is one of the most important concepts in programming.
Meta-programming provides efficiency and freedom.
No indentation increase development efficiency.
Requiring a library can change the rules of the language. This is very confusing for beginners.
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.
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.
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.
Arcane grammar based on Perl
Ruby is too complicated for beginners:
- arcane Perlisms
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.
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.
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.
Dynamic type system
Majority of bugs could be resolved with types.
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.
Focus on Object-Oriented Programming (OOP)
Focussing on OOP in a beginner stage is an easy and popular plan, but not the best one.