Tags » Meta-programming

Generating and calling code on the fly: VBA delegates.

That’s one of the problems I’ve been wanting to solve in VBA for ages, but never really spent the time to actually do it. This weekend I thought I’d tackle it for real, and ended up quite quickly with a working solution. 613 more words

A Meta Programming Use Case: Slugging

In PostIt!, there was a need to D.R.Y. up some of the repetitive code used for slugging URLs.  As you might imagine, the generation of the URL slugs was similar from model to model, apart from the column name seeded to generate the slug.   241 more words