*
The moose likes Ruby and the fly likes metasploit project as Ruby learning example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "metasploit project as Ruby learning example" Watch "metasploit project as Ruby learning example" New topic
Author

metasploit project as Ruby learning example

Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

Hi and welcome Paolo, congrats on your book.

I read a short time ago that the Metasploit project (http://www.metasploit.com/) is the largest ruby project out there. I've tested it a little and it has a lot of Ruby code. Would you recommend that as a project to look at as a Ruby and Ruby metaprogramming example to learn from?

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Why not look at Rails, which has a lot of metaprogramming in it? Or, really, any Ruby-based DSL--almost all of them use metaprogramming to some extent.
Paolo Perrotta
author
Greenhorn

Joined: Mar 27, 2010
Posts: 27
I would begin by looking at small libraries. One of the nice things about Ruby is that there are so many gems around that are popular and useful, but still tiny. For example, if you want to see a lot of metaprogramming going on, look at _why's Camping web framework (install with ). Most good libraries use at least some metaprogramming tricks, so just pick your favorite gem and peek into the source.

Once you can wrap your head about small libraries, by all means move on to the Rails source to see something (way) larger.


Paolo Perrotta, Europe
Author of Metaprogramming Ruby
http://www.pragprog.com/titles/ppmetr/metaprogramming-ruby
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Ah, yes, Camping is a great example.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: metasploit project as Ruby learning example
 
Similar Threads
Ruby port to iText
Ruby in practice question: Do UTF-8 and Ruby fit well in practice?
ruby in practice
A few Ruby questions
How does ruby fit in as a language for agile web development?