Never use mutable default parameters in Python
While writing a Python function, you may need to declare some default parameters, people new to Python may write code like this: def test(q=): q.append(1) return q This function see...
09 Sep 2014
Understand how Git works in 5 diagrams
Git has been a perfect choice for Version Control System. With git we can promptly switch between different revisions from our project, logging every line changed from the code, and check the diffe...
18 Aug 2014
Install cx-Oracle on Mavericks correctly
cx-Oracle is a Python Oracle DB connection package, ealier today I met some trouble installing on my macbook running Mavericks, after hacking I found the means to install it correctly: D...
14 Jul 2014
Some questions you may be asked during a Python job interview.
It’s fairly easy to learn the Python syntax, but Python as a full-featured language, is not that easy to be fully mastered. In my experience, these questions are the most likely be asked during a ...
14 Jun 2014
A fresh start
Recently I shut down my weblog, thinking about how to write articles with more influence. Then I decided to start a brand new blog, and this time I write articles only in English. For years I’ve b...
03 Jun 2014
← Newer Posts
A NYC-based software developer