How to do Dynamic Proxies in C#
Background: A dynamic proxy dynamically generates a class at runtime that conforms to a particular interface, proxying all invocations to a single ‘generic’ method. Earlier, Stellsmi asked if it’s...
View ArticleOT2004 : Generic Mechanisms in Software Engingeering
This workshop, hosted by Simon Davies, and chums from Microsoft (with a bit of Bruce Anderson), was a thinking excercise about the pros and cons of some of the language features of C# (and conveniently...
View ArticleOT2004 : Elegant Implementation of Null Objects
Since Dan and I have both been working together again (2 years at ThoughtWorks) and since I moved into a house less than ten minutes walk from his, we very rarely see each other. So it was good fun to...
View ArticleOT2004 : Taming the Tiger (Java 1.5)
This session was presented by Benedict Heal, and he was brilliant; concise, clear, humourous and extremely chilled out. Even the fact that Josh Bloch was listening in on his presentation didn’t phase...
View ArticleA simple way to access JavaDoc attributes at runtime
It’s easy to gain access to JavaDoc attributes using QDox, however this requires you to have the source available. At runtime this isn’t always possible, unless you’re happy giving your source away. A...
View ArticleThe power of closures in C# 2.0
Martin Fowler (obligitary Fowlbot namedrop) recently blogged about the power of closures in languages that support them. It’s worth remembering that C# 2.0 has true closure support in the form of...
View ArticleAccessing generic type information at runtime
A common misconception about generics in Java 5 is that you can’t access them at runtime. What you can’t find out at runtime is which generic type is associated with an instance of an object. However...
View ArticleVB.Net is the bestest
I was happily coding away in VB.Net today (grrr) when I noticed a little weirdity in the intellisense popup. Documentation says: The NotOverridable modifier defines a method of a base class that cannot...
View ArticleNode.JS would really benefit from LibFFI
Having recently built a simple LDAP library that required a bit of C++, I think Node would really benefit from LibFFI bindings. LibFFI allows C functions to be called dynamically at runtime from...
View Article