• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java with Ruby

 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi David,

I am a java programmer willing to learn Ruby following just one book.

Does TWGR provide a working example to develop a standalone web application (I dunno if its possible) using only Ruby.

I know that Ruby and Java can work together using JRuby. In your book, do you explain us how and why we use them together with a working example. Or is it entirely Ruby oriented.

Thank you,
-Himalay
 
author
Posts: 16
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Himalay --

There's no Web development material in the book, and no Ruby/Java examples; it's all focused on the Ruby language itself. You can certainly develop standalone Web apps with Ruby, either with some of the basic tools like the CGI library or by rolling your own. There's also the Rack library, which implements a very simple spec for Web apps that make it almost trivial to write one.


David
 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
David:

Being a J2EE programmer (still have to learn many other technologies in it), I am hesitating to dive completely in Ruby.

I dont think Ruby is going to replace Java/.Net, but I sense its going to take away some market share. I am planning to learn Ruby first using it with Java, so that when Java market is down I can go for Ruby. Your suggestions will be really helpful.

Thank you.
 
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Himalay, you may be interested in this article by Martin Fowler where he talks about Ruby as compared to Java and .net. Some quotes:

"When I ask the question "do you think you're significantly more productive in Ruby rather than Java/C#", each time I've got a strong 'yes'"

"But overall these experiences, from trusted colleagues mean I'm increasingly positive about using Ruby for serious work where speed, responsiveness, and productivity are important."


And keep in mind, that Fowler wrote this in 2006. He did a followup this year reflecting on Thoughtworks use of Ruby (and RoR). Thoughtworks is a Java, .net, and Ruby shop - and they aggregated 3-4 years worth of data on how Ruby and Rails fit into their organization.

Working within web-development means using many languages and frameworks. One of the best things I did was open the book on Ruby (and Rails), which exposed me to many new (and very useful) paradigms. Even if Ruby isn't your preference, you simply cannot afford to not explore new languages ongoing.

As spoken at a No Fluff Just Stuff (NFJS) conference in Denver: "If you aren't learning an alternative language that runs on the JVM (Ruby, Groovy, Scala, Clojure, etc), your already behind."
 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Articles like one by Martin Fowler and quotes such as "If you aren't learning an alternative language that runs on the JVM (Ruby, Groovy, Scala, Clojure, etc), your already behind." motivate me to learn Ruby as my secondary language in programming to begin with.

Can you please suggest me good beginners book on Ruby, which fills the need of ppl coming from java background, if there is none yet, which book would you suggest me.

Thank you.
-Himalay
 
Michael Sullivan
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've found more resources that transition Java developers to Rails, but not many specifically for Ruby. Still, here are some good texts to have a look at:

10 Things every Java Developer should know about Ruby
The Humble Little Ruby Book (Free to read online)
Programming Ruby (Pickaxe)
The Ruby Way
Beginning Ruby
Rails for Java Developers


Many of these can be had for $10 or less on Amazon (used). Happy book-hunting!
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Himalay Majumdar wrote:which fills the need of ppl coming from ...


Please use real words when posting to the forums. Abbreviations such as "ppl" in place of "people" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Being marketable is a good reason to learn a language, personally, I feel that every Java programmer (especially java programmers) should learn some functional programming paradigm based languages, like Haskell / ML / Scheme / Scala.

Then off course they should also check out the range of dynamic languages like Ruby, Erlang (to name a few). Lot of people ask, oh well what does that buy me? In reality it doesn't get you much; but the truth is that once you start broadening your horizons in languages, you tend to know that there are "different" approaches and ways of solving software puzzles and some of them dare I say are more efficient than others; (It also helps you in the long run, because of your depth, you can make informed software decisions if you are in that position and guide others as well.)

So yes, learning Ruby is good, but my personal suggestion would be to learn a language to appreciate the beauty of a language itself and not JUST because of the marketable skills it provides...

Some thoughts, BTW Ruby is a beautiful language! you definitely should check it out!

Trilochan.
 
Wanna see my flashlight? How about this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic