Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

metasploit project as Ruby learning example

 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, yes, Camping is a great example.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic