I have been playing with Ruby off and on for a while now (since the Des Moines No Fluff Just Stuff conference) and am finally starting to become productive with it. My copy of pickaxe came in early last week, so things have really picked up. On Friday I wrote my first “real” script (i.e. actually does something useful for me, not just a tutorial).
It’s a very easy language, from the standpoint that I do not really know the syntax, yet it seems to write naturally. It is much easy to get started on a problem, where as in Java it always starts with:
class DoSomethingOrOther public static void main(String[] args) { System.out.println(”Hello, please help me”); } }
And in Ruby its:
Of course, that is overly simplistic… or is it? Writing a simple web app with a database using rails is so trivial I still have a hard time believing it can be that easy. Take a look at this, this and this.
Another scripting language I really like is Jython, which has the really handy ability to use (and simplify!) the Java standard APIs, which I have been using daily for the last 5 years. I like the expressiveness of Jython, which is really just Python on the Java VM and in my limited experience, similiar to Ruby. But it suffers from being considered an “add-on” to Java, and having to compete for a community with the other VM-based scripting languages. I will not be investing anymore time in Jython, unless I have a specific need for it. And at that point, I would probably look at Groovy, if I need Java libraries. Otherwise, its Ruby for me.
aaa | 14-Sep-05 at 8:54 am | Permalink
your brilliant simplicity example (puts “Ruby, my dear”) made me switch to Ruby!! i am in tears ad banging my head to walls because i wasted my years with Java :(..
Matt Secoske | 14-Sep-05 at 9:02 am | Permalink
I’m glad you’ve found the error in your ways!
Though I would suggest not taking my word for it. And my, as you call it “brilliant” (I prefer “brillant” by the way…) example is just showing that there is simplicity there, not an attempt on my behalf to impart any sort of knowlege on the reader that they wouldn’t be able to figure out on their own.
Thanks for your comments.
aaa | 14-Sep-05 at 1:21 pm | Permalink
if you actually think wonders of simplicity can be found in a hello-world , or a crappy web application i should keep crying.. brillant..
jess | 14-Sep-05 at 7:13 pm | Permalink
aaa, sure that’s a simple example, but check out the following video that shows a blog engine being written from scratch in 15 minutes:
http://www.rubyonrails.com/media/video/rails_take2_with_sound.mov
MikeH | 15-Sep-05 at 8:31 am | Permalink
Have you looked at JRuby?
http://jruby.sourceforge.net/
As Matt knows, I’ve been a Python fan for a long time and I have yet seen a reason to switch — or even try Ruby. Maybe Rails will finally get me play with it.
bbb | 23-Jan-06 at 9:15 am | Permalink
and in DOS it’s
I rest my case.
pcdinh | 24-Jan-06 at 6:32 am | Permalink
PHP has the same simplicity: echo ‘PHP rocks!!!!’