Javascript parent constructor being run when defining inheritance and a solution
No Comments

Posted by Drakonen on January 23, 2012 in Uncategorized | Short Link

When using the traditional Javascript methods to do some sort of inheritance, the constructor of the parent will always be run when trying to inherit it. This seems to be a unfortunate side effect of using new a(). The problem Consider this code. Here b inherits from a function a() { console.log("a"); }   function [...]

Using hgtools with mercurial tags to automatically version packages
No Comments

Posted by Drakonen on January 22, 2012 in Uncategorized | Short Link

I liked to automate my python package versioning a bit more and did this with hgtools. With hgtools it is quite easy to store the version numbers only in your repository as tags, and not having it again in setup.py. A minimal setup.py can look like this: from setuptools import setup, find_packages setup( name="HelloWorld", use_hg_version=True, [...]

Copyright © 2005-2012 Draakwired All rights reserved.
The Shades theme, version 1.7, is a BuyNowShop.com creation.

Social links powered by Ecreative Internet Marketing