News for hackers. Stuff that matters.
Re:Kent Beck: “I get paid for code that works, not for tests... by gaius on Thursday December 08, 2016 @10:09AM (#13130720)
We write tests to be able to change it in the future with certain degree of confidence that we don't break anything and - if so - what exactly

You don't want tests for that - you want a type system and a static analyzer.

Re:Kent Beck: “I get paid for code that works, not for tests... by jon-wood on Thursday December 08, 2016 @10:34AM (#13130885)
A type system and static analysis certainly allow you to stop writing a certain category of test as you no longer need to assert that a method being passed an object of the wrong type copes with that. It doesn't completely relieve of you the need to test though as a type system won't assert that the code you're writing actually fulfils the businesses requirement that nothing can be ordered for same day shipping after 11am.
Re:Kent Beck: “I get paid for code that works, not for tests... by gaius on Thursday December 08, 2016 @12:23PM (#13132040)
You absolutely can do that with the type system, use a constrained subtype.
Re:Kent Beck: “I get paid for code that works, not for tests... by jon-wood on Friday December 09, 2016 @06:19AM (#13138086)
You've got my interest piqued now. How does that work in practice? And do you not still need to test that it complies with the actual business rules at some point?
Re:Kent Beck: “I get paid for code that works, not for tests... by raldi on Thursday December 08, 2016 @10:31AM (#13130872)
How does that confirm to you that, say, your ratelimiter code is correctly processing the first three requests in a given minute, rejecting the fourth, and approving a fifth once another minute has passed?
Re:Kent Beck: “I get paid for code that works, not for tests... by cm2187 on Thursday December 08, 2016 @10:11AM (#13130737)
But only tests will tell you you are calculating something correctly.
Re:Kent Beck: “I get paid for code that works, not for tests... by digi_owl on Thursday December 08, 2016 @10:12AM (#13130742)
But thats anathema to agile, yo. /s