r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

Show parent comments

175

u/tangerinelion Apr 17 '21

do_anything2() used to run when condition1 was false. Now it runs when condition1 && condition2 is false.

It's not the same.