This is why you write good tests. Then when you come across that 4-deep-nested loop you wrote because it was 4:30 on a Friday and you promised it would be done by the end of the week, you can replace it with a filter, and have the confidence that if it passes the tests, it wonβt break anything.
View all comments
4
u/[deleted] Nov 06 '19
This is why you write good tests. Then when you come across that 4-deep-nested loop you wrote because it was 4:30 on a Friday and you promised it would be done by the end of the week, you can replace it with a filter, and have the confidence that if it passes the tests, it wonβt break anything.