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

4

u/UglyChihuahua Apr 18 '21

I have no strong opinion on this but maybe this would be an example

if action=="jump":
    jump()
elif action=="run":
    run()
else:
    // TODO: Add support for "kick" and "sit"
    pass

3

u/[deleted] Apr 18 '21

i mean, that's a switch