From the course: Spring: Test-Driven Development with JUnit
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Why TDD matters
From the course: Spring: Test-Driven Development with JUnit
Why TDD matters
- [Instructor] Before we get started on practicing some test-driven development habits, I want to take a moment to first share with you a few of my favorite arguments for why test-driven development really matters. The actual list of reasons could easily be a long one, so I'm going to condense this to just my favorites and hopefully the most important ones. It's one of the best ways to get really quick design validation. When you think about it as a developer, when you write code for anything, the first thing you do in your head is come up with a design. You may or may not actually formally document that design on paper, but it is still true that design happens before development usually. And you need to test your design before it's too settled because an implemented bad design choice tends to be pretty expensive to change later in the development cycle. By practicing TDD, you get the quick design feedback you need and the ability to fix a small problem before it becomes a big one…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.