Dynamic Scope and Context-oriented Programming
or: Raising your Ruby shock-level with ContextR metaprogramming
(What is a shock-level?)
History of Dynamic Scope
Semantics of Dynamic Scope
Application of Dynamic Scope
Implementation of Dynamic Scope
really: Dynamic Variables (explain why Scope is not really possible)
How to in C (outline only)
Transition: Dynamically Scoping Methods
What is it?
What are layers good for?
Separation of concerns
good question, :-)
Because we can
Cool applications are possible (see later)
Excourse: Basics of method composition
AOP-like "salami tactic"
Example of COP with ContextR
4 hours of hacking
this week :-)
Proof of concept, but no ugly hack
Implementing "salami tactic"
&blocks and <1.9
Ideas for the future
Hoping that YARV will make it a lot faster ;-)
Implementing Namespace Selectors with pure Ruby (!)