Alex Hoffman
Random thoughts and ramblings
Random thoughts and ramblings
Jamie Zawinski, in comp.emacs.xemacs
via Dive Into Python
Excellent pattern talk. Largely around Python - but of interest to any language.
Speaker: Alex Martelli
|
The design patterns Smalltalk companion Authors
Addison-Wesley Longman Publishing Co., Inc. Boston, MA, USA Pages: 444
Year of Publication: 1998
ISBN:0-201-18462-1
|
||||||||
... the Borg design pattern (http://code.activestate.com/recipes/66531/) by Alex Martelli, that works great on 99% of the time when you need a singleton, and yet remains freaking simple.
The Original Borg Pattern by Alex Martelli:
class Borg:
__shared_state = {}
def __init__(self):
self.__dict__ = self.__shared_state
# and whatever else you want in your class -- that's all!
Well, let's call it a resolution...
Never read watch or consider any articles or presentations about Microsoft projects or libraries that aren't publicly released. I'm going to ignore anything ctp, alpha, beta or preview.
I'd rather be better at what's there, than what's coming.
From a Managers perspective, am questioning whether embedded scripting is really the only benefit that IronPython/IronRuby offer. Running Django or Ruby On Rails on IronPython/IronRuby is surely just of technical interest.
Sure there are always edge-cases, i.e. a throwaway or trivial project being undertaken by a Ruby/Python expert that might need to access existing .NET libraries, but outside of that?