Jeanne Boyarsky wrote:
Ali Gordon wrote:Thanks. I saw test-driven. It has little practical knowledge. I need something more hands on, with the theoretical stuff. I felt like I was in a philosophy
class instead of a developer class when I read that book.
Can you elaborate on what you found theoretical in "Test Driven"? I found it to be one of the more practical books that I've read. He covers a lot of the scenarios that show up in the real world. Recipe books are the other end of the continuum, but that doesn't sound what you are looking for.
Another way of thinking about this - what are some books you liked the style of? Not about JUnit, just in general. Knowing that will help us recommend something you might like better for JUnit.
Firstly, I think there is too much blah blah going on. I feel like I am listening in on coder gossip. Sampler -
Why do I need so much fluff ? He can say it like this -
According to different people quality of code can mean - number of defects discovered after using the software, internal or non visible traits like cost of dev, maintenance etc.
Through extensive test coverage (the percentage of your code for which you did tests) and having all the tests automated, TDD effectively guarantees that whatever you have
written a test for works, and the quality (in terms of defects) becomes more of a function of how well we succeed in coming up with the right test cases.
With TDD (test-code-refactor), you save time by writing software in increments that WORK instead of making huge code, testing it in the end and discovering many bugs.
Eg. For theoretical (I found one now) -
Figure 1.6 With incremental development—building the whole system in small increments—we are never
far from an integrated, working code base. This reduces risk, because the inventory of unfinished work
remains small. As we’ll learn later on, incremental development also enables effective learning through
early feedback based on the customer and developers constantly seeing actual, working software
Mark dexter's tuts, although meant to mainly teach eclipse, taught me way more practical TDD with Junit than this book.