article thumbnail

TDD mistakes 2

Habitable Code

Back in 2014 I wrote a blog post listing three mistakes often made by folks who are new to test-driven development (TDD). Writing a dozen or more lines of code to get to GREEN. We’re doing TDD, but we have no code to test; we have nothing to hang our first test on, so we need to invent something, fast!

article thumbnail

TDD: Three easy mistakes

Habitable Code

Back in 2014 I wrote a blog post listing three mistakes often made by folks who are new to test-driven development (TDD). Each time I visit a team that is relatively new to TDD I find the same basic mistakes cropping up every time. Writing a dozen or more lines of code to get to GREEN. This is part 1.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

TDD mistakes 3

Habitable Code

Back in 2014 I wrote a blog post listing three mistakes often made by folks who are new to test-driven development (TDD). Writing a dozen or more lines of code to get to GREEN. It is also not TDD. Or secondly, there is probably a lot of coupling between the code and the existing tests.

article thumbnail

Xebians collaborating on internal tool development

Xebia

However, the purpose of this blog is not just to describe the toolset, but to share our development approach and some valuable lessons I (re)learned along the way. Without a clear design, we use pair programming and test-driven development (TDD) until we are satisfied, focusing on the desired API first.

article thumbnail

TDD + data driven with Jest

StubHub

During my years as developer, I have faced several troubles in production due to bugs. For me, this is a huge problem because I love to sleep, and I cannot sleep well if I have doubts about the quality of my code. Because of this, I started some years ago to study how to sleep well, which came down to learning about testing my code.

article thumbnail

Beyond Coding: The 5 Must-Have Skills to Have If You Want to Become a Senior Programmer

Dzone - DevOps

In a Nutshell We instinctively equate programming with writing code. Because of it, we focus primarily on code design and creation skills: mastering languages and frameworks, clean code, design patterns, TDD, and architecture. But creating new code is only a fraction of what we do every day.

article thumbnail

Don't Measure Unit Test Code Coverage

James Shore

James Shore/Blog. If you're using test-driven development, don't measure unit test code coverage. To improve code and test practices. Code coverage won't tell you. To improve programmer code quality. Some people use code coverage metrics as a way of enforcing the habits they want. 01 Feb 2019.