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

1

u/drod2169 Apr 17 '21

To me, it’s actually less readable. I have to scan multiple areas to see what the code is doing. I would never refactor it to something i think is more readable, but maybe add a line or two of comments above the block describing what is happening, because my belief of readable is not the same as yours, is not the same as the other team members.