(Written on 29th May)

On this day I was investigating the reason for import test failures in the packages we were trying to build using conda-build, I found out that a few packages like fabric have specified tests_requires in their setup.py and conda-skeleton was not taking care of that. Like monday I tried to patch the distutils patch but for some reason it did not work out. I'll have a look at it again, that I had a nasty little headache, not a severe one but kind of one that doesn't yet you think. So I watching PyCon vidoes:, I watched Beyond PEP8: best practices for writing intelligible code. In video he talked how PEP8 is great but focusing too much on it can make the gorrilla invisible, that is it can take our attention from the reason problem, the problem of p vs np. And this is not the problem of computation complexity but of Pythonic vs Non Pythonic. Some of his tips were:

  • Factor out boiler plate code in the context managers and other pythonic contructs.
  • Use meaningful variable names
  • Use keyword argument to convey information about the parameters being passed.
  • Use Named Tuples