Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Practical Ruby Gems Questions

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello David!

I don't own your book but I've done some research on it and the subject of Ruby Gems. I've also worked on some Rails apps in my own time and have written a few Ruby scripts at work to ease my pain. I've found the language easy to use and a great alternative to Java for some things.

My first question is unrelated to Ruby Gems, but on Ruby in general. I'm sure this has been argued a million times on the internet already, but why should I choose Ruby over Python or Perl? What advantages does Ruby give me? I already know some of these myself having worked with it, just curious on what you think.

My second question is for all the Ruby Gems available on RubyForge, how were you able to choose only 30 of them to cover? I don't know which ones are covered in the book, but I'm curious if you were focusing more on what would be useful for a novice, or a wide range of topics that could form the basis for most projects?

Thanks for the response and good luck on future writings!

Greg
 
author
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Greg,

Good questions. I think Ruby is a bit slicker than either; not everyone agrees with me, of course. In particular, I feel that Ruby has a very powerful metaprogramming and reflection techniques; in fact, that's what attracted me to Ruby in the first place. (I wrote an article on Dynamic Databases with Ruby back in '04; it appeared in Dr Dobb's Journal, and you can read it here: URL=http://www.ddj.com/dept/database/184405925]http://www.ddj.com/dept/database/184405925[/url])

As for the second question, to quote Tim Hunter's slashdot
"As far as deciding which gems, ...I tried to look at things that had
practical applications - as well as things where I could give it an
interesting angle. Above all, I tried to cover different material in a
different way - I wanted to get people to think "wow, that's great." Of
course, not everything was completely off the beaten path - Rails, for
example, was covered, and that' easily the most popular gem, and RMagick
isn't exactly unpopular either, but I tried to show gems which could
make very difficult, less covered problems - like programatically using
zip files as a container, writing PDFs, or automating SSH tasks - into
easy problems...The biggest thing for me is that I wanted to make people
say 'You can do that with Ruby?'"

Take it easy,

Dave
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic