Videos tagged with Metaprogramming
Factor is a general-purpose programming language which has been in development for a little over five years and is influenced by Forth, Lisp, and Smalltalk. Factor takes the best ideas from Forth – simplicity, succinct code, emphasis on interactive testing, meta-programming – and brings modern high-level language features such as garbage collection, object orientation, and functiona...
Ruby Metaprogramming: Free Episode
Watch some free extracts from Episodes 2 and 3. (9 mins, QuickTime | Ogg) Metaprogramming lets you program more expressively. This makes your code easier to write and easier to maintain and extend. Learn both the hows and whys of metaprogramming Ruby from Dave Thomas, one of the most experienced Ruby programmers in the western world. Initially, metaprogramming Ruby can seem really difficult. Th...
Behind LINQ - And Beyond
Summary In this presentation from the JVM Languages Summit 2008, Mads Torgersen discusses LINQ, declarative programming and metaprogramming in C#, examples of LINQ syntax and usage, lazy evaluation of LINQ queries, extension methods, lambda expressions, LINQ-to-SQL, LINQ expressions and metaprogramming, expression trees, how the .Net Dynamic Language Runtime (DLR) works, PLINQ, and the future o...
Archaeopteryx: A Ruby MIDI Generator
Summary Giles Bowkett captures the heart and soul of the RubyFringe conference as he demonstrates his revolutionary Archaeopteryx MIDI generator. He delivers an eloquent, highly politicized call to action in a career-defining presentation that is raucously hilarious yet unnerving in its practicality. Bio Giles Bowkett is an artist, musician, Ruby developer, acid freak, activist, Burner, entrepr...
Lone Star Ruby Conf 2008: Double-click to wow
The first keynote was given by Evan Phoenix and it was about memes in the Ruby community. Apparently, the Ruby community loves a good meme. Dependency injection was a rash in 2004 caused by Java developers. DI wasn't needed, sez Evan, because of the very nature of Ruby (as you can define stuff as late as you like). Another meme: What's this called: class << self; self; end; metaclass, sin...
Ruby Metaprogramming Episode 7: More Hook Methods
We’ll pick up where we left off in the last episode by looking at two more Ruby hook methods: included and method_added. But we’ll also take it a step further. We’ll use these hook methods to develop a metaprogramming library that traces the execution of a Ruby program. Along the way we’ll see all the various subtle (and important!) things you need to think about when yo...
Ruby Metaprogramming Episode 6: Some Hook Methods
Ruby hook methods are a way for your application to hook itself into the execution of the Ruby interpreter. Using hook methods is crucial for some kinds of metaprogramming, and they can make your code more flexible. In this episode, we’ll see how to use two powerful hook methods: inherited and const_missing. Overriding hook methods to intercept and deal with certain Ruby interpreter event...
MountainWest RubyConf 2008: BDD with Shoulda
Learn how to use Shoulda to increase your test coverage and readability as we walk through developing an application using BDD methodologies. In addition, you'll learn good general testing techniques, including judicious use of mocking and stubbing. At the end of the presentation, you'll be given a thorough crash course on the advanced meta-programming techniques that went into the development ...
MountainWest RubyConf 2008: Code Generation: The Safety Scissors Of Metaprogramming
In this talk, I'll demonstrate both how to unit-test metaprogramming with Ruby2Ruby, and how to automate EJB application development with Herrington's code generation techniques. Bring a nice Tupperware bowl to catch your brain in after it leaks out your ears. by Giles Bowkett
GoRuCo 2008: Forbidden Fruit - A Taste of Ruby's Parse Tree
Abstract Metaprogramming is not that big of a deal. Yeah, we were super pumped about it at first. We tried to stay sane while reading _why’s book. We had our minds blown by Bill Katz at RailsConf 2006. We were up way past our bedtime twisting define_method. But now things are different. Today we constantly (class << self; self end) and send(method). It’s just a part of life, y...