InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

InfoQ Presentation: MetaProgramming Ruby

Posted by Werner Schuster on Dec 07, 2007

Sections
Development,
Architecture & Design
Topics
Programming ,
Ruby ,
Language ,
Ruby on Rails ,
Domain Specific Languages
Tags
Metaprogramming ,
Qcon London 2006 ,
Ruby on Rails
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 Srsen Posted
eph by Andrei Zinca Posted
problems by jimmy coyne Posted
Re: problems by Sean Cribbs Posted
Re: problems by johan andries Posted
able to download this? by Hrafn Nordhri Posted
  1. Back to top

    This is cool!!!

    by Jure Srsen

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

  2. Back to top

    eph

    by Andrei Zinca

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

  3. Back to top

    problems

    by jimmy coyne

    Is any body else having problems viewing this presentation?

  4. Back to top

    Re: problems

    by Sean Cribbs

    +1

  5. Back to top

    Re: problems

    by johan andries

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

  6. Back to top

    able to download this?

    by Hrafn Nordhri

    Are we able to download this?

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.