Javascript parent constructor being run when defining inheritance and a solution
No Comments
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
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, [...]