Discussion on answer by gbjbaanb: Is testable code better code?

Discussion on answer by gbjbaanb: Is

Imported from a comment discussion on http://programmers.stackexchange.com/questions/288405/is-testable-code-better-code/288411#288411
3525d ago – dennisdeems
28
3

export all events for this room

Starred posts

Jul 2, 2015 18:44
+1 for having the guts to come out and say it. A lot of times, making something "testable" requires you to turn simple, clear code inside out and make a horrendous mess of it.
Jul 2, 2015 18:44
@MasonWheeler cheers, I know its not fashionable but I dislike the cargo-cult attitude of unit testing we have today. A guy I worked with a while back was very proud of the 1500 tests he'd written for a rather simple service. Its almost like testing has become a bit of a game (like gathering SO points ;) ) and we end up with questions like this, getters tested, design patterns solely to assist the test tools, and when a language gains keywords to test stuff like private methods, you know people are playing with the new toy, and have stopped thinking what they are really trying to achieve.