In

Filed Under Coding | 4 Comments

My recent post inpired a friend of mine to write about the untestability of the code. Go check the entry before reading further, because it a response.
Though I do agree with his general point - code that is hard to test probably is a bad code and should be refactored - I don’t agree with […]

Mocking

Filed Under Coding | 1 Comment

A small introduction:
I’ve been writing a small piece of code recently. Since I’m test-infected, I cannot sleep well unless I’ve got test cases for everything I write. And I do use mock objects a lot - I test all my methods both in isolation.
Sometimes writing a piece of functionality as a static method is the […]

import

Filed Under Blogroll | 2 Comments

Take a look at today’s xkcd.
Awesome.
(P.S. The only think I miss in Python in a easy and portable and good-looking GUI toolkit.)