Groovy
Groovy

446
399
174
Ruby
Ruby

9.9K
7.8K
3.8K
Add tool

Groovy vs Ruby: What are the differences?

What is Groovy? A dynamic language for the Java platform. Groovy builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk. It makes modern programming features available to Java developers with almost-zero learning curve.

What is Ruby? A dynamic, interpreted, open source programming language with a focus on simplicity and productivity. Ruby is a language of careful balance. Its creator, Yukihiro “Matz” Matsumoto, blended parts of his favorite languages (Perl, Smalltalk, Eiffel, Ada, and Lisp) to form a new language that balanced functional programming with imperative programming.

Groovy and Ruby can be categorized as "Languages" tools.

"Java platform" is the primary reason why developers consider Groovy over the competitors, whereas "Programme friendly" was stated as the key factor in picking Ruby.

Groovy and Ruby are both open source tools. Ruby with 15.9K GitHub stars and 4.23K forks on GitHub appears to be more popular than Groovy with 1.49K GitHub stars and 414 GitHub forks.

Instacart, StackShare, and Shopify are some of the popular companies that use Ruby, whereas Groovy is used by Starbucks, PedidosYa, and Cask. Ruby has a broader approval, being mentioned in 2527 company stacks & 1114 developers stacks; compared to Groovy, which is listed in 78 company stacks and 73 developer stacks.

What is Groovy?

Groovy builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk. It makes modern programming features available to Java developers with almost-zero learning curve.

What is Ruby?

Ruby is a language of careful balance. Its creator, Yukihiro “Matz” Matsumoto, blended parts of his favorite languages (Perl, Smalltalk, Eiffel, Ada, and Lisp) to form a new language that balanced functional programming with imperative programming.

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose Groovy?
Why do developers choose Ruby?
What are the cons of using Groovy?
What are the cons of using Ruby?
What companies use Groovy?
What companies use Ruby?
What are some alternatives to Groovy and Ruby?
Java
Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
Scala
Scala is an acronym for “Scalable Language”. This means that Scala grows with you. You can play with it by typing one-line expressions and observing the results. But you can also rely on it for large mission critical systems, as many companies, including Twitter, LinkedIn, or Intel do. To some, Scala feels like a scripting language. Its syntax is concise and low ceremony; its types get out of the way because the compiler can infer them.
Kotlin
Kotlin is a statically typed programming language for the JVM, Android and the browser, 100% interoperable with Java
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
Gradle
Gradle is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites.
See all alternatives
What tools integrate with Groovy?
What tools integrate with Ruby?
Decisions about Groovy and Ruby
No stack decisions found
Interest over time
Reviews of Groovy and Ruby
Avatar of kfretwell33
Founder at Pouch
Review ofRubyRuby

I taught myself Ruby about a year ago. I had experience with HTML/CSS, MySQL, and a little bit of javascript and python but would consider this my first true programming language I became proficient in (later picked up Swift).

I started with a CodeAcademy course before working on my first Rails project. The language is easy to read and Rails is an amazing framework. The online community is fantastic, the documentation is amazing, and there is no shortage of Ruby Gems which allows you to quickly "cobble" together a new project.

How developers use Groovy and Ruby
Avatar of StackShare
StackShare uses RubyRuby

Only thing worth noting here is that we saw some major issues with memory swapping on Heroku with Ruby 2.1.2. We weren’t the only ones. So we actually reverted back to 2.0.0. Here’s what happened: reverting. We’re planning to upgrade to 2.1.4 once we’ve had time to test thoroughly.

Avatar of benyomin
benyomin uses RubyRuby

When we are comparing Turing complete languages it's not about what compiles faster or to the cleanest machine code, it's about what the developer can think in and write faster, including the availability of libraries. A couple of times I wrote some ruby scripts for this project. I just like the language best for some things. Love the syntax.

Avatar of SaberEsPoder
SaberEsPoder uses RubyRuby

We are primarily a Ruby shop; our main apps are running on Ruby + Rails, our Slack bot is written in Ruby and our smaller projects are on Sinatra. It makes it really easy for us to re-use code and switch between different projects since they are all on the same language.

Avatar of Tim Lucas
Tim Lucas uses RubyRuby

Because happiness. Testing via RSpec (mostly model and request specs), Factory Girl for fixtures, VCR for testing API responses, timecop, Redcarpet for Markdown rendering, Intercom gem for posting events.

Avatar of Karma
Karma uses RubyRuby

Most of our services are written in Ruby. We started out as a Ruby shop, but we're slowly also moving some stuff to Go. We're using Go more and more these days, actually, including some backend services.

Avatar of Valdomiro Bilharvas
Valdomiro Bilharvas uses GroovyGroovy

Used as language to describe and interpret as tools with jenkinsfile

Avatar of Sodep
Sodep uses GroovyGroovy

NPL solutions and statistical machine learning.

Avatar of Tongliang Liu
Tongliang Liu uses GroovyGroovy

As long as you don't abuse def and Closure

How much does Groovy cost?
How much does Ruby cost?
Pricing unavailable
Pricing unavailable