InfoQ

News

Article: Using Singleton Classes for Object Metadata

Posted by Robert Bazinet on Dec 05, 2007 06:42 PM

Community
Ruby
Topics
Programming
Tags
Metaprogramming,
Patterns and Practices

We have another feature article published by InfoQ's own Werner Schuster, where he elegantly explains a way to annotate object graphs with metadata to solve complex problems.   An application where this type of problem may be faced is when a developer takes advantage of Ruby's ParseTree and needs to store specific type information about the nodes in the resulting tree for such things as source code parsers or static code analyzers.

Werner uses a combination of singleton classes and mixins to solve this problem and anyone looking for solution to a specific problem they are facing or what some knowledge for the future should go read Using Singleton Classes for Object Metadata now!

1 comment

Reply

data by osman geldi Posted Jul 20, 2008 10:06 AM
  1. Back to top

    data

    Jul 20, 2008 10:06 AM by osman geldi

    client for Windows that can be used to communicate, share, play or work with others on IRC networks around the world, either in multi-user group conferences or in one-to-one private discussions. It has a clean, practical interface that is highly configurable and supports features such as buddy lists Sohbet Chat travesti travesti travesti travesti travesti geciktirici sex shop sex penis büyütücü chat adult forum redtube 89 sex shop erotik shop şişme bebek sikiş file transfers, multi-server connections, SSL encryption, proxy support, UTF-8 display, customizable sounds, spoken messages, tray notifications, message logging, and more. mIRC also has a powerful scripting language that can be used both to automate mIRC and to create applications that perform a wide range of functions from network communications to playing games. mIRC has been in development for over a decade and is constantly being improved and updated with new technologies. The latest news about mIRC can be found on the latest news page.

Exclusive Content

Rob Windsor on WCF with REST, JSON and RSS

WCF is not just for SOAP based services and can be used with popular protocols like RSS, REST and JSON. Join Rob Windsor as he introduces WCF 3.5 and its new native support for non-SOAP services.

Christophe Coenraets Discusses Flex 3, AIR, and BlazeDS

Christophe Coenraets discusses Flex 3, Flex Builder, AIR, BlazeDS, Adobe and open source, integrating Flex with existing applications, and integrating RIAs with search engines and browsers.

Debunking Common Refactoring Misconceptions

Danijel Arsenovski attempts to dispel some of the myths around refactoring and how it applies to .NET developers.

REST Eye for the SOA Guy

In this presentation, recorded at QCon San Francisco, CORBA guru Steve Vinoski explains REST from the view of someone who comes to SOA from a traditional, RPC-oriented background.

Choose Feature Teams over Component Teams for Agility

Feature teams are key to scaling agility for large teams. In an excerpt from "Scaling Lean and Agile Development," Larman & Vodde show how feature teams resolve traditional problems & raise new issues

Billy Newport explains Virtualization

Billy Newport talks about virtualization, eXtreme Transaction Processing (XTP) and WebSphere Virtual Enterprise. He discusses hardware, hypervisor, JVM, application and data virtualization.

Virtualization and Security

While virtualization provides many benefits, security can not be a forgotten concept in its application.

Introduction to Agile for Traditional Project Managers

This session is specifically aimed at traditionally trained project managers who are new to Agile, and who would like to be able to relate the PMI's best practices to their Agile equivalents.