News for hackers. Stuff that matters.
Re:Kent Beck: “I get paid for code that works, not for tests... by awinder on Thursday December 08, 2016 @09:41AM (#13130525)
What happens where trivial code later needs to grow? What happens when trivial code is invoked by non-trivial code and you need to make a change?

If it's truly trivial code, you should be able to test it trivially, so I'm a little unsure of why this becomes a make-or-break issue for some people. Pretty sure more time and energy is wasted determining if code is trivial and needs to be tested versus just testing the damned thing ;-).

Re:Kent Beck: “I get paid for code that works, not for tests... by marcosdumay on Thursday December 08, 2016 @11:00AM (#13131139)
Trivial code does not grow, it gets replaced. If the replacement is non-trivial, test it. If it's trivial, don't. Anyway, you've saved some useless tests that would need to be rewrite on the first change.

Trivial tests may be trivial, but they are numerous: their need grows exponentially with code size. And they generate almost all the false positives you will get.

Re:Kent Beck: “I get paid for code that works, not for tests... by theparanoid on Thursday December 08, 2016 @10:00AM (#13130651)
Tests are code and code is a liability.

The DirectX12 api is non-trivial code; their testing has little in common with TDD.