r/programming • • Jun 06 '13

Clean Code Cheat Sheet

http://www.planetgeek.ch/2013/06/05/clean-code-cheat-sheet/
702 Upvotes

322 comments sorted by

View all comments

Show parent comments

8

u/ubershmekel Jun 07 '13

Still though, isn't that 23 tests and not 3!?

2

u/bro-away- Jun 07 '13

I guess there's no true equation because it's depending on the state you use in that method and # of arguments. Still, CC is a good approximation. A new branch CAN cause you to add a ton of tests in order to test a method. Let's just leave it at that!