News for hackers. Stuff that matters.
Re:Kent Beck: “I get paid for code that works, not for tests... by johncolanduoni on Thursday December 08, 2016 @09:45AM (#13130548)
> Refactoring the sumArray method to use map instead of a for loop shouldn't break tests.

What kind of test could you possibly write that would break because of this? Something that measures time or memory usage, or uses reflection?

If you have clearly defined interfaces between significant internal components (which you should), why not test that they do what you ask? Public vs. internal is often more about what is exactly the client of the code, not the code's function or structure itself.

Re:Kent Beck: “I get paid for code that works, not for tests... by goldenkek on Thursday December 08, 2016 @05:00PM (#13134681)
A stub on the iterator interface would do it..but like I said..terrible use of testing