Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

4 items tagged “decorators”

Decorator to limit request rates to individual views. Neat piece of code for public facing web APIs written in Django. Update: some smart criticisms in the comments. 2 24th September 2008, 1:13 pm

AOP aspect of JavaScript with Dojo. Fantastic post—concisely explains Aspect Oriented Programming, then shows how Dojo’s dojox.lang.aspect brings AOP to JavaScript, including some really useful built-in aspects for logging, profiling and more. Aspects are like Python decorators on steroids. 3 18th May 2008, 10:45 am

Monkeypatching idioms—elegant or ugly? Guido offers a decorator and a metaclass as syntactic sugar for monkeypatching existing Python classes. 2 30th January 2008, 12:39 am

Meta-classes Made Easy. Fuzzyman introduces a metaclass factory for applying a decorator to every method of a class. 0 17th December 2006, 12:42 am

A django site