article thumbnail

The Real Reasons for Doing Test-Driven Development ??

Xebia

Here’s a secret: it’s not for the tests. Learn about the actual goal and values hidden under the surface of Test-Driven Development. Test-Driven Development (TDD) is a controversial topic amongst developers. It is a vehicle to drive development. Why do people apply TDD?

article thumbnail

AoAD2 Practice: Test-Driven Development

James Shore

Test-Driven Development. It’s test-driven development, and it actually delivers these results. Test-driven development, , or TDD, is a rapid cycle of testing, coding, and refactoring. Test-driven development applies the same principle to programmers’ intention.

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

Bliki: Legacy Seam

Martin Fowler

Once we've found a seam, we can use it to break dependencies to simplify testing, insert probes to gain observability, and redirect program flow to new modules as part of legacy displacement. His definition: “a seam is a place where you can alter behavior in your program without editing in that place”.

Testing 191
article thumbnail

5 ways to do Continuously Improved Testing

Xebia

It is okay to start out simple and not overthink, but these two things are key: Have tests – having some tests is better than no tests, as it provides a feedback mechanism for improvement. This results in a steadily-growing set of tests becoming part of the development cycle.

article thumbnail

Stubbing AWS Service calls in Golang

Xebia

But I am also a big fan of test driven development. The testtools.ExitTest(stubber, t) definition will fail the test if a stub that you added was not called. I recently switched to Golang for my language of choice. (In In my previous blog you can read why.) So how do you do this in Golang?

AWS 130
article thumbnail

Django filter versus get for single object?

NeverFriday

UPDATE : Some good books on Django design patterns and coding style: Test-Driven Development with Python: Using Django, Selenium, and JavaScript Two Scoops of Django: Best Practices For Django 1.5 The Definitive Guide to Django: Web Development Done Right.

article thumbnail

Preparing for AI

O'Reilly Media - Ideas

A good next step is asking an AI assistant to generate unit tests, either for existing code or some new code (which leads to test-driven development). Unit tests are a useful exercise because testing logic is usually simple; its easy to see if the generated code is incorrect.