• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

Ruby sweet spot?

Posts: 43024
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Leaving aside Rails, where do you see Ruby's sweet spot? Does it lend itself particular well to certain types of applications, or to certain development methodologies? Or does it have some innate advantages over other languages, like, e.g., Python or Java?
Java Cowboy
Posts: 16084
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've written some small Ruby programs (for myself). One thing was a program to download podcasts. I first wrote it in Ruby, and then I wrote a Java version, just to see how much effort it would be compared to Ruby. The Java version was at least twice as many lines. At the moment, I mainly use Ruby to write small throw-away programs. For example at work, I have to write DAO classes and Java beans, and I write small Ruby programs to generate the Java code for those (so that I don't have to type all that Java code by hand...).

So, in my experience, Ruby is a good tool to write small progams quickly.

In the desktop Linux world (the GNOME desktop), Python is heavily used for desktop applications, both simple and more complex applications. (At least on Ubuntu, Python is the preferred programming language for desktop applications). Ruby is very close to Python - Ruby could have been used for that purpose just as well as Python.

I wouldn't want to give up Java's static typing and runtime performance when I would be programming a larger scale, mission critical business system.
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ulf Dittmer: Ruby is a great way to make programming problems easier by writing code that writes code - metaprogramming. If you'd prefer to work with a unchanging environment, Ruby loses much of it's flair. (Rails gives you some free metaprogramming, of course.)

Lisp does this as well, of course, but Ruby has much better community support, a bigger base of active developers, and more up-to-date libraries.

Jasper Young: Static vs dynamic typing is a hot issue for a lot of people, and the question of which is superior is not going to be answered here and now. For what it's worth, Many people use Ruby for mission critical applications, and many people use Ruby for applications that have to scale. (Twitter, for example, has scaled significantly.)

Take it easy,

David Berube
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic