Meeting Details
- Date: Tuesday, May 8, 2012
- Time: 6:00 PM
- Location: 804 Richmond, 1657 West Broad Street, 23220 (Google Maps link)
- Additional Information: 804 RVA Meetup
Abstract
Ruby Metaprogramming Point - Counterpoint
Arild Shirazi’s last project required state-based permissions. Cancan and similar gems did not provide the power or flexibility I was seeking in a DSL. Writing permissions checks by hand throughout the controllers and views is not a maintainable solution. How hard can it be to write your own domain specific language?
Not that bad once you understand closures, classeval, instanceeval and metaprograming hooks like #included(base). I will go over some of these basics as we build our own authentication DSL. The goal is to demystify the Ruby magic and make it accessible for your needs.
To solidify your newfound understanding of what you just learned, Dave Bock will deliver a counterpoint presentation: There is no such thing as Metaprogramming.
Bios
David Bock is a partner at CodeSherpas, the President of the Northern Virginia Java Users Group, a founder of the Northern Virginia Ruby User Group, the Editor of O’Reilly’s OnJava.com website, and a frequent speaker on technology in venues such as the No Fluff Just Stuff Software Symposiums.
Arild Shirazi is a long time Rubyist who works for CodeSherpas. Arild is a RubyNation Conference organizer, too.




