InfoQ

News

InfoQ Presentation: MetaProgramming Ruby

Posted by Werner Schuster on Dec 07, 2007

Community
Ruby
Topics
Language ,
Ruby on Rails ,
Domain Specific Languages ,
Programming
Tags
Metaprogramming ,
Ruby on Rails ,
Qcon London 2006
Metaprogramming is one of the technologies used to implement some distinctive Ruby on Rails features such as has_many. In this presentation, Dave Thomas (PragDave) focuses on the Ruby features that make metaprogramming possible:
  • Class definitions are active - they get executed
    This allows to execute custom code when a class gets first loaded.
  • All method calls have a receiver, i.e. a self object
    A crucial fact in Ruby - Dave explains how self some methods of metaprogramming work with manipulating self.
  • Classes are objects too
  • Open and singleton classes - it's always possible to add members to classes
Other topics include how to use eval flexibly with bindings and more.

Check out "MetaProgramming Ruby".
This is cool!!! by Jure http://blog.regulus.si Posted Dec 18, 2007 9:02 PM
eph by Andrei Zinca Posted Dec 19, 2007 3:55 PM
problems by jimmy coyne Posted Dec 20, 2007 10:24 AM
Re: problems by Sean Cribbs Posted Dec 22, 2007 11:58 AM
Re: problems by johan andries Posted Dec 28, 2007 3:00 AM
able to download this? by Hrafn Nordhri Posted Nov 5, 2009 12:58 PM
  1. Back to top

    This is cool!!!

    Dec 18, 2007 9:02 PM by Jure http://blog.regulus.si

    Tnx. It would be really nice if more Ruby presentations like this would be available.

  2. Back to top

    eph

    Dec 19, 2007 3:55 PM by Andrei Zinca

    An otherwise good presentation ruined by an awful, macabre joke.

  3. Back to top

    problems

    Dec 20, 2007 10:24 AM by jimmy coyne

    Is any body else having problems viewing this presentation?

  4. Back to top

    Re: problems

    Dec 22, 2007 11:58 AM by Sean Cribbs

    +1

  5. Back to top

    Re: problems

    Dec 28, 2007 3:00 AM by johan andries

    On Windows, for me it works in IE but not in FireFox.

  6. Back to top

    able to download this?

    Nov 5, 2009 12:58 PM by Hrafn Nordhri

    Are we able to download this?

Educational Content

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.