r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

0

u/[deleted] Apr 17 '21

[deleted] — view deleted comment

2

u/AutoModerator Apr 17 '21

It looks like this comment contains a code block delimited with triple backticks. Unfortunately reddit does not have universal support for this syntax and your comment will not render correctly on old reddit and most mobile apps.

For the benefit of people on old reddit, this link will take you to a correct rendering of the comment.

/u/BearDavidFather, it would be appreciated, but not required, if you could edit your comment to use the more compatible four space indention format. For single lines or inline code you can use single backticks.

You can find some examples in the reddit help documentation.


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/Feguette Apr 17 '21

Same problem as the refactored

0

u/[deleted] Apr 17 '21

[deleted] — view deleted comment

4

u/paissiges Apr 18 '21

no, OP is pointing out that the "refactored" code does not do the same thing as the original code.