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

metasploit project as Ruby learning example

 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • 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.
 
author
Posts: 27
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, yes, Camping is a great example.
 
I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar:
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