Ask HN: Seriously, How Do You TDD?
Refactoring is the process by which developers pay down technical debt: rewriting, simplifying, and otherwise cleaning up the codebase without changing its functionality. Much like editing a book versus writing it for the first time, refactoring code is often dreaded and unrewarding work. Since open source developers tend toward work that they find... See more
Nadia Asparouhova • Working in Public: The Making and Maintenance of Open Source Software
The book Clean Code introduces three laws of TDD [1]:
So, the tests are written before the production code. This leads to the developer ... See more
- Write a failing unit test first before you start writing production code.
- Write not more of a unit test than is sufficient to fail.
- Write not more production code than is sufficient to pass the currently failing test.
So, the tests are written before the production code. This leads to the developer ... See more
How to Write Clean Code in Python
crawl, walk, run approach gives us the chance to run tests and experiment on our applications early and obtain feedback from real human beings in addition to all the automation
Jason Arbon • How Google Tests Software
Here’s the overall flow: 1. Write a class or set of functions for a service in one or more source files and make sure all the code compiles. 2. Identify a library build target for this new service. 3. Write a unit test that imports the library, mocks out its nontrivial dependencies, and executes the most interesting code paths with the most interes
... See more