• 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

metasploit project as Ruby learning example

 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, yes, Camping is a great example.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic