4 ms·
The code you write can also potentially have a lifespan of 3 months, and it can be hard to predict which it's going to be. I feel that TDD is an attempt to imp
by DougWebb 9y ago
The code you write can also potentially have a lifespan of 3 months, and it can be hard to predict which it's going to be.
I feel that TDD is an attempt to impose engineering discipline onto something which is still largely at the craftsman stage. As an engineer I like the idea of pushing the field forward, but I don't think software development tools are ready yet to make TDD and the like broadly accepted practice. That means you need to decide case-by-case if they make sense.
- hacker_9 9y agoTests define intent. Usually when you craft something, you have an idea of what you want going in. You may even draw it, and in the case of construction projects, fully 3d render it. Tests are the programmer equivalent, they define a contract you expect from your functions, which can then help you shape the function itself.