Popular recipes by Anler Hernández Peral http://code.activestate.com/recipes/users/4176323/2011-09-18T18:57:48-07:00ActiveState Code RecipesSingleton? We don't need no stinkin' singleton: the Borg design pattern (Python)
2011-09-18T18:47:59-07:00Anler Hernández Peralhttp://code.activestate.com/recipes/users/4176323/http://code.activestate.com/recipes/577870-singleton-we-dont-need-no-stinkin-singleton-the-bo/
<p style="color: grey">
Python
recipe 577870
by <a href="/recipes/users/4176323/">Anler Hernández Peral</a>
(<a href="/recipes/tags/oop/">oop</a>, <a href="/recipes/tags/pattern/">pattern</a>).
</p>
<p>The Singleton design pattern (DP) has a catchy name, but the wrong focus -- on identity rather than on state. The Borg design pattern has all instances share state instead, and Python makes it, literally, a snap.</p>
Python Progressbar (Python)
2011-09-18T18:57:48-07:00Anler Hernández Peralhttp://code.activestate.com/recipes/users/4176323/http://code.activestate.com/recipes/577871-python-progressbar/
<p style="color: grey">
Python
recipe 577871
by <a href="/recipes/users/4176323/">Anler Hernández Peral</a>
(<a href="/recipes/tags/progress/">progress</a>).
</p>
<p>A progressbar utility for command line programs, very easy to use.
The original code is hosted in github: <a href="https://github.com/ikame/progressbar" rel="nofollow">https://github.com/ikame/progressbar</a></p>